dolibarr 18.0.6
ActionsDatapolicy Class Reference

Class ActionsDatapolicy. More...

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.
 
 doMassActions ($parameters, &$object, &$action, $hookmanager)
 Overloading the doActions function : replacing the parent's function with the one below.
 
 addMoreMassActions ($parameters, &$object, &$action, $hookmanager)
 Overloading the addMoreMassActions function : replacing the parent's function with the one below.
 
 beforePDFCreation ($parameters, &$object, &$action)
 Execute action.
 
 addMoreActionsButtons ($parameters, &$object, &$action, $hookmanager)
 addMoreActionsButtons
 
 printCommonFooter ($parameters, &$object, &$action, $hookmanager)
 printCommonFooter
 

Detailed Description

Class ActionsDatapolicy.

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

Constructor & Destructor Documentation

◆ __construct()

ActionsDatapolicy::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 60 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 258 of file actions_datapolicy.class.php.

◆ addMoreMassActions()

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

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

Parameters
array$parametersHook metadatas (context, etc...)
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 < 0 on error, 0 on success, 1 to replace standard code

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

◆ beforePDFCreation()

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

Execute action.

Parameters
array$parametersArray of parameters
Object$objectObject output on PDF
string$action'add', 'update', 'view'
Returns
int <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 230 of file actions_datapolicy.class.php.

References dol_syslog().

◆ 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 < 0 on error, 0 on success, 1 to replace standard code

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

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

◆ doMassActions()

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

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

Parameters
array$parametersHook metadatas (context, etc...)
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 < 0 on error, 0 on success, 1 to replace standard code

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

◆ 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 <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 75 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 310 of file actions_datapolicy.class.php.

References GETPOST().


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