[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch




/vendor/symfony/routing/Generator/ -> UrlGenerator.php (summary)

(no description)

File Size: 326 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

UrlGenerator:: (8 methods):

Class: UrlGenerator  - X-Ref

UrlGenerator can generate a URL or a path for any route in the RouteCollection
based on the passed parameters.

__construct(RouteCollection $routes, RequestContext $context, LoggerInterface $logger = null)   X-Ref
No description

setContext(RequestContext $context)   X-Ref

getContext()   X-Ref

setStrictRequirements($enabled)   X-Ref

isStrictRequirements()   X-Ref

generate($name, $parameters = array()   X-Ref

doGenerate($variables, $defaults, $requirements, $tokens, $parameters, $name, $referenceType, $hostTokens, array $requiredSchemes = array()   X-Ref

getRelativePath($basePath, $targetPath)   X-Ref
Returns the target path as relative reference from the base path.

Only the URIs path component (no schema, host etc.) is relevant and must be given, starting with a slash.
Both paths must be absolute and not contain relative parts.
Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
Furthermore, they can be used to reduce the link size in documents.

Example target paths, given a base path of "/a/b/c/d":
- "/a/b/c/d"     -> ""
- "/a/b/c/"      -> "./"
- "/a/b/"        -> "../"
- "/a/b/c/other" -> "other"
- "/a/x/y"       -> "../../x/y"

param: string $basePath   The base path
param: string $targetPath The target path
return: string The relative target path

Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1