Ubiquity  2.0.3
php rapid development framework
CRUDController Class Reference
+ Inheritance diagram for CRUDController:

Public Member Functions

 index ()
 Default page : list all objects. More...
 
- Public Member Functions inherited from ControllerBase
 initialize ()
 
 finalize ()
 
- Public Member Functions inherited from Controller
 index ()
 Default action. More...
 
 __construct ()
 Constructor initialize $view variable. More...
 
 initialize ()
 Method called before each action Can be override in derived class. More...
 
 finalize ()
 Method called after each action Can be override in derived class. More...
 
 loadView ($viewName, $pData=NULL, $asString=false)
 Loads the view $viewName possibly passing the variables $pdata. More...
 
 loadDefaultView ($pData=NULL, $asString=false)
 Loads the default view (controllerName/actionName) possibly passing the variables $pdata. More...
 
 getDefaultViewName ()
 Returns the default view name for this controller/action i.e ControllerName/actionName.html for the action actionName in ControllerName. More...
 
 isValid ($action)
 Returns True if access to the controller is allowed To be override in sub classes. More...
 
 onInvalidControl ()
 Called if isValid () returns false
To be override in sub classes. More...
 
 forward ($controller, $action="index", $params=array(), $initialize=false, $finalize=false)
 Loads the controller $controller and calls its $action method by passing the parameters $params. More...
 
 redirectToRoute ($routeName, $parameters=[], $initialize=false, $finalize=false)
 Redirect to a route by its name. More...
 
 getView ()
 

Protected Member Functions

 getGui ()
 

Protected Attributes

 $model
 
 $gui
 
- Protected Attributes inherited from ControllerBase
 $headerView ="@framework/main/vHeader.html"
 
 $footerView ="@framework/main/vFooter.html"
 
- Protected Attributes inherited from Controller
 $view
 

Detailed Description

Definition at line 7 of file CRUDController.php.

Member Function Documentation

◆ getGui()

getGui ( )
abstractprotected

◆ index()

index ( )

Default page : list all objects.

Definition at line 16 of file CRUDController.php.

Field Documentation

◆ $gui

$gui
protected

Definition at line 9 of file CRUDController.php.

◆ $model

$model
protected

Definition at line 8 of file CRUDController.php.


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