dolibarr 19.0.3
ActionsDatapolicy Class Reference

Class ActionsDatapolicy. More...

Inheritance diagram for ActionsDatapolicy:
Collaboration diagram for ActionsDatapolicy:

Public Member Functions

 __construct ($db)
 Constructor.
 
 getNomUrl ($parameters, &$object, &$action)
 Execute action.
 
 doActions ($parameters, &$object, &$action, $hookmanager)
 Overloading the doActions function : replacing the parent's function with the one below.
 
 addMoreActionsButtons ($parameters, &$object, &$action, $hookmanager)
 addMoreActionsButtons
 
 printCommonFooter ($parameters, &$object, &$action, $hookmanager)
 printCommonFooter
 

Detailed Description

Class ActionsDatapolicy.

Definition at line 29 of file actions_datapolicy.class.php.

Constructor & Destructor Documentation

◆ __construct()

ActionsDatapolicy::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 61 of file actions_datapolicy.class.php.

Member Function Documentation

◆ addMoreActionsButtons()

ActionsDatapolicy::addMoreActionsButtons ( $parameters,
& $object,
& $action,
$hookmanager )

addMoreActionsButtons

Parameters
array$parametersarray of parameters
Object$objectObject
string$actionActions
HookManager$hookmanagerHook manager
Returns
void

Definition at line 170 of file actions_datapolicy.class.php.

References getDolGlobalString().

◆ doActions()

ActionsDatapolicy::doActions ( $parameters,
& $object,
& $action,
$hookmanager )

Overloading the doActions function : replacing the parent's function with the one below.

Parameters
array$parametersHook metadatas (context, etc...)
Societe | CommonObject$objectThe object to process (an invoice if you are in invoice module, a propale in propale's module, etc...)
string$actionCurrent action (if set). Generally create or edit or null
HookManager$hookmanagerHook manager propagated to allow calling another hook
Returns
int Return integer < 0 on error, 0 on success, 1 to replace standard code

Definition at line 92 of file actions_datapolicy.class.php.

References dol_concatdesc(), dol_now(), dol_print_date(), GETPOST(), DataPolicy\sendMailDataPolicyAdherent(), DataPolicy\sendMailDataPolicyCompany(), DataPolicy\sendMailDataPolicyContact(), and setEventMessages().

◆ getNomUrl()

ActionsDatapolicy::getNomUrl ( $parameters,
& $object,
& $action )

Execute action.

Parameters
array$parametersArray of parameters
CommonObject$objectThe object to process (an invoice if you are in invoice module, a propale in propale's module, etc...)
string$action'add', 'update', 'view'
Returns
int Return integer <0 if KO, =0 if OK but we want to process standard actions too, >0 if OK and we want to replace standard actions.

Definition at line 76 of file actions_datapolicy.class.php.

◆ printCommonFooter()

ActionsDatapolicy::printCommonFooter ( $parameters,
& $object,
& $action,
$hookmanager )

printCommonFooter

Parameters
array$parametersarray of parameters
Object$objectObject
string$actionActions
HookManager$hookmanagerHook manager
Returns
int

Definition at line 222 of file actions_datapolicy.class.php.

References GETPOST().


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