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.
Base class for Zend_Navigation_Page pages
bool $_active = 'false'Whether this page should be considered active
Detailsstring|null $_class = ''Style class for this page (CSS)
Detailsstring|null $_id = ''Page id
Detailsstring|null $_label = ''Page label
Detailsint|null $_order = ''Page order used by parent container
DetailsZend_Navigation_Container|null $_parent = ''Parent container
Detailsstring|null $_privilege = ''ACL privilege associated with this page
Detailsarray $_properties = 'array'Custom page properties, used by __set(), __get() and __isset()
Detailsarray $_rel = 'array'Forward links to other pages
Detailsstring|Zend_Acl_Resource_Interface|null $_resource = ''ACL resource associated with this page
Detailsarray $_rev = 'array'Reverse links to other pages
Detailsstring|null $_target = ''This page's target
Detailsstring|null $_title = ''A more descriptive title for this page
Detailsbool $_visible = 'true'Whether this page should be considered visible
Details__construct(
array|Zend_Config $options
=
null
)
:
Page constructor
Details__get(
string $name
)
:
mixedReturns a property, or null if it doesn't exist
Magic overload for enabling $page->propname.
Details__isset(
string $name
)
:
boolChecks if a property is set
Magic overload for enabling isset($page->propname).
Returns true if the property is native (id, class, title, etc), and true or false if it's a custom property (depending on whether the property actually is set).
Details__set(
string $name, mixed $value
)
:
voidSets a custom property
Magic overload for enabling $page->propname = $value.
Details__toString(
)
:
stringReturns page label
Magic overload for enabling echo $page.
Details__unset(
string $name
)
:
voidUnsets the given custom property
Magic overload for enabling unset($page->propname).
Details_init(
)
:
voidInitializes page (used by subclasses)
Details_normalizePropertyName(
string $property
)
:
stringNormalizes a property name
DetailsaddRel(
string $relation, mixed $value
)
:
Zend_Navigation_PageAdds a forward relation to the page
DetailsaddRev(
string $relation, mixed $value
)
:
Zend_Navigation_PageAdds a reverse relation to the page
Detailsfactory(
array|Zend_Config $options
)
:
Zend_Navigation_PageFactory for Zend_Navigation_Page classes
A specific type to construct can be specified by specifying the key 'type' in $options. If type is 'uri' or 'mvc', the type will be resolved to Zend_Navigation_Page_Uri or Zend_Navigation_Page_Mvc. Any other value for 'type' will be considered the full name of the class to construct. A valid custom page class must extend Zend_Navigation_Page.
If 'type' is not given, the type of page to construct will be determined by the following rules: - If $options contains either of the keys 'action', 'controller', 'module', or 'route', a Zend_Navigation_Page_Mvc page will be created. - If $options contains the key 'uri', a Zend_Navigation_Page_Uri page will be created.
Detailsget(
string $property
)
:
mixedReturns the value of the given property
If the given property is native (id, class, title, etc), the matching get method will be used. Otherwise, it will return the matching custom property, or null if not found.
DetailsgetActive(
bool $recursive
=
false
)
:
boolProxy to isActive()
DetailsgetClass(
)
:
string|nullReturns page class (CSS)
DetailsgetCustomProperties(
)
:
arrayReturns custom properties as an array
DetailsgetDefinedRel(
)
:
arrayReturns an array containing the defined forward relations
DetailsgetDefinedRev(
)
:
arrayReturns an array containing the defined reverse relations
DetailsgetHref(
)
:
stringReturns href for this page
DetailsgetId(
)
:
string|nullReturns page id
DetailsgetLabel(
)
:
stringReturns page label
DetailsgetOrder(
)
:
int|nullReturns page order used in parent container
DetailsgetParent(
)
:
Zend_Navigation_Container|nullReturns parent container
DetailsgetPrivilege(
)
:
string|nullReturns ACL privilege associated with this page
DetailsgetRel(
string $relation
=
null
)
:
arrayReturns the page's forward links to other pages
This method returns an associative array of forward links to other pages, where each element's key is the name of the relation (e.g. alternate, prev, next, help, etc), and the value is a mixed value that could somehow be considered a page.
DetailsgetResource(
)
:
string|Zend_Acl_Resource_Interface|nullReturns ACL resource assoicated with this page
DetailsgetRev(
string $relation
=
null
)
:
arrayReturns the page's reverse links to other pages
This method returns an associative array of forward links to other pages, where each element's key is the name of the relation (e.g. alternate, prev, next, help, etc), and the value is a mixed value that could somehow be considered a page.
DetailsgetTarget(
)
:
string|nullReturns page target
DetailsgetTitle(
)
:
string|nullReturns page title
DetailsgetVisible(
bool $recursive
=
false
)
:
boolProxy to isVisible()
Returns a boolean value indicating whether the page is visible
DetailshashCode(
)
:
stringReturns a hash code value for the page
DetailsisActive(
bool $recursive
=
false
)
:
boolReturns whether page should be considered active or not
DetailsisVisible(
bool $recursive
=
false
)
:
boolReturns a boolean value indicating whether the page is visible
DetailsremoveRel(
string $relation
)
:
Zend_Navigation_PageRemoves a forward relation from the page
DetailsremoveRev(
string $relation
)
:
Zend_Navigation_PageRemoves a reverse relation from the page
Detailsset(
string $property, mixed $value
)
:
Zend_Navigation_PageSets the given property
If the given property is native (id, class, title, etc), the matching set method will be used. Otherwise, it will be set as a custom property.
DetailssetActive(
bool $active
=
true
)
:
Zend_Navigation_PageSets whether page should be considered active or not
DetailssetClass(
string|null $class
=
null
)
:
Zend_Navigation_PageSets page CSS class
DetailssetConfig(
Zend_Config $config
)
:
Zend_Navigation_PageSets page properties using a Zend_Config object
DetailssetId(
string|null $id
=
null
)
:
Zend_Navigation_PageSets page id
DetailssetLabel(
string $label
)
:
Zend_Navigation_PageSets page label
DetailssetOptions(
array $options
)
:
Zend_Navigation_PageSets page properties using options from an associative array
Each key in the array corresponds to the according set*() method, and each word is separated by underscores, e.g. the option 'target' corresponds to setTarget(), and the option 'reset_params' corresponds to the method setResetParams().
DetailssetOrder(
int $order
=
null
)
:
Zend_Navigation_PageSets page order to use in parent container
DetailssetParent(
Zend_Navigation_Container $parent
=
null
)
:
Zend_Navigation_PageSets parent container
DetailssetPrivilege(
string|null $privilege
=
null
)
:
Zend_Navigation_PageSets ACL privilege associated with this page
DetailssetRel(
array|Zend_Config $relations
=
null
)
:
Zend_Navigation_PageSets the page's forward links to other pages
This method expects an associative array of forward links to other pages, where each element's key is the name of the relation (e.g. alternate, prev, next, help, etc), and the value is a mixed value that could somehow be considered a page.
DetailssetResource(
string|Zend_Acl_Resource_Interface $resource
=
null
)
:
Zend_Navigation_PageSets ACL resource assoicated with this page
DetailssetRev(
array|Zend_Config $relations
=
null
)
:
Zend_Navigation_PageSets the page's reverse links to other pages
This method expects an associative array of reverse links to other pages, where each element's key is the name of the relation (e.g. alternate, prev, next, help, etc), and the value is a mixed value that could somehow be considered a page.
DetailssetTarget(
string|null $target
=
null
)
:
Zend_Navigation_PageSets page target
DetailssetTitle(
string $title
=
null
)
:
Zend_Navigation_PageSets page title
DetailssetVisible(
bool $visible
=
true
)
:
Zend_Navigation_PageSets whether the page should be visible or not
DetailstoArray(
)
:
arrayReturns an array representation of the page
Details