Some minimal doc blocks changes for consitency

This commit is contained in:
Luciano Baraglia
2014-02-20 09:57:17 -03:00
parent 54476b4853
commit a625b79bf2
3 changed files with 11 additions and 10 deletions

View File

@ -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';