public function setAll(array $values)
    {
        if ($this->getResource()) {
            if ($this->useLocalResource) {
                $this->localResource = $values;
            } else {
                $GLOBALS[$this->getResource()] = $values;
            }
        }
        return $this;
    }
public function setAll(array $values)
    {
        if ($this->getResource()) {
            if ($this->useLocalResource) {
                $this->localResource = $values;
            } else {
                $GLOBALS[$this->getResource()] = $values;
            }
        }
        return $this;
    }
public function setAll ( array $ values ) { if ( $ this -> getResource ( ) ) { if ( $ this -> useLocalResource ) { $ this -> localResource = $ values ; } else { $ GLOBALS [ $ this -> getResource ( ) ] = $ values ; } } return $ this ; }
Set entire array onto the resource

@param array $values

@return $this
Set entire array onto the resource