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