original_string: 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());
          }
      }
code: 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());
          }
      }
code_tokens: 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 ( ) ) ; } }
docstring: Set array of configuration options
  @param array|string $config Either a file path or an array of configuration options
docstring_tokens: Set array of configuration options