public function applyOptions(array $options)
    {
        if (isset($options['page'])) {
            $this->page($options['page']);

            unset($options['page']);
        }
        if (isset($options['limit'])) {
            $this->limit($options['limit']);

            unset($options['limit']);
        }
        if (isset($options['order'])) {
            $this->order($options['order']);

            unset($options['order']);
        }
        if (isset($options['conditions'])) {
            $this->where($options['conditions']);

            unset($options['conditions']);
        }

        $this->_options = Hash::merge($this->_options, $options);

        return $this;
    }
public function applyOptions(array $options)
    {
        if (isset($options['page'])) {
            $this->page($options['page']);

            unset($options['page']);
        }
        if (isset($options['limit'])) {
            $this->limit($options['limit']);

            unset($options['limit']);
        }
        if (isset($options['order'])) {
            $this->order($options['order']);

            unset($options['order']);
        }
        if (isset($options['conditions'])) {
            $this->where($options['conditions']);

            unset($options['conditions']);
        }

        $this->_options = Hash::merge($this->_options, $options);

        return $this;
    }
public function applyOptions ( array $ options ) { if ( isset ( $ options [ 'page' ] ) ) { $ this -> page ( $ options [ 'page' ] ) ; unset ( $ options [ 'page' ] ) ; } if ( isset ( $ options [ 'limit' ] ) ) { $ this -> limit ( $ options [ 'limit' ] ) ; unset ( $ options [ 'limit' ] ) ; } if ( isset ( $ options [ 'order' ] ) ) { $ this -> order ( $ options [ 'order' ] ) ; unset ( $ options [ 'order' ] ) ; } if ( isset ( $ options [ 'conditions' ] ) ) { $ this -> where ( $ options [ 'conditions' ] ) ; unset ( $ options [ 'conditions' ] ) ; } $ this -> _options = Hash :: merge ( $ this -> _options , $ options ) ; return $ this ; }
Populates or adds parts to current query clauses using an array.
This is handy for passing all query clauses at once.

@param array $options the options to be applied
@return $this This object
Populates or adds parts to current query clauses using an array . This is handy for passing all query clauses at once .