Version: current

     1 <?php
     2
     3 /**
     4  * Таблица корзины
     5  *
     6  * @package cart
     7  * @author inxo
     8  */
     9 class CartTableListField extends TableListField {
    10
    11     protected $template = "CartTableListField";
    12
    13     public $itemClass = 'CartTableListField_Item';
    14 }
    15
    16 class CartTableListField_Item extends TableListField_Item {
    17
    18     function ExportLink() {
    19         $parent = $this->parent->form->controller;
    20         return Controller::join_links($parent->Link(), $this->ID, "export");
    21     }
    22
    23     function EditLink() {
    24         $parent = $this->parent->form->controller;
    25         return Controller::join_links($parent->Link(), $this->ID, "edit");
    26     }
    27 }
    28

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -