Свойство | Тип | Описание | |
---|---|---|---|
$itemRequestClass | string |
Метод | Описание | |
---|---|---|
__construct ( string $fragment = 'before' ) | ||
getClasses ( GridField $grid ) : array | Gets the classes that can be created using this button, defaulting to the model class and its subclasses. | |
getFragment ( ) : string | Gets the fragment name this button is rendered into. | |
getHTMLFragments ( $grid ) | {@inheritDoc} | |
getTitle ( ) : string | Gets the button title text. | |
getURLHandlers ( $grid ) | {@inheritDoc} | |
handleAdd ( GridField $grid, SS_HTTPRequest $request ) : GridFieldAddNewMultiClassHandler | Handles adding a new instance of a selected class. | |
setClasses ( array $classes, $default = null ) : GridFieldAddNewMultiClass | Sets the classes that can be created using this button. | |
setDefaultClass ( string $default ) : GridFieldAddNewMultiClass | Sets the default class that is selected automatically. | |
setFragment ( string $fragment ) : GridFieldAddNewMultiClass | Sets the fragment name this button is rendered into. | |
setItemRequestClass ( $class ) | ||
setTitle ( string $title ) : GridFieldAddNewMultiClass | Sets the button title text. |
public __construct ( string $fragment = 'before' ) | ||
$fragment | string | the fragment to render the button in |
public getClasses ( GridField $grid ) : array | ||
$grid | GridField | |
Результат | array | a map of class name to title |
public getFragment ( ) : string | ||
Результат | string |
public handleAdd ( GridField $grid, SS_HTTPRequest $request ) : GridFieldAddNewMultiClassHandler | ||
$grid | GridField | |
$request | SS_HTTPRequest | |
Результат | GridFieldAddNewMultiClassHandler |
public setClasses ( array $classes, $default = null ) : GridFieldAddNewMultiClass | ||
$classes | array | a set of class names, optionally mapped to titles |
Результат | GridFieldAddNewMultiClass | $this |
public setDefaultClass ( string $default ) : GridFieldAddNewMultiClass | ||
$default | string | the class name to use as default |
Результат | GridFieldAddNewMultiClass | $this |
public setFragment ( string $fragment ) : GridFieldAddNewMultiClass | ||
$fragment | string | |
Результат | GridFieldAddNewMultiClass | $this |