Browse Source

AttributeBehavior documentation cleanup [ci skip]

Removed a rogue 'For example' and split a long line

close #7940
tags/2.0.4
Steven Michaels 10 years ago committed by Carsten Brandt
parent
commit
5fc927c959
  1. 9
      framework/behaviors/AttributeBehavior.php

9
framework/behaviors/AttributeBehavior.php

@ -13,12 +13,13 @@ use yii\base\Behavior;
use yii\base\Event; use yii\base\Event;
/** /**
* AttributeBehavior automatically assigns a specified value to one or multiple attributes of an ActiveRecord object when certain events happen. * AttributeBehavior automatically assigns a specified value to one or multiple attributes of an ActiveRecord
* object when certain events happen.
* *
* To use AttributeBehavior, configure the [[attributes]] property which should specify the list of attributes * To use AttributeBehavior, configure the [[attributes]] property which should specify the list of attributes
* that need to be updated and the corresponding events that should trigger the update. For example, * that need to be updated and the corresponding events that should trigger the update. Then configure the
* Then configure the [[value]] property with a PHP callable whose return value will be used to assign to the current * [[value]] property with a PHP callable whose return value will be used to assign to the current attribute(s).
* attribute(s). For example, * For example,
* *
* ~~~ * ~~~
* use yii\behaviors\AttributeBehavior; * use yii\behaviors\AttributeBehavior;

Loading…
Cancel
Save