public function setCurrentModel($table)
    {
        if (!isset($this->module->tables[$table]['model'])) {
            throw new InvalidConfigException(Yii::t('app', 'Table model has to be set in config file'));
        }
        $modelClass = $this->module->tables[$table]['model'];
        $this->_currentModel = new $modelClass;
    }
public function setCurrentModel($table)
    {
        if (!isset($this->module->tables[$table]['model'])) {
            throw new InvalidConfigException(Yii::t('app', 'Table model has to be set in config file'));
        }
        $modelClass = $this->module->tables[$table]['model'];
        $this->_currentModel = new $modelClass;
    }
public function setCurrentModel ( $ table ) { if ( ! isset ( $ this -> module -> tables [ $ table ] [ 'model' ] ) ) { throw new InvalidConfigException ( Yii :: t ( 'app' , 'Table model has to be set in config file' ) ) ; } $ modelClass = $ this -> module -> tables [ $ table ] [ 'model' ] ; $ this -> _currentModel = new $ modelClass ; }
Sets to _currentModel property current model instance from configuration file

@param string $table
@throws InvalidConfigException
Sets to _currentModel property current model instance from configuration file