Ubiquity  2.5.2
php rapid development framework
ScaffoldController Class Reference
+ Inheritance diagram for ScaffoldController:

Public Member Functions

 getTemplateDir ()
 
 _refreshRest ($refresh=false)
 
 initRestCache ($refresh=true)
 
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
 _createMethod ($access, $name, $parameters="", $return="", $content="", $comment="")
 
 getInitialize ()
 
 _createController ($controllerName, $variables=[], $ctrlTemplate='controller.tpl', $hasView=false, $jsCallback="")
 
 addCrudController ($crudControllerName, $resource, $crudDatas=null, $crudViewer=null, $crudEvents=null, $crudViews=null, $routePath='', $useViewInheritance=false, $style='')
 
 addIndexCrudController ($crudControllerName, $crudDatas=null, $crudViewer=null, $crudEvents=null, $crudViews=null, $routePath='', $useViewInheritance=false, $style='')
 
 addAuthController ($authControllerName, $baseClass, $authViews=null, $routePath="", $useViewInheritance=false)
 
 addRestController ($restControllerName, $baseClass, $resource, $routePath="", $reInit=true)
 
 _createClass ($template, $classname, $namespace, $uses, $extendsOrImplements, $classContent)
 
 _newAction ($controller, $action, $parameters=null, $content='', $routeInfo=null, $createView=false, $theme=null)
 
 _createViewOp ($controller, $action, $theme=null)
 
 createAuthCrudView ($frameworkName, $controllerName, $newName, $useViewInheritance)
 
 setConfig ($config)
 
 setActiveDb ($activeDb)
 
 getActiveDb ()
 
- Public Member Functions inherited from HasUsesTrait
 getUses ()
 
 addUse ($classname)
 
 addUses (... $classnames)
 
 getUsesStr ()
 

Static Public Attributes

static $views
 
static form
 

Protected Member Functions

 storeControllerNameInSession ($controller)
 
 _addMessageForRouteCreation ($path, $jsCallback="")
 
 generateRouteAnnotation ($routeInfo, $controllerName, $action)
 

Protected Attributes

 $config
 
 $activeDb
 
- Protected Attributes inherited from HasUsesTrait
 $uses =[]
 

Private Member Functions

 generateRoutePath ($path, $controllerName, $action, $parameters)
 
 generateRouteName (string $controllerName, string $action)
 

Detailed Description

Definition at line 28 of file ScaffoldController.php.

Member Function Documentation

◆ _addMessageForRouteCreation()

_addMessageForRouteCreation (   $path,
  $jsCallback = "" 
)
abstractprotected

◆ _createClass()

_createClass (   $template,
  $classname,
  $namespace,
  $uses,
  $extendsOrImplements,
  $classContent 
)

Definition at line 165 of file ScaffoldController.php.

◆ _createController()

_createController (   $controllerName,
  $variables = [],
  $ctrlTemplate = 'controller.tpl',
  $hasView = false,
  $jsCallback = "" 
)

Definition at line 99 of file ScaffoldController.php.

◆ _createMethod()

_createMethod (   $access,
  $name,
  $parameters = "",
  $return = "",
  $content = "",
  $comment = "" 
)

Definition at line 77 of file ScaffoldController.php.

◆ _createViewOp()

_createViewOp (   $controller,
  $action,
  $theme = null 
)

Definition at line 309 of file ScaffoldController.php.

◆ _newAction()

_newAction (   $controller,
  $action,
  $parameters = null,
  $content = '',
  $routeInfo = null,
  $createView = false,
  $theme = null 
)

Definition at line 191 of file ScaffoldController.php.

◆ _refreshRest()

_refreshRest (   $refresh = false)

Definition at line 67 of file ScaffoldController.php.

◆ addAuthController()

addAuthController (   $authControllerName,
  $baseClass,
  $authViews = null,
  $routePath = "",
  $useViewInheritance = false 
)

Definition at line 155 of file ScaffoldController.php.

◆ addCrudController()

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

Definition at line 145 of file ScaffoldController.php.

◆ addIndexCrudController()

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

Definition at line 150 of file ScaffoldController.php.

◆ addRestController()

addRestController (   $restControllerName,
  $baseClass,
  $resource,
  $routePath = "",
  $reInit = true 
)

Definition at line 160 of file ScaffoldController.php.

◆ createAuthCrudView()

createAuthCrudView (   $frameworkName,
  $controllerName,
  $newName,
  $useViewInheritance 
)

Definition at line 328 of file ScaffoldController.php.

◆ generateRouteAnnotation()

generateRouteAnnotation (   $routeInfo,
  $controllerName,
  $action 
)
protected

Definition at line 278 of file ScaffoldController.php.

◆ generateRouteName()

generateRouteName ( string  $controllerName,
string  $action 
)
private

Definition at line 273 of file ScaffoldController.php.

◆ generateRoutePath()

generateRoutePath (   $path,
  $controllerName,
  $action,
  $parameters 
)
private

Definition at line 260 of file ScaffoldController.php.

◆ getActiveDb()

getActiveDb ( )
Returns
string

Definition at line 381 of file ScaffoldController.php.

◆ getInitialize()

getInitialize ( )

Definition at line 90 of file ScaffoldController.php.

◆ getTemplateDir()

getTemplateDir ( )

Definition at line 63 of file ScaffoldController.php.

◆ initRestCache()

initRestCache (   $refresh = true)

Definition at line 69 of file ScaffoldController.php.

◆ setActiveDb()

setActiveDb (   $activeDb)
Parameters
string$activeDb

Definition at line 373 of file ScaffoldController.php.

◆ setConfig()

setConfig (   $config)

Definition at line 365 of file ScaffoldController.php.

◆ showSimpleMessage()

showSimpleMessage (   $content,
  $type,
  $title = null,
  $icon = "info",
  $timeout = NULL,
  $staticName = null 
)
abstract

◆ storeControllerNameInSession()

storeControllerNameInSession (   $controller)
abstractprotected

Field Documentation

◆ $activeDb

$activeDb
protected

Definition at line 32 of file ScaffoldController.php.

◆ $config

$config
protected

Definition at line 30 of file ScaffoldController.php.

◆ $views

$views
static
Initial value:
= [
"CRUD" => [
"index" => "@framework/crud/index.html"

Definition at line 34 of file ScaffoldController.php.

◆ form

form
static
Initial value:
=> "@framework/crud/form.html",
"display" => "@framework/crud/display.html"
],
"indexCRUD" => [
"index" => "@framework/crud/index.html",
"form" => "@framework/crud/form.html",
"display" => "@framework/crud/display.html",
"home" => "@framework/crud/home.html",
"itemHome" => "@framework/crud/itemHome.html",
"nav" => "@framework/crud/nav.html"
],
"auth" => [
"index" => "@framework/auth/index.html",
"info" => "@framework/auth/info.html",
"noAccess" => "@framework/auth/noAccess.html",
"disconnected" => "@framework/auth/disconnected.html",
"message" => "@framework/auth/message.html",
"create" => "@framework/auth/create.html",
"stepTwo" => "@framework/auth/stepTwo.html",
"badTwoFACode" => "@framework/auth/badTwoFACode.html",
"baseTemplate" => "@framework/auth/baseTemplate.html",
"initRecovery" => "@framework/auth/initRecovery.html",
"recovery" => "@framework/auth/recovery.html"
]
]

Definition at line 37 of file ScaffoldController.php.


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