TYPO3 CMS  TYPO3_7-6
ActionViewHelper.php
Go to the documentation of this file.
1 <?php
3 
4 /* *
5  * This script is part of the TYPO3 project - inspiring people to share! *
6  * *
7  * TYPO3 is free software; you can redistribute it and/or modify it under *
8  * the terms of the GNU General Public License version 2 as published by *
9  * the Free Software Foundation. *
10  * *
11  * This script is distributed in the hope that it will be useful, but *
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
13  * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
14  * Public License for more details. *
15  * */
30 {
51  public function render($action = null, array $arguments = [], $controller = null, $extensionName = null, $pluginName = null, $pageUid = null, $pageType = 0, $noCache = false, $noCacheHash = false, $section = '', $format = '', $linkAccessRestrictedPages = false, array $additionalParams = [], $absolute = false, $addQueryString = false, array $argumentsToBeExcludedFromQueryString = [], $addQueryStringMethod = null)
52  {
53  $uriBuilder = $this->controllerContext->getUriBuilder();
54  $uri = $uriBuilder
55  ->reset()
56  ->setTargetPageUid($pageUid)
57  ->setTargetPageType($pageType)
58  ->setNoCache($noCache)
59  ->setUseCacheHash(!$noCacheHash)
60  ->setSection($section)
61  ->setFormat($format)
62  ->setLinkAccessRestrictedPages($linkAccessRestrictedPages)
63  ->setArguments($additionalParams)
64  ->setCreateAbsoluteUri($absolute)
65  ->setAddQueryString($addQueryString)
66  ->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString)
67  ->setAddQueryStringMethod($addQueryStringMethod)
68  ->uriFor($action, $arguments, $controller, $extensionName, $pluginName);
69  return $uri;
70  }
71 }
render($action=null, array $arguments=[], $controller=null, $extensionName=null, $pluginName=null, $pageUid=null, $pageType=0, $noCache=false, $noCacheHash=false, $section='', $format='', $linkAccessRestrictedPages=false, array $additionalParams=[], $absolute=false, $addQueryString=false, array $argumentsToBeExcludedFromQueryString=[], $addQueryStringMethod=null)