LeKoala\CmsActions\CmsInlineFormAction
A simple button that links to a given action or url
This is meant to be used inside getCMSFields or getCMSUtils
Action must be implemented on the controller (ModelAdmin for instance)
The data passed in the content of the form
Synopsis
class CmsInlineFormAction
extends LiteralField
{
- // members
- protected array $params = ;
- protected $buttonIcon = NULL;
- // methods
- public void __construct()
- public void performReadonlyTransformation()
- public void getLink()
- public string getButtonIcon()
- public $this setButtonIcon()
- public void Type()
- public void FieldHolder()
- public array getParams()
- public $this setParams()
- // Inherited methods from DefaultLink
- public string getModelLink()
- public string getControllerLink()
- public void getLink()
- public $this setLink()
- public void getNewWindow()
- public $this setNewWindow()
Hierarchy
Members
protected
- $link — string
- $newWindow — boolean
- $params — array
Methods
public
- __construct() — Create a new action button.
- FieldHolder()
- Type()
- getButtonIcon() — Get an icon for this button
- getLink()
- getParams() — Get the value of params
- performReadonlyTransformation()
- setButtonIcon() — Set an icon for this button
- setParams() — Set the value of params
Inherited from LeKoala\CmsActions\DefaultLink
public
- getControllerLink() — Build an url for the current controller and pass along some parameters
- getLink() — Get the value of link
- getModelLink() — Build a url to call an action on current model
- getNewWindow() — Get the value of newWindow
- setLink() — Set the value of link
- setNewWindow() — Set the value of newWindow