Exemplo n.º 1
0
 /**
  * Setup the behavior
  *
  * @param AppModel $Model Model instance
  * @param array $settings
  * @return boolean
  */
 public function setUp(Model $Model, $settings = array())
 {
     $this->IcingThrottle = ClassRegistry::init('Icing.Throttle');
     return parent::setUp($Model, $settings);
 }
Exemplo n.º 2
0
 /**
  * Setup the behavior
  *
  * @param AppModel $Model Model instance
  * @param array $settings
  * @return boolean
  */
 public function setUp(Model $Model, $settings = array())
 {
     $this->settings[$Model->alias] = array_merge($this->_defaults, $settings);
     return parent::setUp($Model, $settings);
 }