PHP Class GridFieldAddNewInlineButton, silverstripe-gridfieldextensions

Inheritance: implements GridField_HTMLProvider, implements GridField_SaveHandler
Afficher le fichier Open project: ajshort/silverstripe-gridfieldextensions Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
getRowTemplate ( GridField $grid, GridFieldEditableColumns $editable )

Method Details

__construct() public méthode

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

getFragment() public méthode

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

getHTMLFragments() public méthode

public getHTMLFragments ( $grid )

getTitle() public méthode

Gets the button title text.
public getTitle ( ) : string
Résultat string

handleSave() public méthode

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

setFragment() public méthode

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

setTitle() public méthode

Sets the button title text.
public setTitle ( string $title ) : GridFieldAddNewInlineButton
$title string
Résultat GridFieldAddNewInlineButton $this