mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding TreeBehavior::setScope(), fixes #3232
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6252 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
69b2ad7556
commit
fbf5330fd8
1 changed files with 9 additions and 0 deletions
|
@ -54,6 +54,15 @@ class TreeBehavior extends ModelBehavior {
|
|||
}*/
|
||||
$this->settings[$model->alias] = $settings;
|
||||
}
|
||||
/**
|
||||
* Change the Tree behavior on the fly
|
||||
*
|
||||
* @param object $model
|
||||
* @param mixed $scope
|
||||
*/
|
||||
function setScope(&$model, $scope) {
|
||||
$this->settings[$model->name]['scope'] = $scope;
|
||||
}
|
||||
/**
|
||||
* After save method. Called after all saves
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue