ActionsMyModule
class ActionsMyModule extends CommonHookActions (View source)
Class ActionsMyModule
Properties
| ?string | $resprints | ||
| mixed[] | $results | ||
| string | $error | ||
| string[] | $errors | ||
| string[] | $warnings | from CommonHookActions | |
| DoliDB | $db | ||
| int | $priority |
Methods
Check context of hook
Constructor
Overload the doActions function : replacing the parent's function with the one below
Overload the doMassActions function : replacing the parent's function with the one below
Overload the addMoreMassActions function : replacing the parent's function with the one below
Execute action before PDF (document) creation
Execute action after PDF (document) creation
Overload the loadDataForCustomReports function : returns data to complete the customreport tool
Overload the restrictedArea function : check permission on an object
Execute action completeTabsHead
Overload the showLinkToObjectBlock function : add or replace array of object linkable
Details
protected bool
isContext(array<string, mixed> $parameters, string[]|string $allContexts)
Check context of hook
__construct($db)
Constructor
@param DoliDB $db Database handler
int
getNomUrl(array<string, mixed> $parameters, CommonObject $object, string $action)
Execute action
int
doActions(array<string, mixed> $parameters, CommonObject $object, ?string $action, HookManager $hookmanager)
Overload the doActions function : replacing the parent's function with the one below
int
doMassActions(array<string, mixed> $parameters, CommonObject $object, ?string $action, HookManager $hookmanager)
Overload the doMassActions function : replacing the parent's function with the one below
int
addMoreMassActions(array<string, mixed> $parameters, CommonObject $object, ?string $action, HookManager $hookmanager)
Overload the addMoreMassActions function : replacing the parent's function with the one below
int
beforePDFCreation(array<string, mixed> $parameters, CommonObject $object, string $action)
Execute action before PDF (document) creation
int
afterPDFCreation(array<string, mixed> $parameters, CommonDocGenerator $pdfhandler, string $action)
Execute action after PDF (document) creation
int
loadDataForCustomReports(array<string, mixed> $parameters, ?string $action, HookManager $hookmanager)
Overload the loadDataForCustomReports function : returns data to complete the customreport tool
int
restrictedArea(array<string, mixed> $parameters, CommonObject $object, string $action, HookManager $hookmanager)
Overload the restrictedArea function : check permission on an object
int
completeTabsHead(array<string, mixed> $parameters, CommonObject $object, string $action, HookManager $hookmanager)
Execute action completeTabsHead
int
showLinkToObjectBlock(array<string, mixed> $parameters, CommonObject $object, ?string $action, HookManager $hookmanager)
Overload the showLinkToObjectBlock function : add or replace array of object linkable