public function fill(array $mparams)
    {
        $assocs = array();
        foreach ($mparams as $name => $params) {
            if (is_array($params)) {
                $this->create($params, $name);
            } elseif (isset($mparams[$params])) {
                $assocs[$name] = $params;
            } else {
                throw new StorageAssoc($params);
            }
        }
        foreach ($assocs as $name => $assoc) {
            $this->set($this->get($assoc), $name);
        }
    }
public function fill(array $mparams)
    {
        $assocs = array();
        foreach ($mparams as $name => $params) {
            if (is_array($params)) {
                $this->create($params, $name);
            } elseif (isset($mparams[$params])) {
                $assocs[$name] = $params;
            } else {
                throw new StorageAssoc($params);
            }
        }
        foreach ($assocs as $name => $assoc) {
            $this->set($this->get($assoc), $name);
        }
    }
public function fill ( array $ mparams ) { $ assocs = array ( ) ; foreach ( $ mparams as $ name => $ params ) { if ( is_array ( $ params ) ) { $ this -> create ( $ params , $ name ) ; } elseif ( isset ( $ mparams [ $ params ] ) ) { $ assocs [ $ name ] = $ params ; } else { throw new StorageAssoc ( $ params ) ; } } foreach ( $ assocs as $ name => $ assoc ) { $ this -> set ( $ this -> get ( $ assoc ) , $ name ) ; } }
Fills the storage by databases

@param array $mparams
parameters for create databases
@throws \go\DB\Exceptions\StorageAssoc
@throws \go\DB\Exceptions\StorageEngaged
Fills the storage by databases