26 Commits

Author SHA1 Message Date
173c7de82b changed default value of Component::_events 2013-12-30 16:55:57 +01:00
ee81915a1e Removed redundant code in detachBehaviors()
After ensureBehaviors() call $this->_behaviors is an array already.
And since detachBehavior() unsets elements in $this->_behaviors, $this->_behaviors turns out to be an empty array after all iterations.
2013-12-30 15:14:11 +01:00
85b5c75b61 doc style 2013-12-12 22:01:41 +01:00
5156cc14ce More docs 2013-12-12 21:41:09 +07:00
4d720389c3 It is more obviouse what to pass in trigger() method 2013-11-17 19:48:27 +07:00
684ee633f7 removed unneeded check. 2013-11-16 23:38:04 -05:00
539e233d9c massive improvement on class documentation
- added example code for application components
- added missing short description

[ci skip]
2013-11-13 01:16:21 +01:00
9b95a81b0c Fixed the rest phpDocs [skip ci] 2013-11-12 03:13:37 +00:00
8b00693a0a Fixes #1025: Implemented support for class-level events. 2013-10-30 00:12:48 -04:00
0ee120f5f9 refactored Component::off(). 2013-10-29 23:17:50 -04:00
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
91b6e2945a Removed the support for calling anonymous function returned as a property value. 2013-09-12 20:10:06 -04:00
84dd19d76f Fixed the issue that Object/Component doesn't support using anonymous function as normal property values. 2013-09-11 13:42:34 -04:00
326e98a41c doc fix. 2013-09-05 08:31:04 -04:00
9a4d7ff15b Exception message when getting write-only property 2013-09-01 19:57:54 +02:00
7fa81949bf various documentation changes 2013-09-01 19:47:26 +02:00
7a6ce8251a simplified method check in Component::__call() 2013-09-01 14:40:15 +02:00
15a3ec2764 added unit tests and call to $behavior->hasMethod in Component 2013-08-31 23:27:52 +02:00
7a55640670 Added hasMethod() to Component and Object class
this allows implementing __call() in behaviors

See this forum topic for details:
http://www.yiiframework.com/forum/index.php/topic/46629-invoke-behavior-method-through-php-magic-method-call-dosent-work/
2013-08-31 18:53:44 +02:00
f83fcc553c fixed return value of Component::can*Property
return false, not null
2013-08-31 18:51:00 +02:00
ca69ef09d4 update of @property annotations 2013-08-28 14:59:52 +02:00
004c509ca3 checkVar => checkVars 2013-08-03 23:42:17 +02:00
bb05ed4f24 Update Component.php 2013-08-03 23:13:31 +02:00
846f17017c Component::hasProperty() small optimization 2013-08-03 23:10:43 +02:00
250ec28e0c Fixes #713. 2013-08-03 16:54:08 -04:00
f72105166c reorganized the main repo to satisfy PSR-0. 2013-05-21 21:19:05 -04:00