lib/private/URLGenerator.php
/**
	 * Creates an url using a defined route
	 * @param string $route
	 * @param array $parameters args with param=>value, will be appended to the returned url
	 * @return string the url
	 *
	 * Returns a url to the given route.
	 */
Creates an url using a defined route
@param string $route
@param array $parameters args with param=>value, will be appended to the returned url
@return string the url

Returns a url to the given route.
Creates an url using a defined route @param string $route @param array $parameters args with param = > value will be appended to the returned url @return string the url Returns a url to the given route .
public function linkToRoute($route, $parameters = array()) {
		$urlLinkTo = \OC::$server->getRouter()->generate($route, $parameters);
		return $urlLinkTo;
	}
public function linkToRoute ( $ route , $ parameters = array ( ) ) { $ urlLinkTo = \ OC :: $ server -> getRouter ( ) -> generate ( $ route , $ parameters ) ; return $ urlLinkTo ; }
Creates an url using a defined route
 @param string $route
 @param array $parameters args with param=>value, will be appended to the returned url
 @return string the url
Creates an url using a defined route @param string $route @param array $parameters args with param = > value will be appended to the returned url @return string the url
// TODO: mock router