PHP Class GridFieldAddNewInlineButton, silverstripe-gridfieldextensions

Inheritance: implements GridField_HTMLProvider, implements GridField_SaveHandler
Mostrar archivo Open project: ajshort/silverstripe-gridfieldextensions Class Usage Examples

Public Methods

Method Description
__construct ( string $fragment = 'buttons-before-left' )
getFragment ( ) : string Gets the fragment name this button is rendered into.
getHTMLFragments ( $grid )
getTitle ( ) : string Gets the button title text.
handleSave ( GridField $grid, DataObjectInterface $record )
setFragment ( string $fragment ) : GridFieldAddNewInlineButton Sets the fragment name this button is rendered into.
setTitle ( string $title ) : GridFieldAddNewInlineButton Sets the button title text.

Private Methods

Method Description
getRowTemplate ( GridField $grid, GridFieldEditableColumns $editable )

Method Details

__construct() public method

public __construct ( string $fragment = 'buttons-before-left' )
$fragment string the fragment to render the button in

getFragment() public method

Gets the fragment name this button is rendered into.
public getFragment ( ) : string
return string

getHTMLFragments() public method

public getHTMLFragments ( $grid )

getTitle() public method

Gets the button title text.
public getTitle ( ) : string
return string

handleSave() public method

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

setFragment() public method

Sets the fragment name this button is rendered into.
public setFragment ( string $fragment ) : GridFieldAddNewInlineButton
$fragment string
return GridFieldAddNewInlineButton $this

setTitle() public method

Sets the button title text.
public setTitle ( string $title ) : GridFieldAddNewInlineButton
$title string
return GridFieldAddNewInlineButton $this