mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
updated @property annotations
This commit is contained in:
@ -69,7 +69,6 @@ use Yii;
|
||||
* }, $data);
|
||||
* ~~~
|
||||
*
|
||||
*
|
||||
* A behavior is an instance of [[Behavior]] or its child class. A component can be attached with one or multiple
|
||||
* behaviors. When a behavior is attached to a component, its public properties and methods can be accessed via the
|
||||
* component directly, as if the component owns those properties and methods.
|
||||
|
||||
@ -41,8 +41,9 @@ use yii\validators\Validator;
|
||||
* @property array $attributes Attribute values (name => value).
|
||||
* @property array $errors An array of errors for all attributes. Empty array is returned if no error. The
|
||||
* result is a two-dimensional array. See [[getErrors()]] for detailed description. This property is read-only.
|
||||
* @property array $firstErrors The first errors. An empty array will be returned if there is no error. This
|
||||
* property is read-only.
|
||||
* @property array $firstErrors The first errors. The array keys are the attribute names, and the array values
|
||||
* are the corresponding error messages. An empty array will be returned if there is no error. This property is
|
||||
* read-only.
|
||||
* @property ArrayIterator $iterator An iterator for traversing the items in the list. This property is
|
||||
* read-only.
|
||||
* @property string $scenario The scenario that this model is in. Defaults to [[SCENARIO_DEFAULT]].
|
||||
|
||||
@ -25,8 +25,8 @@ use Yii;
|
||||
* This property is write-only.
|
||||
* @property string $basePath The root directory of the module.
|
||||
* @property array $components The components (indexed by their IDs).
|
||||
* @property string $controllerPath The directory that contains the controller classes according to [[controllerNamespace]].
|
||||
* This property is read-only.
|
||||
* @property string $controllerPath The directory that contains the controller classes. This property is
|
||||
* read-only.
|
||||
* @property string $layoutPath The root directory of layout files. Defaults to "[[viewPath]]/layouts".
|
||||
* @property array $modules The modules (indexed by their IDs).
|
||||
* @property string $uniqueId The unique ID of the module. This property is read-only.
|
||||
|
||||
@ -46,7 +46,6 @@ use Yii;
|
||||
*
|
||||
* One can call [[hasProperty()]], [[canGetProperty()]] and/or [[canSetProperty()]] to check the existence of a property.
|
||||
*
|
||||
*
|
||||
* Besides the property feature, Object also introduces an important object initialization life cycle. In particular,
|
||||
* creating an new instance of Object or its derived class will involve the following life cycles sequentially:
|
||||
*
|
||||
|
||||
@ -18,6 +18,9 @@ use yii\widgets\FragmentCache;
|
||||
*
|
||||
* View provides a set of methods (e.g. [[render()]]) for rendering purpose.
|
||||
*
|
||||
* @property string|boolean $viewFile The view file currently being rendered. False if no view file is being
|
||||
* rendered. This property is read-only.
|
||||
*
|
||||
* @author Qiang Xue <qiang.xue@gmail.com>
|
||||
* @since 2.0
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user