Zend_Navigation-Pages-URI.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <acronym>URI</acronym> pages are simple; in addition
  9. to the common page options, a <acronym>URI</acronym> 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 <acronym>URI</acronym> page active
  19. you have to manually call <code>$page->setActive()</code> or
  20. specifying <code>active</code> as a page option when constructing.
  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. <acronym>URI</acronym> to page. This can be any string or
  41. <constant>NULL</constant>.
  42. </entry>
  43. </row>
  44. </tbody>
  45. </tgroup>
  46. </table>
  47. </sect2>