Project

General

Profile

Bug #61960 ยป 61960-widget-uri-nocachehash.patch

noCacheHash parameter for <f:widget.uri/> - Mathias Brodala, 2014-10-09 09:22

View differences:

typo3/sysext/fluid/Classes/ViewHelpers/Widget/UriViewHelper.php
* @param string $section The anchor to be added to the URI
* @param string $format The requested format, e.g. ".html
* @param boolean $ajax TRUE if the URI should be to an AJAX widget, FALSE otherwise.
* @param boolean $noCacheHash set this to supress the cHash query parameter created by TypoLink.
* @return string The rendered link
* @api
*/
public function render($action = NULL, $arguments = array(), $section = '', $format = '', $ajax = FALSE) {
public function render($action = NULL, $arguments = array(), $section = '', $format = '', $ajax = FALSE, $noCacheHash = FALSE) {
if ($ajax === TRUE) {
return $this->getAjaxUri();
} else {
......
if ($this->hasArgument('addQueryStringMethod') && $this->arguments['addQueryStringMethod'] !== '') {
$arguments['addQueryStringMethod'] = $this->arguments['addQueryStringMethod'];
}
return $uriBuilder->reset()->setArguments(array($argumentPrefix => $arguments))->setSection($this->arguments['section'])->setAddQueryString(TRUE)->setAddQueryStringMethod($this->arguments['addQueryStringMethod'])->setArgumentsToBeExcludedFromQueryString(array($argumentPrefix, 'cHash'))->setFormat($this->arguments['format'])->build();
return $uriBuilder
->reset()
->setArguments(array($argumentPrefix => $arguments))
->setSection($this->arguments['section'])
->setAddQueryString(TRUE)
->setAddQueryStringMethod($this->arguments['addQueryStringMethod'])
->setArgumentsToBeExcludedFromQueryString(array($argumentPrefix, 'cHash'))
->setFormat($this->arguments['format'])
->setUseCacheHash(!$this->arguments['noCacheHash'])
->build();
}
}
    (1-1/1)