Feature #51100 » ActionViewHelper.patch

Patrick Kroog, 2013-08-16 12:04

View differences:

ActionViewHelper.php 2013-08-16 11:47:26.000000000 +0200
45 45
	 * @param boolean $linkAccessRestrictedPages If set, links pointing to access restricted pages will still link to the page even though the page cannot be accessed.
46 46
	 * @param array $additionalParams additional query parameters that won't be prefixed like $arguments (overrule $arguments)
47 47
	 * @param boolean $absolute If set, an absolute URI is rendered
48
	 * @param string $absoluteUriScheme scheme the href attribute will be prefixed with if absolute is set
48 49
	 * @param boolean $addQueryString If set, the current query parameters will be kept in the URI
49 50
	 * @param array $argumentsToBeExcludedFromQueryString arguments to be removed from the URI. Only active if $addQueryString = TRUE
50 51
	 * @return string Rendered link
51 52
	 */
52
	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()) {
53
	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()) {
53 54
		$uriBuilder = $this->controllerContext->getUriBuilder();
54 55
		$uri = $uriBuilder
55 56
			->reset()
......
62 63
			->setLinkAccessRestrictedPages($linkAccessRestrictedPages)
63 64
			->setArguments($additionalParams)
64 65
			->setCreateAbsoluteUri($absolute)
66
			->setAbsoluteUriScheme($absoluteUriScheme)
65 67
			->setAddQueryString($addQueryString)
66 68
			->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString)
67 69
			->uriFor($action, $arguments, $controller, $extensionName, $pluginName);
(1-1/4)