Class lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget

Inheritancelispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget » kartik\base\Widget
Subclasseslispa\amos\workflow\widgets\WorkflowTransitionSimplifiedButtonsWidget

Class WorkflowStateWidget Renders the widget useful to change a model workflow status.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$additionalButtons lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$buttonLayout string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$classDivButton string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$classDivIcon string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$classDivLabel string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$classDivMessage string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$classHr string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$closeButton lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$closeSaveButtonWidget lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$containerWidgetClass string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$customJs string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$customStatusLabelDescription lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$dataConfirm string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$draftButton lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$draftButtons lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$draftLabel lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$hideSaveDraftStatus lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$icon string To validate lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$iconEdit string Edit lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$iconOptions array Array of the icon options lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$iconValidate string Validate lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$initialLabel string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$initialMessage string lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$initialStatus lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$initialStatusName lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$statusToRender array Stati da renderizzare obbligatoriamente in fase di creazione (quando il record non e' ancora inserito nel db) lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget
$viewWidgetOnNewRecord boolean If true force to view the widget when the model is in new record state lispa\amos\workflow\widgets\WorkflowTransitionButtonsWidget

Property Details

$additionalButtons public property
public $additionalButtons null
$buttonLayout public property
public string $buttonLayout "{buttonSubmit}"
$classDivButton public property
public string $classDivButton null
$classDivIcon public property
public string $classDivIcon null
$classDivLabel public property
public string $classDivLabel null
$classDivMessage public property
public string $classDivMessage null
$classHr public property
public string $classHr 'workflow'
$closeButton public property
public $closeButton null
$closeSaveButtonWidget public property
public $closeSaveButtonWidget null
$containerWidgetClass public property
public string $containerWidgetClass 'workflow-transition-buttons-widget col-xs-12'
$customJs public property
public string $customJs null
$customStatusLabelDescription public property
$dataConfirm public property
public string $dataConfirm null
$draftButton public property
public $draftButton null
$draftButtons public property
public $draftButtons null
$draftLabel public property
public $draftLabel null
$form protected property
$hideSaveDraftStatus public property
public $hideSaveDraftStatus null
$icon public property

To validate

public string $icon 'refresh-alt'
$iconEdit public property

Edit

public string $iconEdit 'edit'
$iconOptions public property

Array of the icon options

public array $iconOptions ''
$iconValidate public property

Validate

public string $iconValidate 'check-all'
$initialLabel public property
public string $initialLabel null
$initialMessage public property
public string $initialMessage null
$initialStatus public property
public $initialStatus null
$initialStatusName public property
public $initialStatusName null
$metadata protected property
protected array $metadata null
$model protected property
$module protected property
$statusToRender public property

Stati da renderizzare obbligatoriamente in fase di creazione (quando il record non e' ancora inserito nel db)

public array $statusToRender null
$statuses protected property
protected array $statuses = []
$translationCategory protected property
protected string $translationCategory null
$viewWidgetOnNewRecord public property

If true force to view the widget when the model is in new record state

$workflowId protected property
protected string $workflowId null

Method Details

cleanEmptyButtons() public method

public array cleanEmptyButtons ( $buttons )
$buttons
getAdditionalButtonsToRender() public method

Get additional buttons

public array getAdditionalButtonsToRender ( )
getButtonsToRender() protected method

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
getCurrentStatus() protected method

Return the id of the current state of the model without the prefix of the workflow

protected string getCurrentStatus ( )
getDraftButtonsToRender() public method

Render the save bottons

public array getDraftButtonsToRender ( )
getForm() public method

public lispa\amos\core\forms\ActiveForm getForm ( )
getMetadata() public method

public array getMetadata ( )
getModel() public method

public lispa\amos\core\record\Record getModel ( )
getStatuses() protected method

protected array getStatuses ( )
getTranslationCategory() public method

public string getTranslationCategory ( )
getWorkflowId() public method

public string getWorkflowId ( )
init() public method

See also [[\kartik\base\Widget::init();]] Set of the permissionSave.

public void init ( )
run() public method

public void run ( )
setForm() public method

public void setForm ( $form )
$form lispa\amos\core\forms\ActiveForm
setMetadata() public method

public void setMetadata ( $metadata )
$metadata array
setModel() public method

public void setModel ( $model )
$model lispa\amos\core\record\Record
setTranslationCategory() public method

public void setTranslationCategory ( $translationCategory )
$translationCategory string
setWorkflowId() public method

public void setWorkflowId ( $workflowId )
$workflowId string