Feature #51100 » PageViewHelper.patch

Patrick Kroog, 2013-08-16 12:06

View differences:

PageViewHelper.php 2013-08-16 12:00:19.000000000 +0200
70 70
	 * @param string $section the anchor to be added to the URI
71 71
	 * @param boolean $linkAccessRestrictedPages If set, links pointing to access restricted pages will still link to the page even though the page cannot be accessed.
72 72
	 * @param boolean $absolute If set, the URI of the rendered link is absolute
73
	 * @param string $absoluteUriScheme scheme the href attribute will be prefixed with if absolute is set
73 74
	 * @param boolean $addQueryString If set, the current query parameters will be kept in the URI
74 75
	 * @param array $argumentsToBeExcludedFromQueryString arguments to be removed from the URI. Only active if $addQueryString = TRUE
75 76
	 * @return string Rendered page URI
76 77
	 */
77
	public function render($pageUid = NULL, array $additionalParams = array(), $pageType = 0, $noCache = FALSE, $noCacheHash = FALSE, $section = '', $linkAccessRestrictedPages = FALSE, $absolute = FALSE, $addQueryString = FALSE, array $argumentsToBeExcludedFromQueryString = array()) {
78
	public function render($pageUid = NULL, array $additionalParams = array(), $pageType = 0, $noCache = FALSE, $noCacheHash = FALSE, $section = '', $linkAccessRestrictedPages = FALSE, $absolute = FALSE, $absoluteUriScheme = NULL, $addQueryString = FALSE, array $argumentsToBeExcludedFromQueryString = array()) {
78 79
		$uriBuilder = $this->controllerContext->getUriBuilder();
79 80
		$uri = $uriBuilder
80 81
			->reset()
......
86 87
			->setLinkAccessRestrictedPages($linkAccessRestrictedPages)
87 88
			->setArguments($additionalParams)
88 89
			->setCreateAbsoluteUri($absolute)
90
			->setAbsoluteUriScheme($absoluteUriScheme)
89 91
			->setAddQueryString($addQueryString)
90 92
			->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString)
91 93
			->build();
(4-4/4)