浏览代码

ZF-6854: Updated documentation to include the new RenderInvisible flag

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15839 44c647ce-9c0f-0410-b52a-842ac1e357ba
norm2782 16 年之前
父节点
当前提交
5f8f5395b1

+ 6 - 0
documentation/manual/en/module_specs/Zend_View-Helpers-Navigation.xml

@@ -135,6 +135,12 @@
             </listitem>
             <listitem>
                 <para>
+                    <code>{get|set}RenderInvisible()</code> gets/set whether to
+                    render items that have been marked as invisible or not.
+                </para>
+            </listitem>
+            <listitem>
+                <para>
                     <code>__call()</code> is used for proxying calls to the
                     container registered in the helper, which means you can
                     call methods on a helper as if it was a container. See <link

+ 2 - 1
library/Zend/View/Helper/Navigation/HelperAbstract.php

@@ -684,7 +684,8 @@ abstract class Zend_View_Helper_Navigation_HelperAbstract
      * Determines whether a page should be accepted when iterating
      *
      * Rules:
-     * - If a page is not visible, it is not accepted
+     * - If a page is not visible it is not accepted, unless RenderInvisible has
+     *   been set to true.
      * - If helper has no ACL, page is accepted
      * - If helper has ACL, but no role, page is not accepted
      * - If helper has ACL and role: