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

Public Member Functions

 __construct ($crudControllerName, $resource, $crudDatas=null, $crudViewer=null, $crudEvents=null, $crudViews=null, $routePath='', $useViewInheritance=false, $style='')
 
 create (ScaffoldController $scaffoldController)
 
 createCRUDFilesClass ($classContent="")
 
- Public Member Functions inherited from BaseControllerCreator
 __construct ($controllerName, $routePath, $views, $useViewInheritance)
 
 getTemplateName ()
 
 setTemplateName ($templateName)
 
- Public Member Functions inherited from HasUsesTrait
 getUses ()
 
 addUse ($classname)
 
 addUses (... $classnames)
 
 getUsesStr ()
 

Protected Member Functions

 createElements (string $nsc, string $crudControllerName, ScaffoldController $scaffoldController, array &$messages, string &$classContent)
 
 addViews (&$messages, &$classContent)
 
 createCRUDDatasClass ()
 
 createModelViewerClass ()
 
 createEventsClass ()
 
- Protected Member Functions inherited from BaseControllerCreator
 getNamespaceStr ()
 
 getRouteAnnotation ($path, $automated=true, $inherited=true)
 
 getAnnotation (string $type, array $attributes)
 

Protected Attributes

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

Private Attributes

 $resource
 
 $crudDatas
 
 $crudViewer
 
 $crudEvents
 
 $style
 

Detailed Description

Definition at line 18 of file CrudControllerCreator.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $crudControllerName,
  $resource,
  $crudDatas = null,
  $crudViewer = null,
  $crudEvents = null,
  $crudViews = null,
  $routePath = '',
  $useViewInheritance = false,
  $style = '' 
)

Definition at line 32 of file CrudControllerCreator.php.

Member Function Documentation

◆ addViews()

addViews ( $messages,
$classContent 
)
protected

Reimplemented from BaseControllerCreator.

Definition at line 106 of file CrudControllerCreator.php.

◆ create()

create ( ScaffoldController  $scaffoldController)

Reimplemented from BaseControllerCreator.

Reimplemented in IndexCrudControllerCreator.

Definition at line 43 of file CrudControllerCreator.php.

◆ createCRUDDatasClass()

createCRUDDatasClass ( )
protected

Definition at line 124 of file CrudControllerCreator.php.

◆ createCRUDFilesClass()

createCRUDFilesClass (   $classContent = "")

Definition at line 142 of file CrudControllerCreator.php.

◆ createElements()

createElements ( string  $nsc,
string  $crudControllerName,
ScaffoldController  $scaffoldController,
array &  $messages,
string &  $classContent 
)
protected

Definition at line 80 of file CrudControllerCreator.php.

◆ createEventsClass()

createEventsClass ( )
protected

Definition at line 136 of file CrudControllerCreator.php.

◆ createModelViewerClass()

createModelViewerClass ( )
protected

Definition at line 130 of file CrudControllerCreator.php.

Field Documentation

◆ $crudDatas

$crudDatas
private

Definition at line 22 of file CrudControllerCreator.php.

◆ $crudEvents

$crudEvents
private

Definition at line 26 of file CrudControllerCreator.php.

◆ $crudViewer

$crudViewer
private

Definition at line 24 of file CrudControllerCreator.php.

◆ $resource

$resource
private

Definition at line 20 of file CrudControllerCreator.php.

◆ $style

$style
private

Definition at line 28 of file CrudControllerCreator.php.

◆ $viewKey

$viewKey
protected

Definition at line 30 of file CrudControllerCreator.php.


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