public function import($config)
    {
        if (is_array($config)) {
            $data = $this->getAll();
            $origin = $data->export();
            $data->import($config);
            $data->import($origin);
            $this->setFromData($data);
        }
    }
public function import($config)
    {
        if (is_array($config)) {
            $data = $this->getAll();
            $origin = $data->export();
            $data->import($config);
            $data->import($origin);
            $this->setFromData($data);
        }
    }
public function import ( $ config ) { if ( is_array ( $ config ) ) { $ data = $ this -> getAll ( ) ; $ origin = $ data -> export ( ) ; $ data -> import ( $ config ) ; $ data -> import ( $ origin ) ; $ this -> setFromData ( $ data ) ; } }
Import array config to current config.

@param array $config

@return $this
Import array config to current config .