Class lispa\amos\core\forms\ContextMenuWidget
Inheritance | lispa\amos\core\forms\ContextMenuWidget » yii\base\Widget » yii\base\Component » yii\base\Object |
---|---|
Implements | yii\base\Configurable, yii\base\ViewContextInterface |
Class ContextMenuWidget
Public Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
initLabels() | Init modifylabel and deleteLabel | lispa\amos\core\forms\ContextMenuWidget |
Events
Event | Type | Description | Defined By |
---|---|---|---|
EVENT_AFTER_RUN | yii\base\WidgetEvent | An event raised right after executing a widget. (available since version 2.0.11) | yii\base\Widget |
EVENT_BEFORE_RUN | yii\base\WidgetEvent | An event raised right before executing a widget. (available since version 2.0.11) | yii\base\Widget |
EVENT_INIT | yii\base\Event | An event that is triggered when the widget is initialized via init(). (available since version 2.0.11) | yii\base\Widget |
Property Details
public boolean getCheckDeletePermission ( )
public void setCheckDeletePermission ( $checkDeletePermission )
public void setCheckDeletePermission ( $checkDeletePermission )
public string getCheckModifyPermission ( )
public void setCheckModifyPermission ( $checkModifyPermission )
public void setCheckModifyPermission ( $checkModifyPermission )
Widget view
public string getModelValidatePermission ( )
public void setModelValidatePermission ( $modelValidatePermission )
public void setModelValidatePermission ( $modelValidatePermission )
Method Details
public string getActionDelete ( ) |
public string getActionModify ( ) |
public boolean getCheckDeletePermission ( ) |
public string getCheckModifyPermission ( ) |
public string getConfirmModify ( ) |
public string getLabelDeleteConfirm ( ) |
public string getLayout ( ) |
public string getMainDivClasses ( ) |
public string getModel ( ) |
public string getModelValidatePermission ( ) |
public array getOptionsDelete ( ) |
public array getOptionsModify ( ) |
public string getlabelDelete ( ) |
public string getlabelModify ( ) |
Init modifylabel and deleteLabel
protected void initLabels ( ) |
public boolean isDisableDelete ( ) |
public boolean isDisableModify ( ) |
Executes the widget.
public string run ( ) | ||
return | string | The result of widget execution to be outputted. |
---|
public void setActionDelete ( $actionDelete ) | ||
$actionDelete | string |
public void setActionModify ( $actionModify ) | ||
$actionModify | string |
public void setCheckDeletePermission ( $checkDeletePermission ) | ||
$checkDeletePermission |
public void setCheckModifyPermission ( $checkModifyPermission ) | ||
$checkModifyPermission |
public void setConfirmModify ( $confirmModify ) | ||
$confirmModify |
public void setDisableDelete ( $disableDelete ) | ||
$disableDelete | boolean |
public void setDisableModify ( $disableModify ) | ||
$disableModify | boolean |
public void setLabelDelete ( $labelDelete ) | ||
$labelDelete |
public void setLabelDeleteConfirm ( $labelDeleteConfirm ) | ||
$labelDeleteConfirm | string |
public void setLabelModify ( $labelModify ) | ||
$labelModify |
public void setMainDivClasses ( $mainDivClasses ) | ||
$mainDivClasses | string |
public void setModel ( $model ) | ||
$model | string |
public void setModelValidatePermission ( $modelValidatePermission ) | ||
$modelValidatePermission | string |
public void setOptionsDelete ( $optionsDelete ) | ||
$optionsDelete | array |
public void setOptionsModify ( $optionsModify ) | ||
$optionsModify | array |