Ubiquity  2.0.2
php rapid development framework
RouterCacheTrait Class Reference
+ Inheritance diagram for RouterCacheTrait:

Static Public Member Functions

static getControllerCache ($isRest=false)
 
static getRouteCache ($routePath, $duration)
 
static expired ($key, $duration)
 
static isExpired ($path, $duration)
 
static setExpired ($routePath, $expired=true)
 
static setRouteCache ($routePath)
 
static addAdminRoutes ()
 
static getRoutes ()
 
static getControllerRoutes ($controllerClass, $isRest=false)
 
static addRoute ($path, $controller, $action="index", $methods=null, $name="")
 
static getControllersFiles (&$config, $silent=false)
 
static getControllers ()
 

Static Protected Member Functions

static _getFiles (&$config, $type, $silent=false)
 

Static Private Member Functions

static addControllerCache ($classname)
 
static initRouterCache (&$config, $silent=false)
 
static storeRouteResponse ($key, $response)
 
static getRouteKey ($routePath)
 
static setKeyExpired ($key, $expired=true)
 

Static Private Attributes

static $expiredRoutes =[ ]
 

Detailed Description

Author
jc array $cache

Definition at line 18 of file RouterCacheTrait.php.

Member Function Documentation

◆ _getFiles()

static _getFiles ( $config,
  $type,
  $silent = false 
)
staticabstractprotected

◆ addAdminRoutes()

static addAdminRoutes ( )
static

Definition at line 118 of file RouterCacheTrait.php.

◆ addControllerCache()

static addControllerCache (   $classname)
staticprivate

Definition at line 23 of file RouterCacheTrait.php.

◆ addRoute()

static addRoute (   $path,
  $controller,
  $action = "index",
  $methods = null,
  $name = "" 
)
static

Definition at line 147 of file RouterCacheTrait.php.

◆ expired()

static expired (   $key,
  $duration 
)
static

Definition at line 95 of file RouterCacheTrait.php.

◆ getControllerCache()

static getControllerCache (   $isRest = false)
static

Definition at line 76 of file RouterCacheTrait.php.

◆ getControllerRoutes()

static getControllerRoutes (   $controllerClass,
  $isRest = false 
)
static

Definition at line 127 of file RouterCacheTrait.php.

◆ getControllers()

static getControllers ( )
static

Definition at line 157 of file RouterCacheTrait.php.

◆ getControllersFiles()

static getControllersFiles ( $config,
  $silent = false 
)
static

Definition at line 153 of file RouterCacheTrait.php.

◆ getRouteCache()

static getRouteCache (   $routePath,
  $duration 
)
static

Definition at line 83 of file RouterCacheTrait.php.

◆ getRouteKey()

static getRouteKey (   $routePath)
staticprivate

Definition at line 64 of file RouterCacheTrait.php.

◆ getRoutes()

static getRoutes ( )
static

Definition at line 122 of file RouterCacheTrait.php.

◆ initRouterCache()

static initRouterCache ( $config,
  $silent = false 
)
staticprivate

Definition at line 34 of file RouterCacheTrait.php.

◆ isExpired()

static isExpired (   $path,
  $duration 
)
static

Definition at line 99 of file RouterCacheTrait.php.

◆ setExpired()

static setExpired (   $routePath,
  $expired = true 
)
static

Definition at line 107 of file RouterCacheTrait.php.

◆ setKeyExpired()

static setKeyExpired (   $key,
  $expired = true 
)
staticprivate

Definition at line 68 of file RouterCacheTrait.php.

◆ setRouteCache()

static setRouteCache (   $routePath)
static

Definition at line 112 of file RouterCacheTrait.php.

◆ storeRouteResponse()

static storeRouteResponse (   $key,
  $response 
)
staticprivate

Definition at line 58 of file RouterCacheTrait.php.

Field Documentation

◆ $expiredRoutes

$expiredRoutes =[ ]
staticprivate

Definition at line 21 of file RouterCacheTrait.php.


The documentation for this class was generated from the following file: