Exemplo n.º 1
0
 protected function _createDependentModel($rule)
 {
     if ($rule == 'ChildComponents') {
         if (!isset($this->_childComponentsModel)) {
             $c = $this->_dependentModels[$rule];
             $this->_childComponentsModel = new $c(array('componentClass' => $this->_componentClass));
         }
         return $this->_childComponentsModel;
     } else {
         return parent::_createDependentModel($rule);
     }
 }