Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Navigation_Container
Container class for Zend_Navigation_Page classes.
bool $_dirtyIndex = 'false'Whether index is dirty and needs to be re-arranged
Detailsarray $_index = 'array'An index that contains the order in which to iterate pages
Detailsarray $_pages = 'array'Contains sub pages
Details__call(
string $method, array $arguments
)
:
Magic overload: Proxy calls to finder methods
Examples of finder calls:
// METHOD // SAME AS
$nav->findByLabel('foo'); // $nav->findOneBy('label', 'foo');
$nav->findOneByLabel('foo'); // $nav->findOneBy('label', 'foo');
$nav->findAllByClass('foo'); // $nav->findAllBy('class', 'foo');
Details_sort(
)
:
voidSorts the page index according to page order
DetailsaddPage(
Zend_Navigation_Page|array|Zend_Config $page
)
:
Zend_Navigation_ContainerAdds a page to the container
This method will inject the container as the given page's parent by calling {@link Zend_Navigation_Page::setParent()}.
DetailsaddPages(
array|Zend_Config $pages
)
:
Zend_Navigation_ContainerAdds several pages at once
Detailscount(
)
:
intReturns number of pages in container
Implements Countable interface.
Detailscurrent(
)
:
Zend_Navigation_PageReturns current page
Implements RecursiveIterator interface.
DetailsfindAllBy(
string $property, mixed $value
)
:
arrayReturns all child pages matching $property == $value, or an empty array if no pages are found
DetailsfindBy(
string $property, mixed $value, bool $all
=
false
)
:
Zend_Navigation_Page|nullReturns page(s) matching $property == $value
DetailsfindOneBy(
string $property, mixed $value
)
:
Zend_Navigation_Page|nullReturns a child page matching $property == $value, or null if not found
DetailsgetChildren(
)
:
Zend_Navigation_Page|nullReturns the child container.
Implements RecursiveIterator interface.
DetailsgetPages(
)
:
arrayReturns pages in the container
DetailshasChildren(
)
:
boolProxy to hasPages()
Implements RecursiveIterator interface.
DetailshasPage(
Zend_Navigation_Page $page, bool $recursive
=
false
)
:
boolChecks if the container has the given page
DetailshasPages(
)
:
boolReturns true if container contains any pages
Detailskey(
)
:
stringReturns hash code of current page
Implements RecursiveIterator interface.
Detailsnext(
)
:
voidMoves index pointer to next page in the container
Implements RecursiveIterator interface.
DetailsnotifyOrderUpdated(
)
:
voidNotifies container that the order of pages are updated
DetailsremovePage(
Zend_Navigation_Page|int $page
)
:
boolRemoves the given page from the container
DetailsremovePages(
)
:
Zend_Navigation_ContainerRemoves all pages in container
Detailsrewind(
)
:
voidSets index pointer to first page in the container
Implements RecursiveIterator interface.
DetailssetPages(
array $pages
)
:
Zend_Navigation_ContainerSets pages this container should have, removing existing pages
DetailstoArray(
)
:
arrayReturns an array representation of all pages in container
Detailsvalid(
)
:
boolChecks if container index is valid
Implements RecursiveIterator interface.
Details