Controller
class Controller (View source)
Class to manage pages
Properties
| bool | $accessNeedLoggedUser | if this controller need logged user or not |
|
| bool | $accessRight | define current user access |
|
| bool | $controllerStatus | If controller is active |
|
| DoliDB | $db | ||
| string | $tplPath | ||
| FormListWebPortal | $formList |
Methods
void
__construct()
Constructor
int
action()
Action method is called before html output can be used to manage security and change context
bool
checkAccess()
Check current access to controller
void
display()
Display
void
display404()
Display error template
int
hookDoAction(array<string, mixed> $parameters = array())
Execute hook doActions
int
hookPrintPageView(array<string, mixed> $parameters = array())
Execute hook PrintPageView
bool
loadTemplate(string $templateName, mixed $vars = false)
Load a template .tpl file
Details
void
__construct()
Constructor
int
action()
Action method is called before html output can be used to manage security and change context
bool
checkAccess()
Check current access to controller
void
display()
Display
void
display404()
Display error template
int
hookDoAction(array<string, mixed> $parameters = array())
Execute hook doActions
int
hookPrintPageView(array<string, mixed> $parameters = array())
Execute hook PrintPageView
bool
loadTemplate(string $templateName, mixed $vars = false)
Load a template .tpl file