24require_once DOL_DOCUMENT_ROOT.
'/core/class/commonhookactions.class.php';
44 public $errors = array();
50 public $results = array();
86 global
$conf, $user, $langs;
89 $outputlangs = $langs;
93 dol_syslog(get_class($this).
'::executeHooks action='.$action);
97 if (in_array($parameters[
'currentcontext'], array(
'somecontext1',
'somecontext2'))) {
116 global
$conf, $user, $langs;
119 $outputlangs = $langs;
123 dol_syslog(get_class($this).
'::executeHooks action='.$action);
127 if (in_array($parameters[
'currentcontext'], array(
'somecontext1',
'somecontext2'))) {
if(! $sortfield) if(! $sortorder) $object
afterPDFCreation($parameters, &$pdfhandler, &$action)
Execute action after PDF (document) creation.
beforePDFCreation($parameters, &$object, &$action)
Execute action before PDF (document) creation.
__construct($db)
Constructor.
Parent class of all other hook actions classes.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.