Ubiquity  2.0.2
php rapid development framework
ControllerParser Class Reference

Public Member Functions

 parse ($controllerClass)
 
 asArray ()
 
 isRest ()
 

Static Public Member Functions

static parseRouteArray (&$result, $controllerClass, $routeArray, \ReflectionMethod $method, $methodName, $prefix="", $httpMethods=NULL)
 
static addParamsPath ($path, \ReflectionMethod $method, $requirements)
 

Private Member Functions

 generateRouteAnnotationFromMethod (\ReflectionMethod $method)
 

Static Private Member Functions

static getPathFromMethod (\ReflectionMethod $method)
 
static cleanpath ($prefix, $path="")
 
static scanParam (&$parameters, &$hasOptional, $matches, $index, $paramMatch, $find, &$path, $requirement)
 
static createRouteMethod (&$result, $controllerClass, $path, $httpMethods, $method, $parameters, $name, $cache, $duration)
 

Private Attributes

 $controllerClass
 
 $mainRouteClass
 
 $routesMethods =[ ]
 
 $rest =false
 

Static Private Attributes

static $excludeds =[ "__construct","isValid","initialize","finalize","onInvalidControl","loadView","forward","redirectToRoute" ]
 

Detailed Description

Definition at line 10 of file ControllerParser.php.

Member Function Documentation

◆ addParamsPath()

static addParamsPath (   $path,
\ReflectionMethod  $method,
  $requirements 
)
static

Definition at line 144 of file ControllerParser.php.

◆ asArray()

asArray ( )

Definition at line 94 of file ControllerParser.php.

◆ cleanpath()

static cleanpath (   $prefix,
  $path = "" 
)
staticprivate

Definition at line 83 of file ControllerParser.php.

◆ createRouteMethod()

static createRouteMethod ( $result,
  $controllerClass,
  $path,
  $httpMethods,
  $method,
  $parameters,
  $name,
  $cache,
  $duration 
)
staticprivate

Definition at line 190 of file ControllerParser.php.

◆ generateRouteAnnotationFromMethod()

generateRouteAnnotationFromMethod ( \ReflectionMethod  $method)
private

Definition at line 55 of file ControllerParser.php.

◆ getPathFromMethod()

static getPathFromMethod ( \ReflectionMethod  $method)
staticprivate

Definition at line 61 of file ControllerParser.php.

◆ isRest()

isRest ( )

Definition at line 196 of file ControllerParser.php.

◆ parse()

parse (   $controllerClass)

Definition at line 17 of file ControllerParser.php.

◆ parseRouteArray()

static parseRouteArray ( $result,
  $controllerClass,
  $routeArray,
\ReflectionMethod  $method,
  $methodName,
  $prefix = "",
  $httpMethods = NULL 
)
static

Definition at line 120 of file ControllerParser.php.

◆ scanParam()

static scanParam ( $parameters,
$hasOptional,
  $matches,
  $index,
  $paramMatch,
  $find,
$path,
  $requirement 
)
staticprivate

Definition at line 171 of file ControllerParser.php.

Field Documentation

◆ $controllerClass

$controllerClass
private

Definition at line 11 of file ControllerParser.php.

◆ $excludeds

$excludeds =[ "__construct","isValid","initialize","finalize","onInvalidControl","loadView","forward","redirectToRoute" ]
staticprivate

Definition at line 15 of file ControllerParser.php.

◆ $mainRouteClass

$mainRouteClass
private

Definition at line 12 of file ControllerParser.php.

◆ $rest

$rest =false
private

Definition at line 14 of file ControllerParser.php.

◆ $routesMethods

$routesMethods =[ ]
private

Definition at line 13 of file ControllerParser.php.


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