25require_once DOL_DOCUMENT_ROOT.
'/core/class/commonhookactions.class.php';
45 public $errors = array();
51 public $results = array();
87 global
$conf, $user, $langs;
90 $outputlangs = $langs;
94 dol_syslog(get_class($this).
'::executeHooks action='.$action);
98 if (in_array($parameters[
'currentcontext'], array(
'somecontext1',
'somecontext2'))) {
117 global
$conf, $user, $langs;
120 $outputlangs = $langs;
124 dol_syslog(get_class($this).
'::executeHooks action='.$action);
128 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.