public function setRel($relations = null)
        {
            $this->_rel = 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->_rel[$name] = $relation;
                    }
                }
            }

            return $this;
        }
public function setRel($relations = null)
        {
            $this->_rel = 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->_rel[$name] = $relation;
                    }
                }
            }

            return $this;
        }
public function setRel ( $ relations = null ) { $ this -> _rel = 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 -> _rel [ $ name ] = $ relation ; } } } return $ this ; }
Sets the page's forward links to other pages

This method expects an associative array of forward 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
forward links to other pages
@return Page          fluent interface, returns self
Sets the page s forward links to other pages