public function init($config, $global)
    {
        //~ Comment
        $this->author  = $global['comment']['author'];
        $this->version = $global['comment']['version'];

        //~ Class
        $this->classname = $config['class']['classname'];
        $this->namespace = $config['class']['namespace'];

        //~ Cache
        $this->cacheName   = $config['cache']['name'];
        $this->cachePrefix = $config['cache']['prefix'];

        //~ Db
        $this->dbTable  = $config['db']['table'];
        $this->dbPrefix = $config['db']['prefix'];

        //~ Joins
        $this->joinList = (isset($config['joins']) ? $config['joins'] : array());

        return $this;
    }
public function init($config, $global)
    {
        //~ Comment
        $this->author  = $global['comment']['author'];
        $this->version = $global['comment']['version'];

        //~ Class
        $this->classname = $config['class']['classname'];
        $this->namespace = $config['class']['namespace'];

        //~ Cache
        $this->cacheName   = $config['cache']['name'];
        $this->cachePrefix = $config['cache']['prefix'];

        //~ Db
        $this->dbTable  = $config['db']['table'];
        $this->dbPrefix = $config['db']['prefix'];

        //~ Joins
        $this->joinList = (isset($config['joins']) ? $config['joins'] : array());

        return $this;
    }
public function init ( $ config , $ global ) { //~ Comment $ this -> author = $ global [ 'comment' ] [ 'author' ] ; $ this -> version = $ global [ 'comment' ] [ 'version' ] ; //~ Class $ this -> classname = $ config [ 'class' ] [ 'classname' ] ; $ this -> namespace = $ config [ 'class' ] [ 'namespace' ] ; //~ Cache $ this -> cacheName = $ config [ 'cache' ] [ 'name' ] ; $ this -> cachePrefix = $ config [ 'cache' ] [ 'prefix' ] ; //~ Db $ this -> dbTable = $ config [ 'db' ] [ 'table' ] ; $ this -> dbPrefix = $ config [ 'db' ] [ 'prefix' ] ; //~ Joins $ this -> joinList = ( isset ( $ config [ 'joins' ] ) ? $ config [ 'joins' ] : array ( ) ) ; return $ this ; }
Initialize config.

@param  array $config
@param  array $global
@return self
Initialize config .