Property | Type | Description | |
---|---|---|---|
$addQueryString | boolean | ||
$arguments | array | ||
$argumentsToBeExcludedFromQueryString | array | ||
$createAbsoluteUri | boolean | ||
$createRelativePaths | boolean | ||
$environment | |||
$format | string | ||
$lastArguments | array | Arguments which have been used for building the last URI | |
$request | |||
$router | Neos\Flow\Mvc\Routing\RouterInterface | ||
$section | string |
Method | Description | |
---|---|---|
build ( array $arguments = [] ) : string | Builds the URI | |
getAddQueryString ( ) : boolean | ||
getArguments ( ) : array | ||
getArgumentsToBeExcludedFromQueryString ( ) : array | ||
getCreateAbsoluteUri ( ) : boolean | ||
getCreateRelativePaths ( ) : boolean | ||
getFormat ( ) : string | ||
getLastArguments ( ) : array | Returns the arguments being used for the last URI being built. | |
getRequest ( ) : |
Gets the current request | |
getSection ( ) : string | ||
reset ( ) : |
Resets all UriBuilder options to their default value. | |
setAddQueryString ( boolean $addQueryString ) : |
If set, the current query parameters will be merged with $this->arguments. Defaults to FALSE. | |
setArguments ( array $arguments ) : |
Additional query parameters. | |
setArgumentsToBeExcludedFromQueryString ( array $argumentsToBeExcludedFromQueryString ) : |
A list of arguments to be excluded from the query parameters Only active if addQueryString is set | |
setCreateAbsoluteUri ( boolean $createAbsoluteUri ) : |
If set, the URI is prepended with the current base URI. Defaults to FALSE. | |
setCreateRelativePaths ( boolean $createRelativePaths ) : |
By default relative URIs are prefixed with the current script request path creating absolute paths starting with a slash If this is set to FALSE, relative paths are created as it used to be the default behavior before Flow 2.0. | |
setFormat ( string $format ) : |
Specifies the format of the target (e.g. "html" or "xml") | |
setRequest ( |
Sets the current request and resets the UriBuilder | |
setSection ( string $section ) : |
If specified, adds a given HTML anchor to the URI (#. | |
uriFor ( string $actionName, array $controllerArguments = [], string $controllerName = null, string $packageKey = null, string $subPackageKey = null ) : string | Creates an URI used for linking to an Controller action. |
Method | Description | |
---|---|---|
addNamespaceToArguments ( array $arguments, Neos\Flow\Mvc\RequestInterface $currentRequest ) : array | Adds the argument namespace of the current request to the specified arguments. | |
getRequestNamespacePath ( |
Get the path of the argument namespaces of all parent requests. | |
mergeArgumentsWithRequestArguments ( array $arguments ) : array | Merges specified arguments with arguments from request. |
protected addNamespaceToArguments ( array $arguments, Neos\Flow\Mvc\RequestInterface $currentRequest ) : array | ||
$arguments | array | arguments |
$currentRequest | Neos\Flow\Mvc\RequestInterface | |
return | array | arguments with namespace |
public getArgumentsToBeExcludedFromQueryString ( ) : array | ||
return | array |
public getLastArguments ( ) : array | ||
return | array | The last arguments |
public getRequest ( ) : |
||
return |
protected getRequestNamespacePath ( |
||
$request | ||
return | string |
protected mergeArgumentsWithRequestArguments ( array $arguments ) : array | ||
$arguments | array | |
return | array |
public reset ( ) : |
||
return | the current UriBuilder to allow method chaining |
public setAddQueryString ( boolean $addQueryString ) : |
||
$addQueryString | boolean | |
return | the current UriBuilder to allow method chaining |
public setArguments ( array $arguments ) : |
||
$arguments | array | |
return | the current UriBuilder to allow method chaining |
public setArgumentsToBeExcludedFromQueryString ( array $argumentsToBeExcludedFromQueryString ) : |
||
$argumentsToBeExcludedFromQueryString | array | |
return | the current UriBuilder to allow method chaining |
public setCreateAbsoluteUri ( boolean $createAbsoluteUri ) : |
||
$createAbsoluteUri | boolean | |
return | the current UriBuilder to allow method chaining |
public setCreateRelativePaths ( boolean $createRelativePaths ) : |
||
$createRelativePaths | boolean | |
return | the current UriBuilder to allow method chaining |
public setRequest ( |
||
$request | ||
return | void |
public setSection ( string $section ) : |
||
$section | string | |
return | the current UriBuilder to allow method chaining |
public uriFor ( string $actionName, array $controllerArguments = [], string $controllerName = null, string $packageKey = null, string $subPackageKey = null ) : string | ||
$actionName | string | Name of the action to be called |
$controllerArguments | array | Additional query parameters. Will be merged with $this->arguments. |
$controllerName | string | Name of the target controller. If not set, current ControllerName is used. |
$packageKey | string | Name of the target package. If not set, current Package is used. |
$subPackageKey | string | Name of the target SubPackage. If not set, current SubPackage is used. |
return | string | the rendered URI |
protected array $argumentsToBeExcludedFromQueryString | ||
return | array |
protected Environment,Neos\Flow\Utility $environment | ||
return |
protected array $lastArguments | ||
return | array |
protected ActionRequest,Neos\Flow\Mvc $request | ||
return |
protected RouterInterface,Neos\Flow\Mvc\Routing $router | ||
return | Neos\Flow\Mvc\Routing\RouterInterface |