mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
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:
parent
cecc2e74e3
commit
9885e2d253
1 changed files with 19 additions and 19 deletions
|
@ -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) { }
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Add table
Reference in a new issue