dolibarr  19.0.0-dev
Public Member Functions | List of all members
ActionsDatapolicy Class Reference

Class ActionsDatapolicy. More...

Inheritance diagram for ActionsDatapolicy:
Inheritance graph
[legend]
Collaboration diagram for ActionsDatapolicy:
Collaboration graph
[legend]

Public Member Functions

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

Detailed Description

Class ActionsDatapolicy.

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

Constructor & Destructor Documentation

◆ __construct()

ActionsDatapolicy::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 62 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 260 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 203 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 232 of file actions_datapolicy.class.php.

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

◆ 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 170 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 77 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 312 of file actions_datapolicy.class.php.


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