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
string $_controller = ''
Controller name to use when assembling URL
string $_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.
string $_module = ''
Module name to use when assembling URL
array $_params = 'array'
Params to use when assembling URL
bool $_resetParams = 'true'
Whether params should be reset when assembling URL
string $_route = ''
Route name to use when assembling URL
Zend_Controller_Action_Helper_Url $_urlHelper = 'null'
Action helper for assembling URLs
getAction(
)
:
string|null
Returns action name to use when assembling URL
getController(
)
:
string|null
Returns controller name to use when assembling URL
getHref(
)
:
string
Returns href for this page
This method uses {@link Zend_Controller_Action_Helper_Url} to assemble the href based on the page's properties.
getModule(
)
:
string|null
Returns module name to use when assembling URL
getParams(
)
:
array
Returns params to use when assembling URL
getResetParams(
)
:
bool
Returns whether params should be reset when assembling URL
getRoute(
)
:
string
Returns route name to use when assembling URL
isActive(
bool $recursive
=
false
)
:
bool
Returns 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.
setAction(
string $action
)
:
Zend_Navigation_Page_Mvc
Sets action name to use when assembling URL
setController(
string|null $controller
)
:
Zend_Navigation_Page_Mvc
Sets controller name to use when assembling URL
setModule(
string|null $module
)
:
Zend_Navigation_Page_Mvc
Sets module name to use when assembling URL
setParams(
array|null $params
=
null
)
:
Zend_Navigation_Page_Mvc
Sets params to use when assembling URL
setResetParams(
bool $resetParams
)
:
Zend_Navigation_Page_Mvc
Sets whether params should be reset when assembling URL
setRoute(
string $route
)
:
Zend_Navigation_Page_Mvc
Sets route name to use when assembling URL
setUrlHelper(
Zend_Controller_Action_Helper_Url $uh
)
:
void
Sets action helper for assembling URLs
toArray(
)
:
array
Returns an array representation of the page