|
| __construct ($pages=null) |
| Creates a new navigation container.
|
|
| notifyOrderUpdated () |
| Notifies container that the order of pages are updated.
|
|
| addPage ($page) |
| Adds a page to the container.
|
|
| addPages ($pages) |
| Adds several pages at once.
|
|
| setPages (array $pages) |
| Sets pages this container should have, removing existing pages.
|
|
| getPages () |
| Returns pages in the container.
|
|
| removePage ($page) |
| Removes the given page from the container.
|
|
| removePages () |
| Removes all pages in container.
|
|
| hasPage (Zend_Navigation_Page $page, $recursive=false) |
| Checks if the container has the given page.
|
|
| hasPages () |
| Returns true if container contains any pages.
|
|
| findOneBy ($property, $value, $useRegex=false) |
| Returns a child page matching $property == $value or preg_match($value, $property), or null if not found.
|
|
| findAllBy ($property, $value, $useRegex=false) |
| Returns all child pages matching $property == $value or preg_match($value, $property), or an empty array if no pages are found.
|
|
| findBy ($property, $value, $all=false, $useRegex=false) |
| Returns page(s) matching $property == $value or preg_match($value, $property)
|
|
| __call ($method, $arguments) |
| Magic overload: Proxy calls to finder methods.
|
|
| toArray () |
| Returns an array representation of all pages in container.
|
|
| current () |
| Returns current page.
|
|
| key () |
| Returns hash code of current page.
|
|
| next () |
| Moves index pointer to next page in the container.
|
|
| rewind () |
| Sets index pointer to first page in the container.
|
|
| valid () |
| Checks if container index is valid.
|
|
| hasChildren () |
| Proxy to hasPages()
|
|
| getChildren () |
| Returns the child container.
|
|
| count () |
| Returns number of pages in container.
|
|