Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
BaseControllerCreator Class Reference
+ Inheritance diagram for BaseControllerCreator:

Public Member Functions

 __construct ($controllerName, $routePath, $views, $useViewInheritance)
 
 create (ScaffoldController $scaffoldController)
 
 getTemplateName ()
 
 setTemplateName ($templateName)
 
- Public Member Functions inherited from HasUsesTrait
 getUses ()
 
 addUse ($classname)
 
 addUses (... $classnames)
 
 getUsesStr ()
 

Protected Member Functions

 getNamespaceStr ()
 
 getRouteAnnotation ($path, $automated=true, $inherited=true)
 
 getAnnotation (string $type, array $attributes)
 
 addViews (&$messages, &$classContent)
 

Protected Attributes

 $controllerName
 
 $routePath
 
 $views
 
 $controllerNS
 
 $templateName
 
 $useViewInheritance
 
 $scaffoldController
 
- Protected Attributes inherited from HasUsesTrait
 $uses =[]
 

Detailed Description

Definition at line 19 of file BaseControllerCreator.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $controllerName,
  $routePath,
  $views,
  $useViewInheritance 
)

Reimplemented in RestControllerCreator.

Definition at line 39 of file BaseControllerCreator.php.

Member Function Documentation

◆ addViews()

addViews ( $messages,
$classContent 
)
abstractprotected

◆ create()

create ( ScaffoldController  $scaffoldController)
abstract

◆ getAnnotation()

getAnnotation ( string  $type,
array  $attributes 
)
protected

Definition at line 64 of file BaseControllerCreator.php.

◆ getNamespaceStr()

getNamespaceStr ( )
protected

Definition at line 49 of file BaseControllerCreator.php.

◆ getRouteAnnotation()

getRouteAnnotation (   $path,
  $automated = true,
  $inherited = true 
)
protected

Definition at line 56 of file BaseControllerCreator.php.

◆ getTemplateName()

getTemplateName ( )
Returns
mixed

Definition at line 76 of file BaseControllerCreator.php.

◆ setTemplateName()

setTemplateName (   $templateName)
Parameters
mixed$templateName

Definition at line 84 of file BaseControllerCreator.php.

Field Documentation

◆ $controllerName

$controllerName
protected

Definition at line 21 of file BaseControllerCreator.php.

◆ $controllerNS

$controllerNS
protected

Definition at line 27 of file BaseControllerCreator.php.

◆ $routePath

$routePath
protected

Definition at line 23 of file BaseControllerCreator.php.

◆ $scaffoldController

$scaffoldController
protected

Definition at line 37 of file BaseControllerCreator.php.

◆ $templateName

$templateName
protected

Definition at line 29 of file BaseControllerCreator.php.

◆ $useViewInheritance

$useViewInheritance
protected

Definition at line 31 of file BaseControllerCreator.php.

◆ $views

$views
protected

Definition at line 25 of file BaseControllerCreator.php.


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