public function setRev($relations = null)
        {
            $this->_rev = array();

            if (null !== $relations) {
                if (!is_array($relations)) {
                    throw new Exception(
                            'Invalid argument: $relations must be an array');
                }

                foreach ($relations as $name => $relation) {
                    if (is_string($name)) {
                        $this->_rev[$name] = $relation;
                    }
                }
            }

            return $this;
        }
public function setRev($relations = null)
        {
            $this->_rev = array();

            if (null !== $relations) {
                if (!is_array($relations)) {
                    throw new Exception(
                            'Invalid argument: $relations must be an array');
                }

                foreach ($relations as $name => $relation) {
                    if (is_string($name)) {
                        $this->_rev[$name] = $relation;
                    }
                }
            }

            return $this;
        }
public function setRev ( $ relations = null ) { $ this -> _rev = array ( ) ; if ( null !== $ relations ) { if ( ! is_array ( $ relations ) ) { throw new Exception ( 'Invalid argument: $relations must be an array' ) ; } foreach ( $ relations as $ name => $ relation ) { if ( is_string ( $ name ) ) { $ this -> _rev [ $ name ] = $ relation ; } } } return $ this ; }
Sets the page's reverse links to other pages

This method expects an associative array of reverse links to other pages,
where each element's key is the name of the relation (e.g. alternate,
prev, next, help, etc), and the value is a mixed value that could somehow
be considered a page.

@param  array $relations  [optional] an associative array of
reverse links to other pages
@return Page          fluent interface, returns self
Sets the page s reverse links to other pages