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
87999425
Commit
87999425
authored
Aug 25, 2011
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor typo fixes
parent
14286201
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Model.php
framework/base/Model.php
+2
-2
ModelBehavior.php
framework/base/ModelBehavior.php
+3
-3
No files found.
framework/base/Model.php
View file @
87999425
...
...
@@ -419,7 +419,7 @@ class Model extends Component implements Initable, \IteratorAggregate, \ArrayAcc
public
function
getAttributeLabel
(
$attribute
)
{
$labels
=
$this
->
attributeLabels
();
return
isset
(
$labels
[
$attribute
])
?
$labels
[
$attribute
]
:
$this
->
generateAttributeLabel
(
$attribute
)
return
isset
(
$labels
[
$attribute
])
?
$labels
[
$attribute
]
:
$this
->
generateAttributeLabel
(
$attribute
)
;
}
/**
...
...
@@ -590,7 +590,7 @@ class Model extends Component implements Initable, \IteratorAggregate, \ArrayAcc
public
function
onUnsafeAttribute
(
$name
,
$value
)
{
if
(
YII_DEBUG
)
{
\Yii
::
warning
(
sprintf
(
'Failed to set unsafe attribute "%s" in "%s".'
,
$name
,
get_class
(
$this
));
\Yii
::
warning
(
sprintf
(
'Failed to set unsafe attribute "%s" in "%s".'
,
$name
,
get_class
(
$this
))
)
;
}
}
...
...
framework/base/ModelBehavior.php
View file @
87999425
...
...
@@ -42,7 +42,7 @@ class ModelBehavior extends Behavior
/**
* Responds to [[Model::onAfterConstruct]] event.
* Override
s
this method if you want to handle the corresponding event of the [[owner]].
* Override this method if you want to handle the corresponding event of the [[owner]].
* @param Event $event event parameter
*/
public
function
afterConstruct
(
$event
)
...
...
@@ -51,7 +51,7 @@ class ModelBehavior extends Behavior
/**
* Responds to [[Model::onBeforeValidate]] event.
* Override
s
this method if you want to handle the corresponding event of the [[owner]].
* Override this method if you want to handle the corresponding event of the [[owner]].
* You may set the [[ValidationEvent::isValid|isValid]] property of the event parameter
* to be false to cancel the validation process.
* @param ValidationEvent $event event parameter
...
...
@@ -62,7 +62,7 @@ class ModelBehavior extends Behavior
/**
* Responds to [[Model::onAfterValidate]] event.
* Override
s
this method if you want to handle the corresponding event of the [[owner]].
* Override this method if you want to handle the corresponding event of the [[owner]].
* @param Event $event event parameter
*/
public
function
afterValidate
(
$event
)
...
...
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