URL
class URL
Constants
PATH_TO_FILE |
|
WITH_INDEX_PAGE |
|
Methods
No description
No description
Return this class instance, only once instanciated.
Return the base URL, either the baseurl defined in Config, or the URL of the current language, if 'onedomainforeachlang' is enabled.
No description
Returns the Absolute URL for a given path relative to web root. By default, the script name (indexdev.php) is added to the URL in devenvironment, use $path_only = true to get a path without the index script.
Returns the Absolute URL to a administration view
Returns the Absolute URL to a view
Retrieve a rewritten URL from a view, a view id and a locale
Retrieve a rewritten URL from the current GET parameters
Retrieve a rewritten URL from the current GET parameters or use toString method
No description
Details
at line 43
__construct(
ContainerInterface $container = null)
at line 62
setRequestContext(
RequestContext $requestContext)
at line 73
static
URL
getInstance()
Return this class instance, only once instanciated.
at line 89
string
getBaseUrl(
bool $scheme_only = false)
Return the base URL, either the baseurl defined in Config, or the URL of the current language, if 'onedomainforeachlang' is enabled.
at line 116
string
getIndexPage()
at line 133
string
absoluteUrl(
string $path,
array $parameters = null,
boolean $path_only = self::WITH_INDEX_PAGE)
Returns the Absolute URL for a given path relative to web root. By default, the script name (indexdev.php) is added to the URL in devenvironment, use $path_only = true to get a path without the index script.
at line 209
string
adminViewUrl(
string $viewName,
array $parameters = array())
Returns the Absolute URL to a administration view
at line 224
string
viewUrl(
string $viewName,
array $parameters = array())
Returns the Absolute URL to a view
at line 240
RewritingRetriever
retrieve($view, $viewId, $viewLocale)
Retrieve a rewritten URL from a view, a view id and a locale
at line 264
RewritingRetriever
retrieveCurrent(
Request $request)
Retrieve a rewritten URL from the current GET parameters
at line 306
RewritingResolver
resolve($url)
Retrieve a rewritten URL from the current GET parameters or use toString method