public function setResource($resource = null)
        {
            if (null === $resource || is_string($resource) ||
                $resource instanceof Acl) {
                $this->_resource = $resource;
            } else {
                require_once 'Zend/Navigation/Exception.php';
                throw new Exception(
                        'Invalid argument: $resource must be null, a string, ' .
                        ' or an instance of Acl');
            }

            return $this;
        }
public function setResource($resource = null)
        {
            if (null === $resource || is_string($resource) ||
                $resource instanceof Acl) {
                $this->_resource = $resource;
            } else {
                require_once 'Zend/Navigation/Exception.php';
                throw new Exception(
                        'Invalid argument: $resource must be null, a string, ' .
                        ' or an instance of Acl');
            }

            return $this;
        }
public function setResource ( $ resource = null ) { if ( null === $ resource || is_string ( $ resource ) || $ resource instanceof Acl ) { $ this -> _resource = $ resource ; } else { require_once 'Zend/Navigation/Exception.php' ; throw new Exception ( 'Invalid argument: $resource must be null, a string, ' . ' or an instance of Acl' ) ; } return $ this ; }
Sets ACL resource assoicated with this page

@param  string|Acl $resource  [optional] resource
to associate with
page. Default is
null, which sets no
resource.
@throws Exception                     if $resource if
invalid
@return Page                          fluent interface,
returns self
Sets ACL resource assoicated with this page