CachingRouter¶
-
class
OC\Route\
CachingRouter
¶ Source: lib/private/Route/CachingRouter.php#30 Parent: OC\Route\Router
Properties¶
-
protected static property
OC\Route\CachingRouter::$
cache
¶ Source: lib/private/Route/CachingRouter.php#34 Type: \OCP\ICache
Methods¶
-
public
OC\Route\CachingRouter::
__construct
($cache, $logger)¶ Source: Parameters: - $cache (
OCP\ICache
) - $logger (
OCP\ILogger
)
- $cache (
-
public
OC\Route\CachingRouter::
generate
($name, $parameters=[], $absolute=false)¶ - Generate url based on $name and $parameters
Source: Parameters: - $name (string) Name of the route to use.
- $parameters (array) Parameters for the route
- $absolute (bool)
Returns: string