Project

General

Profile

Feature #20578 ยป 0011281.diff

Administrator Admin, 2009-06-05 15:32

View differences:

typo3/sysext/extbase/Classes/MVC/View/Helper/URIHelper.php (working copy)
* @param boolean $useCacheHash by default TRUE; if FALSE, disable the cHash
* @param string $section If specified, adds a given HTML anchor to the URI (#...)
* @param boolean $linkAccessRestrictedPages If TRUE, generates links for pages where the user does not have permission to see it
* @param string $additionalParams An additional params query string which will be appended to the URI
* @param array $additionalParams An additional params query array which will be appended to the URI
* @return string the typolink URI
* @internal
*/
public function URIFor($pageUid = NULL, $actionName = NULL, $arguments = array(), $controllerName = NULL, $extensionName = NULL, $pluginName = NULL, $pageType = 0, $noCache = FALSE, $useCacheHash = TRUE, $section = '', $linkAccessRestrictedPages = FALSE, $additionalParams = '') {
public function URIFor($pageUid = NULL, $actionName = NULL, $arguments = array(), $controllerName = NULL, $extensionName = NULL, $pluginName = NULL, $pageType = 0, $noCache = FALSE, $useCacheHash = TRUE, $section = '', $linkAccessRestrictedPages = FALSE, array $additionalParams = array()) {
if (is_array($arguments)) {
foreach ($arguments as $argumentKey => $argumentValue) {
if ($argumentValue instanceof Tx_Extbase_DomainObject_AbstractEntity) {
......
* @param boolean $useCacheHash by default TRUE; if FALSE, disable the cHash
* @param string $section If specified, adds a given HTML anchor to the URI (#...)
* @param boolean $linkAccessRestrictedPages If TRUE, generates links for pages where the user does not have permission to see it
* @param string $additionalParams An additional params query string which will be appended to the URI
* @param array $additionalParams An additional params array which will be appended to the URI
* @return The URI
* @internal
*/
public function typolinkURI($pageUid = NULL, array $arguments = array(), $pageType = 0, $noCache = FALSE, $useCacheHash = TRUE, $section = '', $linkAccessRestrictedPages = FALSE, $additionalParams = '') {
public function typolinkURI($pageUid = NULL, array $arguments = array(), $pageType = 0, $noCache = FALSE, $useCacheHash = TRUE, $section = '', $linkAccessRestrictedPages = FALSE, array $additionalParams = array()) {
if ($pageUid === NULL) {
$pageUid = $GLOBALS['TSFE']->id;
}
......
$typolinkConfiguration['linkAccessRestrictedPages'] = $linkAccessRestrictedPages;
}
if (isset($options['additionalParams'])) {
// TODO: Stdwrap
// TODO FIX THIS: $typolinkConfiguration['additionalParams'] .= $this->contentObject->stdWrap($options['additionalParams'], isset($options['additionalParams.']) ? $options['additionalParams.'] : array());
$typolinkConfiguration['additionalParams'] .= $additionalParams;
if (count($additionalParams) > 0) {
$typolinkConfiguration['additionalParams'] .= '&' . http_build_query($additionalParams, NULL, '&');
}
return $this->contentObject->typoLink_URL($typolinkConfiguration);
    (1-1/1)