Zend_Navigation-Pages-URI.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect2 id="zend.navigation.pages.uri">
  4. <title>Zend_Navigation_Page_Uri</title>
  5. <para>
  6. Pages of type <classname>Zend_Navigation_Page_Uri</classname> can be
  7. used to link to pages on other domains or sites, or to implement
  8. custom logic for the page. URI pages are simple; in addition
  9. to the common page options, a URI page takes only one option —
  10. <code>uri</code>. The <code>uri</code> will be returned when
  11. calling <code>$page->getHref()</code>, and may be a
  12. <type>String</type> or <constant>NULL</constant>.
  13. </para>
  14. <note>
  15. <para>
  16. <classname>Zend_Navigation_Page_Uri</classname> will not try to determine
  17. whether it should be active when calling <code>$page->isActive()</code>.
  18. It merely returns what currently is set, so to make a URI page active
  19. you have to manually call <code>$page->setActive()</code> or
  20. specifying <code>active</code> as a page option when constucting.
  21. </para>
  22. </note>
  23. <table id="zend.navigation.pages.uri.options">
  24. <title>URI page options</title>
  25. <tgroup cols="4">
  26. <thead>
  27. <row>
  28. <entry>Key</entry>
  29. <entry>Type</entry>
  30. <entry>Default</entry>
  31. <entry>Description</entry>
  32. </row>
  33. </thead>
  34. <tbody>
  35. <row>
  36. <entry><code>uri</code></entry>
  37. <entry><type>String</type></entry>
  38. <entry><constant>NULL</constant></entry>
  39. <entry>
  40. URI to page. This can be any string or null.
  41. </entry>
  42. </row>
  43. </tbody>
  44. </tgroup>
  45. </table>
  46. </sect2>