Exemplo n.º 1
0
 protected function _getConfig($modelname)
 {
     // die($modelname);
     $config = App_Env::getConfig($modelname);
     // print_r($config->classes->$modelname);
     // var_dump($config->classes->$modelname);
     if (isset($config->classes->{$modelname})) {
         return $config->classes->{$modelname};
     } else {
         return $config;
     }
     //  return $config->classes->$modelname;
 }
Exemplo n.º 2
0
 public function setModelConfig($config)
 {
     //static $x;
     //echo $x++;
     //echo "[".CONFIG_PATH . "$config","]";
     if (is_string($config)) {
         $this->_configFileName = $config;
         $model = $this->_model;
         $this->_config = App_Env::getConfig($model);
     }
     /*
     if (is_string ( $model )) {
     	$this->_config = $config->classes->$model;
     } else {
     	$this->_config = $config->classes->$model->getModelName ();
     }
     */
     // print_r( $this->_config );
     return $this;
 }
Exemplo n.º 3
0
 public function setModelConfigXml()
 {
     //static $x;
     //echo $x++;
     //echo "[".CONFIG_PATH . "$config","]";
     $model = $this->_modelName;
     $this->_config = App_Env::getConfig($model);
     return $this;
 }
Exemplo n.º 4
0
 protected function _getConfig($modelname)
 {
     return App_Env::getConfig($modelname);
 }