Symbiote\FrontendObjects\Model\ItemList
- Author: marcus
Synopsis
class ItemList
extends DataObject
{
- // members
- private static string $table_name = 'ItemList';
- private static array $allowed_funcs = ;
- private static array $db = ;
- private static array $defaults = ;
- private static string $default_sort = 'Sort ASC';
- private static array $list_types = ;
- protected Controller $contextLink = NULL;
- protected $createLink = NULL;
- protected array $listModifiers = ;
- protected $items;
- protected array $allowedMethods = ;
- // methods
- public void onBeforeWrite()
- public void getCMSFields()
- public void updateFields()
- public void getFrontEndFields()
- protected void allowedItems()
- public void getItems()
- public void getFilteredItemList()
- protected void resolveValue()
- public void addFilterModifier()
- public void tableHeaders()
- protected void actionsForType()
- protected void formatField()
- protected array getAllowedMethods()
- protected void paginationName()
- protected void getLimit()
- public void setContextLink()
- public void CreateLink()
- public void setCreateLink()
- public void Link()
- public void ExportLink()
- public void forTemplate()
- public void toCSV()
- public void canView()
- public void canEdit()
- public void canDelete()
- public static void live_editable_field()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $allowed_funcs
- $db
- $default_sort
- $defaults
- $list_types
- $table_name
protected
- $allowedMethods
- $contextLink
—
SilverStripe\Control\Controller
The context that this list is displayed in, used for link building - $createLink
- $items
- $listModifiers
—
array
A list of modifiers that can be bound to the item list to change the filtered items list. Mostly useful for code that's creating an item list directly.
Methods
protected
- actionsForType()
- allowedItems()
- formatField()
- getAllowedMethods() — Gets the list of methods that can be called from a template.
- getLimit()
- paginationName()
- resolveValue()
public
- CreateLink()
- ExportLink()
- Link()
- addFilterModifier() — Add a closure to be called against the item list prior to returning it
- canDelete()
- canEdit()
- canView()
- forTemplate()
- getCMSFields()
- getFilteredItemList()
- getFrontEndFields()
- getItems()
- live_editable_field()
- onBeforeWrite()
- setContextLink()
- setCreateLink()
- tableHeaders()
- toCSV()
- updateFields()