SilverShop\HasOneField\HasOneButtonField
Class HasOneButtonField
Synopsis
class HasOneButtonField
extends GridField
{
- // methods
- public void __construct()
- public DataObject getRecord()
- public void setRecord()
- public DataObject getParent()
- public HasOneButtonField setParent()
- public string getRelation()
- public HasOneButtonField setRelation()
Hierarchy
Extends
- SilverStripe\Forms\GridField\GridField
Members
protected
- $parent
—
SilverStripe\ORM\DataObject
The current parent of the relationship (the base object we are editing) - $record
—
SilverStripe\ORM\DataObject
The related object to the parent - $relation
—
string
The name of the relation this field is managing
Methods
public
- __construct() — HasOneButtonField constructor.
- getParent() — Get the current parent
- getRecord()
- getRelation() — Get the name of the relation this field is managing
- setParent() — Set the current parent
- setRecord()
- setRelation() — Set the name of the relation this field is managing