Download the PHP package jberall/yii2-statusbehavior without Composer
On this page you can find all versions of the php package jberall/yii2-statusbehavior. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-statusbehavior
Status Behavior
A behavior that set the status to 0 when the status_column is set to null. triggered on BaseActiveRecord::EVENT_BEFORE_INSERT and BaseActiveRecord::EVENT_BEFORE_UPDATE
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
public function behaviors() {
$behaviors = [
'statusBehavior' => [
'class' => \frontend\behaviors\StatusBehavior::className(),
'status_column' => 'status_id',
],
];
return ArrayHelper::merge(parent::behaviors(),$behaviors);
}
All versions of yii2-statusbehavior with dependencies
PHP Build Version
Package Version
No informations.
The package jberall/yii2-statusbehavior contains the following files
Loading the files please wait ....