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.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
assets | Loading commit data... | |
base | Loading commit data... | |
behaviors | Loading commit data... | |
caching | Loading commit data... | |
captcha | Loading commit data... | |
console | Loading commit data... | |
data | Loading commit data... | |
db | Loading commit data... | |
grid | Loading commit data... | |
helpers | Loading commit data... | |
i18n | Loading commit data... | |
log | Loading commit data... | |
Loading commit data... | ||
messages | Loading commit data... | |
mutex | Loading commit data... | |
rbac | Loading commit data... | |
requirements | Loading commit data... | |
test | Loading commit data... | |
validators | Loading commit data... | |
views | Loading commit data... | |
web | Loading commit data... | |
widgets | Loading commit data... | |
.gitignore | Loading commit data... | |
.htaccess | Loading commit data... | |
BaseYii.php | Loading commit data... | |
Yii.php | Loading commit data... | |
classes.php | Loading commit data... | |
yii | Loading commit data... | |
yii.bat | Loading commit data... |