dolibarr 21.0.0-beta
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 32 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 268 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 255 of file document.controller.class.php.

◆ display()

DocumentController::display ( )

Display.

Returns
void

Reimplemented from Controller.

Definition at line 290 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: