Feature #51100 » PageViewHelper.patch

Patrick Kroog, 2013-08-16 12:04

View differences:

PageViewHelper.php 2013-08-16 12:01:56.000000000 +0200
54 54
	 * @param string $section the anchor to be added to the URI
55 55
	 * @param boolean $linkAccessRestrictedPages If set, links pointing to access restricted pages will still link to the page even though the page cannot be accessed.
56 56
	 * @param boolean $absolute If set, the URI of the rendered link is absolute
57
	 * @param string $absoluteUriScheme scheme the href attribute will be prefixed with if absolute is set
57 58
	 * @param boolean $addQueryString If set, the current query parameters will be kept in the URI
58 59
	 * @param array $argumentsToBeExcludedFromQueryString arguments to be removed from the URI. Only active if $addQueryString = TRUE
59 60
	 * @return string Rendered page URI
60 61
	 */
61
	public function render($pageUid = NULL, array $additionalParams = array(), $pageType = 0, $noCache = FALSE, $noCacheHash = FALSE, $section = '', $linkAccessRestrictedPages = FALSE, $absolute = FALSE, $addQueryString = FALSE, array $argumentsToBeExcludedFromQueryString = array()) {
62
	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()) {
62 63
		$uriBuilder = $this->controllerContext->getUriBuilder();
63 64
		$uri = $uriBuilder
64 65
			->setTargetPageUid($pageUid)
......
69 70
			->setLinkAccessRestrictedPages($linkAccessRestrictedPages)
70 71
			->setArguments($additionalParams)
71 72
			->setCreateAbsoluteUri($absolute)
73
			->setAbsoluteUriScheme($absoluteUriScheme)
72 74
			->setAddQueryString($addQueryString)
73 75
			->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString)
74 76
			->build();
(2-2/4)