dolibarr 21.0.0-alpha
DocumentController Class Reference

Class for DocumentController. More...

Inheritance diagram for DocumentController:
Collaboration diagram for DocumentController:

Public Member Functions

 init ()
 Init.
 
 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 DocumentController.

Definition at line 31 of file document.controller.class.php.

Member Function Documentation

◆ action()

DocumentController::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 269 of file document.controller.class.php.

References $context, and Context\getInstance().

◆ checkAccess()

DocumentController::checkAccess ( )

Check current access to controller.

Returns
bool

Reimplemented from Controller.

Definition at line 256 of file document.controller.class.php.

◆ display()

DocumentController::display ( )

Display.

Returns
void

Reimplemented from Controller.

Definition at line 291 of file document.controller.class.php.

References $context, dol_filesize(), Context\getInstance(), readfileLowMemory(), and top_httphead().

◆ init()


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