Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
e18dc2a1
Commit
e18dc2a1
authored
Jul 21, 2011
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
3762569f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
YiiBase.php
framework/YiiBase.php
+2
-2
Dictionary.php
framework/base/Dictionary.php
+4
-4
Model.php
framework/base/Model.php
+0
-0
ModelBehavior.php
framework/base/ModelBehavior.php
+3
-3
ModelEvent.php
framework/base/ModelEvent.php
+1
-1
Vector.php
framework/base/Vector.php
+4
-4
No files found.
framework/YiiBase.php
View file @
e18dc2a1
...
@@ -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
)
{
{
...
...
framework/base/Dictionary.php
View file @
e18dc2a1
...
@@ -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
*/
*/
...
...
framework/base/Model.php
View file @
e18dc2a1
This diff is collapsed.
Click to expand it.
framework/base/ModelBehavior.php
View file @
e18dc2a1
...
@@ -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'
,
);
);
}
}
...
...
framework/base/ModelEvent.php
View file @
e18dc2a1
...
@@ -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.
...
...
framework/base/Vector.php
View file @
e18dc2a1
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment