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.
Represents a page that is defined using module, controller, action, route name and route params to assemble the href
string $_action = ''Action name to use when assembling URL
Detailsstring $_controller = ''Controller name to use when assembling URL
Detailsstring $_hrefCache = ''Cached href
The use of this variable minimizes execution time when getHref() is called more than once during the lifetime of a request. If a property is updated, the cache is invalidated.
Detailsstring $_module = ''Module name to use when assembling URL
Detailsarray $_params = 'array'Params to use when assembling URL
Detailsbool $_resetParams = 'true'Whether params should be reset when assembling URL
Detailsstring $_route = ''Route name to use when assembling URL
DetailsZend_Controller_Action_Helper_Url $_urlHelper = 'null'Action helper for assembling URLs
DetailsgetAction(
)
:
string|nullReturns action name to use when assembling URL
DetailsgetController(
)
:
string|nullReturns controller name to use when assembling URL
DetailsgetHref(
)
:
stringReturns href for this page
This method uses {@link Zend_Controller_Action_Helper_Url} to assemble the href based on the page's properties.
DetailsgetModule(
)
:
string|nullReturns module name to use when assembling URL
DetailsgetParams(
)
:
arrayReturns params to use when assembling URL
DetailsgetResetParams(
)
:
boolReturns whether params should be reset when assembling URL
DetailsgetRoute(
)
:
stringReturns route name to use when assembling URL
DetailsisActive(
bool $recursive
=
false
)
:
boolReturns whether page should be considered active or not
This method will compare the page properties against the request object that is found in the front controller.
DetailssetAction(
string $action
)
:
Zend_Navigation_Page_MvcSets action name to use when assembling URL
DetailssetController(
string|null $controller
)
:
Zend_Navigation_Page_MvcSets controller name to use when assembling URL
DetailssetModule(
string|null $module
)
:
Zend_Navigation_Page_MvcSets module name to use when assembling URL
DetailssetParams(
array|null $params
=
null
)
:
Zend_Navigation_Page_MvcSets params to use when assembling URL
DetailssetResetParams(
bool $resetParams
)
:
Zend_Navigation_Page_MvcSets whether params should be reset when assembling URL
DetailssetRoute(
string $route
)
:
Zend_Navigation_Page_MvcSets route name to use when assembling URL
DetailssetUrlHelper(
Zend_Controller_Action_Helper_Url $uh
)
:
voidSets action helper for assembling URLs
DetailstoArray(
)
:
arrayReturns an array representation of the page
Details