View/Helper/Navigation/Helper.php

Show: PublicProtectedPrivateinherited
    Table of Contents
    Zend Framework
    LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
    Category
    Zend  
    Copyright
    Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
    License
    New BSD License  
    Package
    Zend_View  
    Subpackage
    Helper  
    Version
    $Id$  

    \Zend_View_Helper_Navigation_Helper

    Package: Zend_View\Helper
    Interface for navigational helpers
    Category
    Zend  
    Copyright
    Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
    License
    New BSD License  

    Methods

    methodpublic__toString() : string

    Magic overload: Should proxy to {@link render()}.

    Returns
    TypeDescription
    string
    methodpublicgetAcl() : \Zend_Acl | null

    Returns ACL or null if it isn't set using {@link setAcl()} or {@link setDefaultAcl()}

    Returns
    TypeDescription
    \Zend_Acl | nullACL object or null
    methodpublicgetContainer() : \Zend_Navigation_Container

    Returns the navigation container the helper operates on by default

    Returns
    TypeDescription
    \Zend_Navigation_Containernavigation container
    methodpublicgetRenderInvisible() : bool

    Return renderInvisible flag

    Returns
    TypeDescription
    bool
    methodpublicgetRole() : string | \Zend_Acl_Role_Interface | null

    Returns ACL role to use when iterating pages, or null if it isn't set

    Returns
    TypeDescription
    string | \Zend_Acl_Role_Interface | nullrole or null
    methodpublicgetTranslator() : \Zend_Translate_Adapter | null

    Returns translator used in helper

    Returns
    TypeDescription
    \Zend_Translate_Adapter | nulltranslator or null
    methodpublicgetUseAcl() : bool

    Returns whether ACL should be used

    Returns
    TypeDescription
    boolwhether ACL should be used
    methodpublicgetUseTranslator() : bool

    Returns whether translator should be used

    Returns
    TypeDescription
    boolwhether translator should be used
    methodpublichasAcl() : bool

    Checks if the helper has an ACL instance

    Returns
    TypeDescription
    boolwhether the helper has a an ACL instance or not
    methodpublichasContainer() : bool

    Checks if the helper has a container

    Returns
    TypeDescription
    boolwhether the helper has a container or not
    methodpublichasRole() : bool

    Checks if the helper has an ACL role

    Returns
    TypeDescription
    boolwhether the helper has a an ACL role or not
    methodpublichasTranslator() : bool

    Checks if the helper has a translator

    Returns
    TypeDescription
    boolwhether the helper has a translator or not
    methodpublicrender(\Zend_Navigation_Container $container = null) : string

    Renders helper

    Parameters
    NameTypeDescription
    $container\Zend_Navigation_Container

    [optional] container to

                                              render. Default is null,
                                              which indicates that the
                                              helper should render the
                                              container returned by
                                              {@link getContainer()}.
    Returns
    TypeDescription
    stringhelper output
    Throws
    ExceptionDescription
    \Zend_View_Exceptionif unable to render
    methodpublicsetAcl(\Zend_Acl $acl = null) : \Zend_View_Helper_Navigation_Helper

    Sets ACL to use when iterating pages

    Parameters
    NameTypeDescription
    $acl\Zend_Acl

    [optional] ACL instance

    Returns
    TypeDescription
    \Zend_View_Helper_Navigation_Helperfluent interface, returns self
    methodpublicsetContainer(\Zend_Navigation_Container $container = null) : \Zend_View_Helper_Navigation_Helper

    Sets navigation container the helper should operate on by default

    Parameters
    NameTypeDescription
    $container\Zend_Navigation_Container

    [optional] container to

                                              operate on. Default is
                                              null, which indicates that
                                              the container should be
                                              reset.
    Returns
    TypeDescription
    \Zend_View_Helper_Navigation_Helperfluent interface, returns self
    methodpublicsetRenderInvisible(bool $renderInvisible = true) : \Zend_View_Helper_Navigation_HelperAbstract

    Render invisible items?

    Parameters
    NameTypeDescription
    $renderInvisiblebool

    [optional] boolean flag

    Returns
    TypeDescription
    \Zend_View_Helper_Navigation_HelperAbstractfluent interface returns self
    methodpublicsetRole(mixed $role = null) : \Zend_View_Helper_Navigation_Helper

    Sets ACL role to use when iterating pages

    Parameters
    NameTypeDescription
    $rolemixed

    [optional] role to set.

                                            Expects a string, an
                                            instance of type
                                            {@link Zend_Acl_Role_Interface},
                                            or null. Default is null.
    Returns
    TypeDescription
    \Zend_View_Helper_Navigation_Helperfluent interface, returns self
    Throws
    ExceptionDescription
    \Zend_View_Exceptionif $role is invalid
    methodpublicsetTranslator(mixed $translator = null) : \Zend_View_Helper_Navigation_Helper

    Sets translator to use in helper

    Parameters
    NameTypeDescription
    $translatormixed

    [optional] translator.

                                            Expects an object of type
                                            {@link Zend_Translate_Adapter}
                                            or {@link Zend_Translate},
                                            or null. Default is null.
    Returns
    TypeDescription
    \Zend_View_Helper_Navigation_Helperfluent interface, returns self
    methodpublicsetUseAcl(bool $useAcl = true) : \Zend_View_Helper_Navigation_Helper

    Sets whether ACL should be used

    Parameters
    NameTypeDescription
    $useAclbool

    [optional] whether ACL

                                            should be used. Default is
                                            true.
    Returns
    TypeDescription
    \Zend_View_Helper_Navigation_Helperfluent interface, returns self
    methodpublicsetUseTranslator(bool $useTranslator = true) : \Zend_View_Helper_Navigation_Helper

    Sets whether translator should be used

    Parameters
    NameTypeDescription
    $useTranslatorbool

    [optional] whether

                                            translator should be used.
                                            Default is true.
    Returns
    TypeDescription
    \Zend_View_Helper_Navigation_Helperfluent interface, returns self
    Documentation was generated by phpDocumentor 2.2.0 .