Commit e18dc2a1 by Qiang Xue

w

parent 3762569f
...@@ -141,7 +141,7 @@ class YiiBase ...@@ -141,7 +141,7 @@ class YiiBase
* will be included only when the class is being used. This parameter is used only when * will be included only when the class is being used. This parameter is used only when
* the path alias refers to a class. * the path alias refers to a class.
* @return string the class name or the directory that this alias refers to * @return string the class name or the directory that this alias refers to
* @throws Exception if the path alias is invalid * @throws \yii\base\Exception if the path alias is invalid
*/ */
public static function import($alias, $forceInclude = false) public static function import($alias, $forceInclude = false)
{ {
...@@ -315,7 +315,7 @@ class YiiBase ...@@ -315,7 +315,7 @@ class YiiBase
* *
* @param mixed $config the configuration. It can be either a string or an array. * @param mixed $config the configuration. It can be either a string or an array.
* @return mixed the created object * @return mixed the created object
* @throws Exception if the configuration does not have a 'class' element. * @throws \yii\base\Exception if the configuration does not have a 'class' element.
*/ */
public static function createComponent($config) public static function createComponent($config)
{ {
......
...@@ -259,7 +259,7 @@ class Dictionary extends Component implements \IteratorAggregate, \ArrayAccess, ...@@ -259,7 +259,7 @@ class Dictionary extends Component implements \IteratorAggregate, \ArrayAccess,
/** /**
* Returns whether there is an element at the specified offset. * Returns whether there is an element at the specified offset.
* This method is required by the SPL interface `ArrayAccess`. * This method is required by the SPL interface `ArrayAccess`.
* It is implicitly called when you use something like `isset($vector[$index])`. * It is implicitly called when you use something like `isset($dictionary[$offset])`.
* This is equivalent to [[contains]]. * This is equivalent to [[contains]].
* @param mixed $offset the offset to check on * @param mixed $offset the offset to check on
* @return boolean * @return boolean
...@@ -272,7 +272,7 @@ class Dictionary extends Component implements \IteratorAggregate, \ArrayAccess, ...@@ -272,7 +272,7 @@ class Dictionary extends Component implements \IteratorAggregate, \ArrayAccess,
/** /**
* Returns the element at the specified offset. * Returns the element at the specified offset.
* This method is required by the SPL interface `ArrayAccess`. * This method is required by the SPL interface `ArrayAccess`.
* It is implicitly called when you use something like `$value = $dictionary[$index];`. * It is implicitly called when you use something like `$value = $dictionary[$offset];`.
* This is equivalent to [[itemAt]]. * This is equivalent to [[itemAt]].
* @param integer $offset the offset to retrieve element. * @param integer $offset the offset to retrieve element.
* @return mixed the element at the offset, null if no element is found at the offset * @return mixed the element at the offset, null if no element is found at the offset
...@@ -285,7 +285,7 @@ class Dictionary extends Component implements \IteratorAggregate, \ArrayAccess, ...@@ -285,7 +285,7 @@ class Dictionary extends Component implements \IteratorAggregate, \ArrayAccess,
/** /**
* Sets the element at the specified offset. * Sets the element at the specified offset.
* This method is required by the SPL interface `ArrayAccess`. * This method is required by the SPL interface `ArrayAccess`.
* It is implicitly called when you use something like `$dictionary[$key] = $value;`. * It is implicitly called when you use something like `$dictionary[$offset] = $item;`.
* If the offset is null, the new item will be appended to the dictionary. * If the offset is null, the new item will be appended to the dictionary.
* Otherwise, the existing item at the offset will be replaced with the new item. * Otherwise, the existing item at the offset will be replaced with the new item.
* This is equivalent to [[add]]. * This is equivalent to [[add]].
...@@ -300,7 +300,7 @@ class Dictionary extends Component implements \IteratorAggregate, \ArrayAccess, ...@@ -300,7 +300,7 @@ class Dictionary extends Component implements \IteratorAggregate, \ArrayAccess,
/** /**
* Unsets the element at the specified offset. * Unsets the element at the specified offset.
* This method is required by the SPL interface `ArrayAccess`. * This method is required by the SPL interface `ArrayAccess`.
* It is implicitly called when you use something like `unset($dictionary[$index])`. * It is implicitly called when you use something like `unset($dictionary[$offset])`.
* This is equivalent to [[remove]]. * This is equivalent to [[remove]].
* @param mixed $offset the offset to unset element * @param mixed $offset the offset to unset element
*/ */
......
...@@ -28,9 +28,9 @@ class CModelBehavior extends CBehavior ...@@ -28,9 +28,9 @@ class CModelBehavior extends CBehavior
public function events() public function events()
{ {
return array( return array(
'onAfterConstruct'=>'afterConstruct', 'onAfterConstruct' => 'afterConstruct',
'onBeforeValidate'=>'beforeValidate', 'onBeforeValidate' => 'beforeValidate',
'onAfterValidate'=>'afterValidate', 'onAfterValidate' => 'afterValidate',
); );
} }
......
...@@ -28,7 +28,7 @@ class CModelEvent extends CEvent ...@@ -28,7 +28,7 @@ class CModelEvent extends CEvent
* If true, the normal execution cycles will continue, including performing the real validations and calling * If true, the normal execution cycles will continue, including performing the real validations and calling
* {@link CModel::afterValidate}. * {@link CModel::afterValidate}.
*/ */
public $isValid=true; public $isValid = true;
/** /**
* @var CDbCrireria the query criteria that is passed as a parameter to a find method of {@link CActiveRecord}. * @var CDbCrireria the query criteria that is passed as a parameter to a find method of {@link CActiveRecord}.
* Note that this property is only used by {@link CActiveRecord::onBeforeFind} event. * Note that this property is only used by {@link CActiveRecord::onBeforeFind} event.
......
...@@ -299,7 +299,7 @@ class Vector extends Component implements \IteratorAggregate, \ArrayAccess, \Cou ...@@ -299,7 +299,7 @@ class Vector extends Component implements \IteratorAggregate, \ArrayAccess, \Cou
/** /**
* Returns a value indicating whether there is an item at the specified offset. * Returns a value indicating whether there is an item at the specified offset.
* This method is required by the SPL interface `ArrayAccess`. * This method is required by the SPL interface `ArrayAccess`.
* It is implicitly called when you use something like `isset($vector[$index])`. * It is implicitly called when you use something like `isset($vector[$offset])`.
* @param integer $offset the offset to be checked * @param integer $offset the offset to be checked
* @return boolean whether there is an item at the specified offset. * @return boolean whether there is an item at the specified offset.
*/ */
...@@ -311,7 +311,7 @@ class Vector extends Component implements \IteratorAggregate, \ArrayAccess, \Cou ...@@ -311,7 +311,7 @@ class Vector extends Component implements \IteratorAggregate, \ArrayAccess, \Cou
/** /**
* Returns the item at the specified offset. * Returns the item at the specified offset.
* This method is required by the SPL interface `ArrayAccess`. * This method is required by the SPL interface `ArrayAccess`.
* It is implicitly called when you use something like `$value = $vector[$index];`. * It is implicitly called when you use something like `$value = $vector[$offset];`.
* This is equivalent to [[itemAt]]. * This is equivalent to [[itemAt]].
* @param integer $offset the offset to retrieve item. * @param integer $offset the offset to retrieve item.
* @return mixed the item at the offset * @return mixed the item at the offset
...@@ -325,7 +325,7 @@ class Vector extends Component implements \IteratorAggregate, \ArrayAccess, \Cou ...@@ -325,7 +325,7 @@ class Vector extends Component implements \IteratorAggregate, \ArrayAccess, \Cou
/** /**
* Sets the item at the specified offset. * Sets the item at the specified offset.
* This method is required by the SPL interface `ArrayAccess`. * This method is required by the SPL interface `ArrayAccess`.
* It is implicitly called when you use something like `$vector[$index] = $value;`. * It is implicitly called when you use something like `$vector[$offset] = $item;`.
* If the offset is null or equal to the number of the existing items, * If the offset is null or equal to the number of the existing items,
* the new item will be appended to the vector. * the new item will be appended to the vector.
* Otherwise, the existing item at the offset will be replaced with the new item. * Otherwise, the existing item at the offset will be replaced with the new item.
...@@ -347,7 +347,7 @@ class Vector extends Component implements \IteratorAggregate, \ArrayAccess, \Cou ...@@ -347,7 +347,7 @@ class Vector extends Component implements \IteratorAggregate, \ArrayAccess, \Cou
/** /**
* Unsets the item at the specified offset. * Unsets the item at the specified offset.
* This method is required by the SPL interface `ArrayAccess`. * This method is required by the SPL interface `ArrayAccess`.
* It is implicitly called when you use something like `unset($vector[$index])`. * It is implicitly called when you use something like `unset($vector[$offset])`.
* This is equivalent to [[removeAt]]. * This is equivalent to [[removeAt]].
* @param integer $offset the offset to unset item * @param integer $offset the offset to unset item
* @throws Exception if the offset is out of range, or the vector is read only. * @throws Exception if the offset is out of range, or the vector is read only.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment