Feature #51100 » ActionViewHelper.patch

Patrick Kroog, 2013-08-16 12:06

View differences:

ActionViewHelper.php 2013-08-16 12:00:11.000000000 +0200
62 62
	 * @param boolean $linkAccessRestrictedPages If set, links pointing to access restricted pages will still link to the page even though the page cannot be accessed.
63 63
	 * @param array $additionalParams additional query parameters that won't be prefixed like $arguments (overrule $arguments)
64 64
	 * @param boolean $absolute If set, the URI of the rendered link is absolute
65
	 * @param string $absoluteUriScheme scheme the href attribute will be prefixed with if absolute is set
65 66
	 * @param boolean $addQueryString If set, the current query parameters will be kept in the URI
66 67
	 * @param array $argumentsToBeExcludedFromQueryString arguments to be removed from the URI. Only active if $addQueryString = TRUE
67 68
	 * @return string Rendered link
68 69
	 */
69
	public function render($action = NULL, array $arguments = array(), $controller = NULL, $extensionName = NULL, $pluginName = NULL, $pageUid = NULL, $pageType = 0, $noCache = FALSE, $noCacheHash = FALSE, $section = '', $format = '', $linkAccessRestrictedPages = FALSE, array $additionalParams = array(), $absolute = FALSE, $addQueryString = FALSE, array $argumentsToBeExcludedFromQueryString = array()) {
70
	public function render($action = NULL, array $arguments = array(), $controller = NULL, $extensionName = NULL, $pluginName = NULL, $pageUid = NULL, $pageType = 0, $noCache = FALSE, $noCacheHash = FALSE, $section = '', $format = '', $linkAccessRestrictedPages = FALSE, array $additionalParams = array(), $absolute = FALSE, $absoluteUriScheme = NULL, $addQueryString = FALSE, array $argumentsToBeExcludedFromQueryString = array()) {
70 71
		$uriBuilder = $this->controllerContext->getUriBuilder();
71 72
		$uri = $uriBuilder
72 73
			->reset()
......
79 80
			->setLinkAccessRestrictedPages($linkAccessRestrictedPages)
80 81
			->setArguments($additionalParams)
81 82
			->setCreateAbsoluteUri($absolute)
83
			->setAbsoluteUriScheme($absoluteUriScheme)
82 84
			->setAddQueryString($addQueryString)
83 85
			->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString)
84 86
			->uriFor($action, $arguments, $controller, $extensionName, $pluginName);
(3-3/4)