dolibarr  16.0.5
Public Member Functions | List of all members
ActionsMyModule Class Reference

Class ActionsMyModule. More...

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 doMassActions 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...
 
 afterPDFCreation ($parameters, &$pdfhandler, &$action)
 Execute action. More...
 
 loadDataForCustomReports ($parameters, &$action, $hookmanager)
 Overloading the loadDataForCustomReports function : returns data to complete the customreport tool. More...
 
 restrictedArea ($parameters, &$action, $hookmanager)
 Overloading the restrictedArea function : check permission on an object. More...
 
 completeTabsHead (&$parameters, &$object, &$action, $hookmanager)
 Execute action completeTabsHead. More...
 

Detailed Description

Class ActionsMyModule.

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

Constructor & Destructor Documentation

◆ __construct()

ActionsMyModule::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 68 of file actions_mymodule.class.php.

References db.

Member Function Documentation

◆ addMoreMassActions()

ActionsMyModule::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 165 of file actions_mymodule.class.php.

◆ afterPDFCreation()

ActionsMyModule::afterPDFCreation (   $parameters,
$pdfhandler,
$action 
)

Execute action.

Parameters
array$parametersArray of parameters
Object$pdfhandlerPDF builder handler
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 224 of file actions_mymodule.class.php.

◆ beforePDFCreation()

ActionsMyModule::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 197 of file actions_mymodule.class.php.

◆ completeTabsHead()

ActionsMyModule::completeTabsHead ( $parameters,
$object,
$action,
  $hookmanager 
)

Execute action completeTabsHead.

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'
Hookmanager$hookmanagerhookmanager
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 322 of file actions_mymodule.class.php.

◆ doActions()

ActionsMyModule::doActions (   $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 100 of file actions_mymodule.class.php.

◆ doMassActions()

ActionsMyModule::doMassActions (   $parameters,
$object,
$action,
  $hookmanager 
)

Overloading the doMassActions 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 132 of file actions_mymodule.class.php.

◆ getNomUrl()

ActionsMyModule::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 84 of file actions_mymodule.class.php.

◆ loadDataForCustomReports()

ActionsMyModule::loadDataForCustomReports (   $parameters,
$action,
  $hookmanager 
)

Overloading the loadDataForCustomReports function : returns data to complete the customreport tool.

Parameters
array$parametersHook metadatas (context, 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 252 of file actions_mymodule.class.php.

◆ restrictedArea()

ActionsMyModule::restrictedArea (   $parameters,
$action,
  $hookmanager 
)

Overloading the restrictedArea function : check permission on an object.

Parameters
array$parametersHook metadatas (context, etc...)
string$actionCurrent action (if set). Generally create or edit or null
HookManager$hookmanagerHook manager propagated to allow calling another hook
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 294 of file actions_mymodule.class.php.


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