dolibarr 20.0.0
DefaultController Class Reference

Class for DefaultController. More...

Inheritance diagram for DefaultController:
Collaboration diagram for DefaultController:

Public Member Functions

 checkAccess ()
 Check current access to controller.
 
 action ()
 Action method is called before html output can be used to manage security and change context.
 
 display ()
 Display.
 
- Public Member Functions inherited from Controller
 __construct ()
 Constructor.
 
 display404 ()
 Display error template.
 
 hookDoAction ($parameters=array())
 Execute hook doActions.
 
 hookPrintPageView ($parameters=array())
 Execute hook PrintPageView.
 
 loadTemplate ($templateName, $vars=false)
 Load a template .tpl file.
 

Detailed Description

Class for DefaultController.

Definition at line 28 of file default.controller.class.php.

Member Function Documentation

◆ action()

DefaultController::action ( )

Action method is called before html output can be used to manage security and change context.

Returns
int Return integer < 0 on error, > 0 on success

Reimplemented from Controller.

Definition at line 48 of file default.controller.class.php.

References Context\getInstance(), and Controller\hookDoAction().

◆ checkAccess()

DefaultController::checkAccess ( )

Check current access to controller.

Returns
bool

Reimplemented from Controller.

Definition at line 35 of file default.controller.class.php.

◆ display()

DefaultController::display ( )

Display.

Returns
void

Reimplemented from Controller.

Definition at line 71 of file default.controller.class.php.

References Controller\display404(), Context\getInstance(), Controller\hookPrintPageView(), and Controller\loadTemplate().


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