Class lispa\amos\core\utilities\WorkflowTransitionWidgetUtility

Inheritancelispa\amos\core\utilities\WorkflowTransitionWidgetUtility » yii\base\Object
Implementsyii\base\Configurable

Class WorkflowTransitionWidgetUtility

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__call() Calls the named method which is not a class method. yii\base\Object
__construct() Constructor. yii\base\Object
__get() Returns the value of an object property. yii\base\Object
__isset() Checks if a property is set, i.e. defined and not null. yii\base\Object
__set() Sets value of an object property. yii\base\Object
__unset() Sets an object property to null. yii\base\Object
canGetProperty() Returns a value indicating whether a property can be read. yii\base\Object
canSetProperty() Returns a value indicating whether a property can be set. yii\base\Object
className() Returns the fully qualified name of this class. yii\base\Object
getLabelStatus() This method return the workflow status label if is set in the metadata field. lispa\amos\core\utilities\WorkflowTransitionWidgetUtility
getLabelStatusFromMetadata() This method return the workflow status label if is set in the metadata field. lispa\amos\core\utilities\WorkflowTransitionWidgetUtility
getStatusButtonDataConfirm() This method return the workflow status button data confirm if is set in the metadata field. lispa\amos\core\utilities\WorkflowTransitionWidgetUtility
getStatusButtonDescription() This method return the workflow status button description if is set in the metadata field. lispa\amos\core\utilities\WorkflowTransitionWidgetUtility
getStatusButtonLabel() This method return the workflow status button label if is set in the metadata field. lispa\amos\core\utilities\WorkflowTransitionWidgetUtility
hasMethod() Returns a value indicating whether a method is defined. yii\base\Object
hasProperty() Returns a value indicating whether a property is defined. yii\base\Object
init() Initializes the object. yii\base\Object

Method Details

getLabelStatus() public static method

This method return the workflow status label if is set in the metadata field.

public static string getLabelStatus ( $model, $key '' )
$model lispa\amos\core\record\Record
$key string
throws yii\base\InvalidConfigException
getLabelStatusFromMetadata() public static method

This method return the workflow status label if is set in the metadata field.

public static string getLabelStatusFromMetadata ( $model, $status )
$model lispa\amos\core\record\Record
$status \raoul2000\workflow\base\Status|\raoul2000\workflow\base\StatusInterface
throws yii\base\InvalidConfigException
getStatusButtonDataConfirm() public static method

This method return the workflow status button data confirm if is set in the metadata field.

public static string getStatusButtonDataConfirm ( $module, $model, $metadati, $currentStatus, $translationCategory, $dataConfirmParam null )
$module lispa\amos\core\module\AmosModule
$model lispa\amos\core\record\Record|lispa\amos\core\interfaces\WorkflowMetadataInterface
$metadati array
$currentStatus string
$translationCategory string
$dataConfirmParam string|null
getStatusButtonDescription() public static method

This method return the workflow status button description if is set in the metadata field.

public static string getStatusButtonDescription ( $module, $model, $metadati, $currentStatus, $translationCategory )
$module lispa\amos\core\module\AmosModule
$model lispa\amos\core\record\Record|lispa\amos\core\interfaces\WorkflowMetadataInterface
$metadati array
$currentStatus string
$translationCategory string
getStatusButtonLabel() public static method

This method return the workflow status button label if is set in the metadata field.

public static string getStatusButtonLabel ( $module, $model, $metadati, $currentStatus, $translationCategory )
$module lispa\amos\core\module\AmosModule
$model lispa\amos\core\record\Record|lispa\amos\core\interfaces\WorkflowMetadataInterface
$metadati array
$currentStatus string
$translationCategory string