Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
RouterModifierTrait Class Reference

Ubiquity\controllers\traits$RouterModifierTrait This class is part of Ubiquity. More...

+ Inheritance diagram for RouterModifierTrait:

Static Public Member Functions

static addRoute ($path, $controller, $action='index', $methods=null, $name='', $cache=false, $duration=null, $requirements=[], $priority=0)
 
static addRouteToRoutes (&$routesArray, $path, $controller, $action='index', $methods=null, $name='', $cache=false, $duration=null, $requirements=[], $priority=0, $callback=null)
 
static addCallableRoute ($path, $callable, $methods=null, $name='', $cache=false, $duration=null, $requirements=[], $priority=0)
 
static get ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0)
 
static post ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0)
 
static delete ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0)
 
static put ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0)
 
static patch ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0)
 
static options ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0)
 
static addRoutesToRoutes (&$routesArray, $paths, $controller, $action='index', $methods=null, $name='', $cache=false, $duration=null, $requirements=[], $priority=0)
 

Static Private Member Functions

static _addRoute (\ReflectionMethod $method, &$routesArray, $path, $controller, $action='index', $methods=null, $name='', $cache=false, $duration=null, $requirements=[], $priority=0, $callback=null)
 
static _addCallableRoute (\ReflectionFunction $reflectionFunction, &$routesArray, $path, $callable, $methods=null, $name='', $cache=false, $duration=null, $requirements=[], $priority=0)
 

Detailed Description

Ubiquity\controllers\traits$RouterModifierTrait This class is part of Ubiquity.

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.5

Definition at line 16 of file RouterModifierTrait.php.

Member Function Documentation

◆ _addCallableRoute()

static _addCallableRoute ( \ReflectionFunction  $reflectionFunction,
$routesArray,
  $path,
  $callable,
  $methods = null,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0 
)
staticprivate

Definition at line 101 of file RouterModifierTrait.php.

◆ _addRoute()

static _addRoute ( \ReflectionMethod  $method,
$routesArray,
  $path,
  $controller,
  $action = 'index',
  $methods = null,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0,
  $callback = null 
)
staticprivate

Definition at line 41 of file RouterModifierTrait.php.

◆ addCallableRoute()

static addCallableRoute (   $path,
  $callable,
  $methods = null,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0 
)
static

Definition at line 69 of file RouterModifierTrait.php.

◆ addRoute()

static addRoute (   $path,
  $controller,
  $action = 'index',
  $methods = null,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0 
)
static
Parameters
string$path
string$controller
string$action
array | null$methods
string$name
boolean$cache
int$duration
array$requirements

Definition at line 29 of file RouterModifierTrait.php.

◆ addRoutesToRoutes()

static addRoutesToRoutes ( $routesArray,
  $paths,
  $controller,
  $action = 'index',
  $methods = null,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0 
)
static

Definition at line 109 of file RouterModifierTrait.php.

◆ addRouteToRoutes()

static addRouteToRoutes ( $routesArray,
  $path,
  $controller,
  $action = 'index',
  $methods = null,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0,
  $callback = null 
)
static

Definition at line 33 of file RouterModifierTrait.php.

◆ delete()

static delete (   $path,
  $callable,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0 
)
static

Definition at line 85 of file RouterModifierTrait.php.

◆ get()

static get (   $path,
  $callable,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0 
)
static

Definition at line 77 of file RouterModifierTrait.php.

◆ options()

static options (   $path,
  $callable,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0 
)
static

Definition at line 97 of file RouterModifierTrait.php.

◆ patch()

static patch (   $path,
  $callable,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0 
)
static

Definition at line 93 of file RouterModifierTrait.php.

◆ post()

static post (   $path,
  $callable,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0 
)
static

Definition at line 81 of file RouterModifierTrait.php.

◆ put()

static put (   $path,
  $callable,
  $name = '',
  $cache = false,
  $duration = null,
  $requirements = [],
  $priority = 0 
)
static

Definition at line 89 of file RouterModifierTrait.php.


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