IURLGenerator¶
- 
interface 
OCP\IURLGenerator¶ - Class to generate URLs
Implemented by: OC\URLGeneratorSource: lib/public/IURLGenerator.php#38  
Methods¶
- 
public 
OCP\IURLGenerator::linkToRoute($routeName, $arguments=[])¶ - Returns the URL for a route
Source: Parameters: - $routeName (string) the name of the route
 - $arguments (array) an array with arguments which will be filled into the url
 
Returns: string the url
Since: 6.0.0
 
- 
public 
OCP\IURLGenerator::linkToRouteAbsolute($routeName, $arguments=[])¶ - Returns the absolute URL for a route
Source: Parameters: - $routeName (string) the name of the route
 - $arguments (array) an array with arguments which will be filled into the url
 
Returns: string the absolute url
Since: 8.0.0
 
- 
public 
OCP\IURLGenerator::linkToOCSRouteAbsolute($routeName, $arguments=[])¶ Source: Parameters: - $routeName (string)
 - $arguments (array)
 
Returns: string
Since: 15.0.0
- 
public 
OCP\IURLGenerator::linkTo($appName, $file, $args=[])¶ - Returns an URL for an image or file
Source: Parameters: - $appName (string) the name of the app
 - $file (string) the name of the file
 - $args (array) array with param=>value, will be appended to the returned url
 
The value of $args will be urlencoded
Returns: string the url
Since: 6.0.0
 
- 
public 
OCP\IURLGenerator::imagePath($appName, $file)¶ - Returns the link to an image, like linkTo but only with prepending img/
Source: Parameters: - $appName (string) the name of the app
 - $file (string) the name of the file
 
Returns: string the url
Since: 6.0.0
 
- 
public 
OCP\IURLGenerator::getAbsoluteURL($url)¶ - Makes an URL absolute
Source: Parameters: - $url (string) the url in the ownCloud host
 
Returns: string the absolute version of the url
Since: 6.0.0
 
- 
public 
OCP\IURLGenerator::linkToDocs($key)¶ Source: Parameters: - $key (string)
 
Returns: string url to the online documentation
Since: 8.0.0
- 
public 
OCP\IURLGenerator::getBaseUrl()¶ Source: lib/public/IURLGenerator.php#105 Returns: string base url of the current request Since: 13.0.0