33 require_once DOL_DOCUMENT_ROOT.
'/core/triggers/dolibarrtriggers.class.php';
50 $this->
name = preg_replace(
'/^Interface/i',
'', get_class($this));
51 $this->family =
"demo";
54 $this->version =
'development';
55 $this->picto =
'mymodule@mymodule';
75 return $this->description;
102 $methodName = lcfirst(str_replace(
' ',
'', ucwords(str_replace(
'_',
' ', strtolower($action)))));
103 $callback = array($this, $methodName);
104 if (is_callable($callback)) {
106 "Trigger '".$this->
name.
"' for action '$action' launched by ".__FILE__.
". id=".$object->id
109 return call_user_func($callback, $action, $object, $user, $langs, $conf);
317 dol_syslog(
"Trigger '".$this->
name.
"' for action '".$action.
"' launched by ".__FILE__.
". id=".$object->id);