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
bb92623f
Commit
bb92623f
authored
May 30, 2012
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed doc.
parent
78623f3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
Component.php
framework/base/Component.php
+9
-9
todo.md
todo.md
+0
-1
No files found.
framework/base/Component.php
View file @
bb92623f
...
...
@@ -33,7 +33,6 @@ class Component extends \yii\base\Object
* This method will check in the following order and act accordingly:
*
* - a property defined by a getter: return the getter result
* - a behavior: return the behavior object
* - a property of a behavior: return the behavior property value
*
* Do not call this method directly as it is a PHP magic method that
...
...
@@ -67,7 +66,8 @@ class Component extends \yii\base\Object
* This method will check in the following order and act accordingly:
*
* - a property defined by a setter: set the property value
* - an event: attach the handler to the event
* - an event in the format of "on xyz": attach the handler to the event "xyz"
* - a behavior in the format of "as xyz": attach the behavior named as "xyz"
* - a property of a behavior: set the behavior property value
*
* Do not call this method directly as it is a PHP magic method that
...
...
@@ -218,9 +218,9 @@ class Component extends \yii\base\Object
*
* ~~~
* 'behaviorName' => array(
*
'class' => 'BehaviorClass',
*
'property1' => 'value1',
*
'property2' => 'value2',
*
'class' => 'BehaviorClass',
*
'property1' => 'value1',
*
'property2' => 'value2',
* )
* ~~~
*
...
...
@@ -284,10 +284,10 @@ class Component extends \yii\base\Object
* some examples:
*
* ~~~
* function($event) { ... }
// anonymous function
* array($object, 'handleClick')
// $object->handleClick()
* array('Page', 'handleClick')
// Page::handleClick()
* 'handleClick'
// global function handleClick()
* function($event) { ... }
// anonymous function
* array($object, 'handleClick')
// $object->handleClick()
* array('Page', 'handleClick')
// Page::handleClick()
* 'handleClick'
// global function handleClick()
* ~~~
*
* An event handler must be defined with the following signature,
...
...
todo.md
View file @
bb92623f
...
...
@@ -12,7 +12,6 @@
*
FileValidator, UniqueValidator, ExistValidator, DateValidator: TBD
*
consider merging UniqueValidator and ExistValidator and using a NOT property: array('!exist', …)
*
when getting errors from getErrors it will be good to have which validator (at least type) failed exactly.
-
console command support
[
DONE
]
-
built-in console commands
+
api doc builder
*
support for markdown syntax
...
...
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