mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Some minimal doc blocks changes for consitency
This commit is contained in:
@ -21,14 +21,16 @@ use yii\base\Event;
|
||||
* attribute(s). For example,
|
||||
*
|
||||
* ~~~
|
||||
* use yii\behaviors\AttributeBehavior;
|
||||
*
|
||||
* public function behaviors()
|
||||
* {
|
||||
* return [
|
||||
* 'attributeStamp' => [
|
||||
* 'class' => 'yii\behaviors\AttributeBehavior',
|
||||
* 'class' => AttributeBehavior::className(),
|
||||
* 'attributes' => [
|
||||
* ActiveRecord::EVENT_BEFORE_INSERT => ['attribute1'],
|
||||
* ActiveRecord::EVENT_BEFORE_UPDATE => ['attribute2'],
|
||||
* ActiveRecord::EVENT_BEFORE_INSERT => 'attribute1',
|
||||
* ActiveRecord::EVENT_BEFORE_UPDATE => 'attribute2',
|
||||
* ],
|
||||
* 'value' => function ($event) {
|
||||
* return 'some value';
|
||||
|
Reference in New Issue
Block a user