\StatefulGridFieldList
Synopsis
class StatefulGridFieldList
extends UnsavedRelationList
{
- // members
- protected $gridField;
- private boolean $_isSetup = false;
- // methods
- public void __construct()
- public void refreshFromState()
- public void push()
- public {StatefulGridFieldList} addMany()
- public void removeAll()
- public void removeAllKeepState()
- public void removeMany()
- public void remove()
- public void removeDuplicates()
- public void setByIDList()
- public {DataObject} byID()
- public {DataQuery} dataQuery()
- public {string} getRelationName()
Hierarchy
Extends
- UnsavedRelationList
Members
private
- $_isSetup
protected
- $gridField
Methods
public
- __construct() — Constructor
- addMany() — Add a number of items to the relation.
- byID() — Return the first DataObject with the given ID
- dataQuery() — Wrapper to generate the data query based on the current source list
- getRelationName() — Gets the relationship name
- push() — Pushes an item onto the end of this list.
- refreshFromState() — Refreshes the list from the state
- remove() — Remove this item from this list
- removeAll() — Remove all items from this relation.
- removeAllKeepState() — Removes all items but maintains the state
- removeDuplicates() — Removes items from this list which are equal.
- removeMany() — Remove the items from this list with the given IDs
- setByIDList() — Sets the Relation to be the given ID list. Records will be added and deleted as appropriate.