PHP Class GridFieldEditableColumns, silverstripe-gridfieldextensions

The form fields used can be configured by setting the value in {@link setDisplayFields()} to one of the following forms: - A Closure which returns the field instance. - An array with a callback key pointing to a function which returns the field. - An array with a field key->response specifying the field class to use.
Inheritance: extends GridFieldDataColumns, implements GridField_HTMLProvider, implements GridField_SaveHandler, implements GridField_URLHandler
Mostrar archivo Open project: ajshort/silverstripe-gridfieldextensions Class Usage Examples

Protected Properties

Property Type Description
$forms Form[]

Public Methods

Method Description
getColumnContent ( $grid, $record, $col )
getFields ( GridField $grid, DataObjectInterface $record ) : FieldList Gets the field list for a record.
getForm ( GridField $grid, DataObjectInterface $record ) : Form Gets the form instance for a record.
getHTMLFragments ( $grid )
getURLHandlers ( $grid )
handleForm ( GridField $grid, $request )
handleSave ( GridField $grid, DataObjectInterface $record )

Protected Methods

Method Description
getFieldName ( $name, GridField $grid, DataObjectInterface $record )

Method Details

getColumnContent() public method

public getColumnContent ( $grid, $record, $col )

getFieldName() protected method

protected getFieldName ( $name, GridField $grid, DataObjectInterface $record )
$grid GridField
$record DataObjectInterface

getFields() public method

Gets the field list for a record.
public getFields ( GridField $grid, DataObjectInterface $record ) : FieldList
$grid GridField
$record DataObjectInterface
return FieldList

getForm() public method

Gets the form instance for a record.
public getForm ( GridField $grid, DataObjectInterface $record ) : Form
$grid GridField
$record DataObjectInterface
return Form

getHTMLFragments() public method

public getHTMLFragments ( $grid )

getURLHandlers() public method

public getURLHandlers ( $grid )

handleForm() public method

public handleForm ( GridField $grid, $request )
$grid GridField

handleSave() public method

public handleSave ( GridField $grid, DataObjectInterface $record )
$grid GridField
$record DataObjectInterface

Property Details

$forms protected_oe property

protected Form[] $forms
return Form[]