SilverCart\Admin\Forms\TableField
Field to show some DataObjects in a simple table.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class TableField
extends FormField
{
- // members
- protected ArrayList $items = NULL;
- protected SS_List $dataList = NULL;
- protected Array $fieldList = NULL;
- // methods
- public void __construct()
- public SS_List getDataList()
- public void setDataList()
- public array getFieldList()
- public void setFieldList()
- public ArrayList getItems()
- public void setItems()
- public ArrayList initItems()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Members
protected
- $dataList
—
SilverStripe\ORM\SS_List
DataList to use for table - $fieldList
—
SilverCart\Admin\Forms\Array
List of fields to use - $items
—
SilverStripe\ORM\ArrayList
Items to use in template
Methods
public
- __construct() — Constructor
- getDataList() — Returns the DataList to use
- getFieldList() — Returns the list of fields to use
- getItems() — Returns the items to use in template
- initItems() — Initializes the items to use in template
- setDataList() — Sets the DataList to use
- setFieldList() — Sets the list of fields to use
- setItems() — Sets the items to use in template