Changing CamelCase parameter to camelBack

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5929 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2007-10-30 18:07:23 +00:00
parent cecc2e74e3
commit 9885e2d253

View file

@ -60,76 +60,76 @@ class ModelBehavior extends Object {
/** /**
* Setup this behavior with the specified configuration settings. * Setup this behavior with the specified configuration settings.
* *
* @param object $Model Model using this behavior * @param object $model Model using this behavior
* @param array $config Configuration settings for $Model * @param array $config Configuration settings for $model
* @access public * @access public
*/ */
function setup(&$Model, $config = array()) { } function setup(&$model, $config = array()) { }
/** /**
* Before find callback * Before find callback
* *
* @param object $Model Model using this behavior * @param object $model Model using this behavior
* @param array $queryData Data used to execute this query, i.e. conditions, order, etc. * @param array $queryData Data used to execute this query, i.e. conditions, order, etc.
* @return boolean True if the operation should continue, false if it should abort * @return boolean True if the operation should continue, false if it should abort
* @access public * @access public
*/ */
function beforeFind(&$Model, $query) { } function beforeFind(&$model, $query) { }
/** /**
* After find callback. Can be used to modify any results returned by find and findAll. * After find callback. Can be used to modify any results returned by find and findAll.
* *
* @param object $Model Model using this behavior * @param object $model Model using this behavior
* @param mixed $results The results of the find operation * @param mixed $results The results of the find operation
* @param boolean $primary Whether this model is being queried directly (vs. being queried as an association) * @param boolean $primary Whether this model is being queried directly (vs. being queried as an association)
* @return mixed Result of the find operation * @return mixed Result of the find operation
* @access public * @access public
*/ */
function afterFind(&$Model, $results, $primary) { } function afterFind(&$model, $results, $primary) { }
/** /**
* Before validate callback * Before validate callback
* *
* @param object $Model Model using this behavior * @param object $model Model using this behavior
* @return boolean True if validate operation should continue, false to abort * @return boolean True if validate operation should continue, false to abort
* @access public * @access public
*/ */
function beforeValidate(&$Model) { } function beforeValidate(&$model) { }
/** /**
* Before save callback * Before save callback
* *
* @param object $Model Model using this behavior * @param object $model Model using this behavior
* @return boolean True if the operation should continue, false if it should abort * @return boolean True if the operation should continue, false if it should abort
* @access public * @access public
*/ */
function beforeSave(&$Model) { } function beforeSave(&$model) { }
/** /**
* After save callback * After save callback
* *
* @param object $Model Model using this behavior * @param object $model Model using this behavior
* @param boolean $created True if this save created a new record * @param boolean $created True if this save created a new record
* @access public * @access public
*/ */
function afterSave(&$Model, $created) { } function afterSave(&$model, $created) { }
/** /**
* Before delete callback * Before delete callback
* *
* @param object $Model Model using this behavior * @param object $model Model using this behavior
* @return boolean True if the operation should continue, false if it should abort * @return boolean True if the operation should continue, false if it should abort
* @access public * @access public
*/ */
function beforeDelete(&$Model) { } function beforeDelete(&$model) { }
/** /**
* After delete callback * After delete callback
* *
* @param object $Model Model using this behavior * @param object $model Model using this behavior
* @access public * @access public
*/ */
function afterDelete(&$Model) { } function afterDelete(&$model) { }
/** /**
* DataSource error callback * DataSource error callback
* *
* @param object $Model Model using this behavior * @param object $model Model using this behavior
* @param string $error Error generated in DataSource * @param string $error Error generated in DataSource
* @access public * @access public
*/ */
function onError(&$Model, $error) { } function onError(&$model, $error) { }
} }
?> ?>