Updated documentation

This commit is contained in:
Jeremy Harris 2011-01-13 18:06:32 -08:00
parent 2b596859cb
commit 39e06b0425
3 changed files with 9 additions and 9 deletions

View file

@ -58,11 +58,11 @@ class ComponentCollection extends ObjectCollection {
* You can use `$settings['enabled'] = false` to disable callbacks on a component when loading it. * You can use `$settings['enabled'] = false` to disable callbacks on a component when loading it.
* Callbacks default to on. Disabled component methods work as normal, only callbacks are disabled. * Callbacks default to on. Disabled component methods work as normal, only callbacks are disabled.
* *
* You can alias your component as an existing component by setting the 'alias' key, i.e., * You can alias your component as an existing component by setting the 'className' key, i.e.,
* {{{ * {{{
* public $components = array( * public $components = array(
* 'AliasedEmail' => array( * 'Email' => array(
* 'alias' => 'Email' * 'className' => 'AliasedEmail'
* ); * );
* ); * );
* }}} * }}}

View file

@ -83,11 +83,11 @@ class BehaviorCollection extends ObjectCollection {
* to load a behavior with callbacks disabled. By default callbacks are enabled. Disable behaviors * to load a behavior with callbacks disabled. By default callbacks are enabled. Disable behaviors
* can still be used as normal. * can still be used as normal.
* *
* You can alias your behavior as an existing behavior by setting the 'alias' key, i.e., * You can alias your behavior as an existing behavior by setting the 'className' key, i.e.,
* {{{ * {{{
* public $actsAs = array( * public $actsAs = array(
* 'AliasedTree' => array( * 'Tree' => array(
* 'alias' => 'Tree' * 'className' => 'AliasedTree'
* ); * );
* ); * );
* }}} * }}}

View file

@ -41,11 +41,11 @@ class HelperCollection extends ObjectCollection {
* can set `$settings['enabled'] = false` to disable callbacks. This alias is provided so that when * can set `$settings['enabled'] = false` to disable callbacks. This alias is provided so that when
* declaring $helpers arrays you can disable callbacks on helpers. * declaring $helpers arrays you can disable callbacks on helpers.
* *
* You can alias your helper as an existing helper by setting the 'alias' key, i.e., * You can alias your helper as an existing helper by setting the 'className' key, i.e.,
* {{{ * {{{
* public $components = array( * public $components = array(
* 'AliasedHtml' => array( * 'Html' => array(
* 'alias' => 'Html' * 'className' => 'AliasedHtml'
* ); * );
* ); * );
* }}} * }}}