TYPO3
7.6
|
Protected Member Functions | |
removeDefaultControllerAndAction (array $controllerArguments, $extensionName, $pluginName) | |
buildTypolinkConfiguration () | |
convertDomainObjectsToIdentityArrays (array $arguments) | |
convertIteratorToArray (\Iterator $iterator) | |
Protected Attributes | |
$configurationManager | |
$extensionService | |
$contentObject | |
$request | |
$arguments = array() | |
$lastArguments = array() | |
$section = '' | |
$createAbsoluteUri = false | |
$absoluteUriScheme = null | |
$addQueryString = false | |
$addQueryStringMethod = null | |
$argumentsToBeExcludedFromQueryString = array() | |
$linkAccessRestrictedPages = false | |
$targetPageUid = null | |
$targetPageType = 0 | |
$noCache = false | |
$useCacheHash = true | |
$format = '' | |
$argumentPrefix = null | |
$environmentService | |
An URI Builder
Definition at line 27 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
build | ( | ) |
Builds the URI Depending on the current context this calls buildBackendUri() or buildFrontendUri()
Definition at line 623 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\buildBackendUri(), and UriBuilder\buildFrontendUri().
Referenced by UriBuilder\uriFor().
buildBackendUri | ( | ) |
Builds the URI, backend flavour The resulting URI is relative and starts with "index.php". The settings pageUid, pageType, noCache, useCacheHash & linkAccessRestrictedPages will be ignored in the backend.
Definition at line 640 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$arguments, UriBuilder\$section, GeneralUtility\_GET(), GeneralUtility\_GP(), GeneralUtility\_POST(), ArrayUtility\arrayDiffAssocRecursive(), UriBuilder\convertDomainObjectsToIdentityArrays(), GeneralUtility\explodeUrl2Array(), GeneralUtility\getIndpEnv(), GeneralUtility\makeInstance(), and ArrayUtility\mergeRecursiveWithOverrule().
Referenced by UriBuilder\build().
buildFrontendUri | ( | ) |
Builds the URI, frontend flavour
Definition at line 696 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$absoluteUriScheme, and UriBuilder\buildTypolinkConfiguration().
Referenced by UriBuilder\build().
|
protected |
Builds a TypoLink configuration array from the current settings
Definition at line 715 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$addQueryStringMethod, UriBuilder\$arguments, UriBuilder\$format, $GLOBALS, UriBuilder\$section, UriBuilder\$targetPageType, UriBuilder\convertDomainObjectsToIdentityArrays(), elseif, and GeneralUtility\implodeArrayForUrl().
Referenced by UriBuilder\buildFrontendUri().
|
protected |
Recursively iterates through the specified arguments and turns instances of type into an arrays containing the uid of the domain object.
array | $arguments | The arguments to be iterated |
\TYPO3\CMS\Extbase\Mvc\Exception\InvalidArgumentValueException |
Definition at line 763 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$arguments, UriBuilder\convertIteratorToArray(), UriBuilder\convertTransientObjectToArray(), and elseif.
Referenced by UriBuilder\buildBackendUri(), UriBuilder\buildTypolinkConfiguration(), and UriBuilder\convertTransientObjectToArray().
|
protected |
\Iterator | $iterator |
Definition at line 795 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\convertDomainObjectsToIdentityArrays(), and UriBuilder\convertTransientObjectToArray().
convertTransientObjectToArray | ( | \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject | $object | ) |
Converts a given object recursively into an array.
\TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject | $object |
Definition at line 812 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\convertDomainObjectsToIdentityArrays(), UriBuilder\convertIteratorToArray(), and elseif.
Referenced by UriBuilder\convertDomainObjectsToIdentityArrays().
getAbsoluteUriScheme | ( | ) |
Definition at line 280 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$absoluteUriScheme.
getAddQueryString | ( | ) |
Definition at line 315 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$addQueryString.
getAddQueryStringMethod | ( | ) |
Definition at line 339 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$addQueryStringMethod.
getArgumentPrefix | ( | ) |
Definition at line 384 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$argumentPrefix.
getArguments | ( | ) |
Definition at line 206 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$arguments.
getArgumentsToBeExcludedFromQueryString | ( | ) |
Definition at line 364 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$argumentsToBeExcludedFromQueryString.
getCreateAbsoluteUri | ( | ) |
Definition at line 272 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$createAbsoluteUri.
getFormat | ( | ) |
Definition at line 250 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$format.
getLastArguments | ( | ) |
Returns the arguments being used for the last URI being built. This is only set after build() / uriFor() has been called.
Definition at line 508 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$lastArguments.
getLinkAccessRestrictedPages | ( | ) |
Definition at line 406 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$linkAccessRestrictedPages.
getNoCache | ( | ) |
Definition at line 474 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$noCache.
getRequest | ( | ) |
Definition at line 182 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$request.
getSection | ( | ) |
Definition at line 228 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$section.
getTargetPageType | ( | ) |
Definition at line 451 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$targetPageType.
getTargetPageUid | ( | ) |
returns $this->targetPageUid.
Definition at line 430 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$targetPageUid.
getUseCacheHash | ( | ) |
Definition at line 497 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$useCacheHash.
initializeObject | ( | ) |
Life-cycle method that is called by the DI container as soon as this object is completely built
Definition at line 162 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
injectConfigurationManager | ( | \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface | $configurationManager | ) |
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface | $configurationManager |
Definition at line 136 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$configurationManager.
injectEnvironmentService | ( | \TYPO3\CMS\Extbase\Service\EnvironmentService | $environmentService | ) |
\TYPO3\CMS\Extbase\Service\EnvironmentService | $environmentService |
Definition at line 152 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$environmentService.
injectExtensionService | ( | \TYPO3\CMS\Extbase\Service\ExtensionService | $extensionService | ) |
\TYPO3\CMS\Extbase\Service\ExtensionService | $extensionService |
Definition at line 144 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$extensionService.
|
protected |
This removes controller and/or action arguments from given controllerArguments if they are equal to the default controller/action of the target plugin. Note: This is only active in FE mode and if feature "skipDefaultArguments" is enabled
array | $controllerArguments | the current controller arguments to be modified |
string | $extensionName | target extension name |
string | $pluginName | target plugin name |
Definition at line 599 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\uriFor().
reset | ( | ) |
Resets all UriBuilder options to their default value
Definition at line 519 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
setAbsoluteUriScheme | ( | $absoluteUriScheme | ) |
Sets the scheme that should be used for absolute URIs in FE mode
string | $absoluteUriScheme | the scheme to be used for absolute URIs |
Definition at line 291 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$absoluteUriScheme.
setAddQueryString | ( | $addQueryString | ) |
If set, the current query parameters will be merged with $this->arguments. Defaults to FALSE.
bool | $addQueryString |
Definition at line 305 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$addQueryString.
setAddQueryStringMethod | ( | $addQueryStringMethod | ) |
Sets the method to get the addQueryString parameters. Defaults undefined which results in using QUERY_STRING.
string | $addQueryStringMethod |
Definition at line 329 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$addQueryStringMethod.
setArgumentPrefix | ( | $argumentPrefix | ) |
Specifies the prefix to be used for all arguments.
string | $argumentPrefix |
Definition at line 375 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$argumentPrefix.
setArguments | ( | array | $arguments | ) |
Additional query parameters. If you want to "prefix" arguments, you can pass in multidimensional arrays: array('prefix1' => array('foo' => 'bar')) gets "&prefix1[foo]=bar"
array | $arguments |
Definition at line 196 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$arguments.
setArgumentsToBeExcludedFromQueryString | ( | array | $argumentsToBeExcludedFromQueryString | ) |
A list of arguments to be excluded from the query parameters Only active if addQueryString is set
array | $argumentsToBeExcludedFromQueryString |
Definition at line 354 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$argumentsToBeExcludedFromQueryString.
setCreateAbsoluteUri | ( | $createAbsoluteUri | ) |
If set, the URI is prepended with the current base URI. Defaults to FALSE.
bool | $createAbsoluteUri |
Definition at line 262 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$createAbsoluteUri.
setFormat | ( | $format | ) |
Specifies the format of the target (e.g. "html" or "xml")
string | $format |
Definition at line 240 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$format.
setLinkAccessRestrictedPages | ( | $linkAccessRestrictedPages | ) |
If set, URIs for pages without access permissions will be created
bool | $linkAccessRestrictedPages |
Definition at line 396 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$linkAccessRestrictedPages.
setNoCache | ( | $noCache | ) |
by default FALSE; if TRUE, &no_cache=1 will be appended to the URI This overrules the useCacheHash setting
bool | $noCache |
Definition at line 464 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$noCache.
setRequest | ( | Request | $request | ) |
Sets the current request
Request | $request |
Definition at line 173 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$request.
setSection | ( | $section | ) |
If specified, adds a given HTML anchor to the URI (#...)
string | $section |
Definition at line 218 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$section.
setTargetPageType | ( | $targetPageType | ) |
Sets the page type of the target URI. Defaults to 0
int | $targetPageType |
Definition at line 442 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$targetPageType.
setTargetPageUid | ( | $targetPageUid | ) |
Uid of the target page
int | $targetPageUid |
Definition at line 418 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$targetPageUid.
setUseCacheHash | ( | $useCacheHash | ) |
by default TRUE; if FALSE, no cHash parameter will be appended to the URI If noCache is set, this setting will be ignored.
bool | $useCacheHash |
Definition at line 487 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$useCacheHash.
uriFor | ( | $actionName = null , |
|
$controllerArguments = array() , |
|||
$controllerName = null , |
|||
$extensionName = null , |
|||
$pluginName = null |
|||
) |
Creates an URI used for linking to an Extbase action. Works in Frontend and Backend mode of TYPO3.
string | $actionName | Name of the action to be called |
array | $controllerArguments | Additional query parameters. Will be "namespaced" and merged with $this->arguments. |
string | $controllerName | Name of the target controller. If not set, current ControllerName is used. |
string | $extensionName | Name of the target extension, without underscores. If not set, current ExtensionName is used. |
string | $pluginName | Name of the target plugin. If not set, current PluginName is used. |
Definition at line 550 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
References UriBuilder\$format, UriBuilder\build(), ArrayUtility\mergeRecursiveWithOverrule(), and UriBuilder\removeDefaultControllerAndAction().
|
protected |
Definition at line 76 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\buildFrontendUri(), UriBuilder\getAbsoluteUriScheme(), and UriBuilder\setAbsoluteUriScheme().
|
protected |
Definition at line 81 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\getAddQueryString(), and UriBuilder\setAddQueryString().
|
protected |
Definition at line 86 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\buildTypolinkConfiguration(), UriBuilder\getAddQueryStringMethod(), and UriBuilder\setAddQueryStringMethod().
|
protected |
Definition at line 126 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\getArgumentPrefix(), and UriBuilder\setArgumentPrefix().
|
protected |
Definition at line 54 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\buildBackendUri(), UriBuilder\buildTypolinkConfiguration(), UriBuilder\convertDomainObjectsToIdentityArrays(), UriBuilder\getArguments(), and UriBuilder\setArguments().
|
protected |
Definition at line 91 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\getArgumentsToBeExcludedFromQueryString(), and UriBuilder\setArgumentsToBeExcludedFromQueryString().
|
protected |
Definition at line 32 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\injectConfigurationManager().
|
protected |
Definition at line 44 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
|
protected |
Definition at line 71 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\getCreateAbsoluteUri(), and UriBuilder\setCreateAbsoluteUri().
|
protected |
Definition at line 131 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\injectEnvironmentService().
|
protected |
Definition at line 37 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\injectExtensionService().
|
protected |
Definition at line 121 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\buildTypolinkConfiguration(), UriBuilder\getFormat(), UriBuilder\setFormat(), and UriBuilder\uriFor().
|
protected |
Definition at line 61 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\getLastArguments().
|
protected |
Definition at line 96 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\getLinkAccessRestrictedPages(), and UriBuilder\setLinkAccessRestrictedPages().
|
protected |
Definition at line 111 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\getNoCache(), and UriBuilder\setNoCache().
|
protected |
Definition at line 49 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\getRequest(), and UriBuilder\setRequest().
|
protected |
Definition at line 66 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\buildBackendUri(), UriBuilder\buildTypolinkConfiguration(), UriBuilder\getSection(), and UriBuilder\setSection().
|
protected |
Definition at line 106 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\buildTypolinkConfiguration(), UriBuilder\getTargetPageType(), and UriBuilder\setTargetPageType().
|
protected |
Definition at line 101 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\getTargetPageUid(), and UriBuilder\setTargetPageUid().
|
protected |
Definition at line 116 of file extbase/Classes/Mvc/Web/Routing/UriBuilder.php.
Referenced by UriBuilder\getUseCacheHash(), and UriBuilder\setUseCacheHash().