public function setConfig($config)
    {
        if (is_array($config)) {
            $this->config = $config;
        } else {
            $this->config = (array) gplcart_config_get((string) $config);
            $this->setDb($this->config['database']);
            $this->config = array_merge($this->config, $this->select());
        }
    }
public function setConfig($config)
    {
        if (is_array($config)) {
            $this->config = $config;
        } else {
            $this->config = (array) gplcart_config_get((string) $config);
            $this->setDb($this->config['database']);
            $this->config = array_merge($this->config, $this->select());
        }
    }
public function setConfig ( $ config ) { if ( is_array ( $ config ) ) { $ this -> config = $ config ; } else { $ this -> config = ( array ) gplcart_config_get ( ( string ) $ config ) ; $ this -> setDb ( $ this -> config [ 'database' ] ) ; $ this -> config = array_merge ( $ this -> config , $ this -> select ( ) ) ; } }
Set array of configuration options
@param array|string $config Either a file path or an array of configuration options
Set array of configuration options