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
d9d36006
Commit
d9d36006
authored
Feb 02, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed default scenario constant in docs
parent
edb0991b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Model.php
framework/base/Model.php
+3
-3
No files found.
framework/base/Model.php
View file @
d9d36006
...
@@ -45,7 +45,7 @@ use yii\validators\Validator;
...
@@ -45,7 +45,7 @@ use yii\validators\Validator;
* property is read-only.
* property is read-only.
* @property ArrayIterator $iterator An iterator for traversing the items in the list. This property is
* @property ArrayIterator $iterator An iterator for traversing the items in the list. This property is
* read-only.
* read-only.
* @property string $scenario The scenario that this model is in. Defaults to [[
DEFAULT_SCENARIO
]].
* @property string $scenario The scenario that this model is in. Defaults to [[
SCENARIO_DEFAULT
]].
* @property ArrayObject|\yii\validators\Validator[] $validators All the validators declared in the model.
* @property ArrayObject|\yii\validators\Validator[] $validators All the validators declared in the model.
* This property is read-only.
* This property is read-only.
*
*
...
@@ -170,7 +170,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab
...
@@ -170,7 +170,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab
* please prefix the attribute with an exclamation character (e.g. '!rank').
* please prefix the attribute with an exclamation character (e.g. '!rank').
*
*
* The default implementation of this method will return all scenarios found in the [[rules()]]
* The default implementation of this method will return all scenarios found in the [[rules()]]
* declaration. A special scenario named [[
DEFAULT_SCENARIO
]] will contain all attributes
* declaration. A special scenario named [[
SCENARIO_DEFAULT
]] will contain all attributes
* found in the [[rules()]]. Each scenario will be associated with the attributes that
* found in the [[rules()]]. Each scenario will be associated with the attributes that
* are being validated by the validation rules that apply to the scenario.
* are being validated by the validation rules that apply to the scenario.
*
*
...
@@ -649,7 +649,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab
...
@@ -649,7 +649,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab
* Scenario affects how validation is performed and which attributes can
* Scenario affects how validation is performed and which attributes can
* be massively assigned.
* be massively assigned.
*
*
* @return string the scenario that this model is in. Defaults to [[
DEFAULT_SCENARIO
]].
* @return string the scenario that this model is in. Defaults to [[
SCENARIO_DEFAULT
]].
*/
*/
public
function
getScenario
()
public
function
getScenario
()
{
{
...
...
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