Class lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
Inheritance | lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget » kartik\base\Widget |
---|---|
Subclasses | lispa\amos\workflow\widgets\WorkflowTransitionSimplifiedButtonsWidget |
Class WorkflowStateWidget Renders the widget useful to change a model workflow status.
Public Properties
Protected Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
getButtonsToRender() | lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget | |
getCurrentStatus() | Return the id of the current state of the model without the prefix of the workflow | lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget |
getStatuses() | lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget |
Property Details
To validate
Edit
Array of the icon options
Validate
Stati da renderizzare obbligatoriamente in fase di creazione (quando il record non e' ancora inserito nel db)
If true force to view the widget when the model is in new record state
Method Details
public array cleanEmptyButtons ( $buttons ) | ||
$buttons |
Get additional buttons
public array getAdditionalButtonsToRender ( ) |
protected array getButtonsToRender ( $fakeStatusName = null, $fakeStatus = null, $statusToRender = null, $customStatusLabelDescription = null ) | ||
$fakeStatusName | string|null | |
$fakeStatus | string|null | |
$statusToRender | string|null | |
$customStatusLabelDescription | string|null | |
throws | yii\base\InvalidConfigException |
---|
Return the id of the current state of the model without the prefix of the workflow
protected string getCurrentStatus ( ) |
Render the save bottons
public array getDraftButtonsToRender ( ) |
public lispa\amos\core\forms\ActiveForm getForm ( ) |
public array getMetadata ( ) |
public lispa\amos\core\record\Record getModel ( ) |
protected array getStatuses ( ) |
public string getTranslationCategory ( ) |
public string getWorkflowId ( ) |
See also [[\kartik\base\Widget::init();]] Set of the permissionSave.
public void init ( ) |
public void run ( ) |
public void setForm ( $form ) | ||
$form | lispa\amos\core\forms\ActiveForm |
public void setMetadata ( $metadata ) | ||
$metadata | array |
public void setModel ( $model ) | ||
$model | lispa\amos\core\record\Record |
public void setTranslationCategory ( $translationCategory ) | ||
$translationCategory | string |
public void setWorkflowId ( $workflowId ) | ||
$workflowId | string |