39 public $description =
'';
45 public $version = self::VERSION_DEVELOPMENT;
51 public $picto =
'technic';
71 public $errors = array();
76 const VERSION_DEVELOPMENT =
'development';
81 const VERSION_EXPERIMENTAL =
'experimental';
86 const VERSION_DOLIBARR =
'dolibarr';
98 if (empty($this->
name)) {
99 $this->
name = preg_replace(
'/^Interface/i',
'', get_class($this));
120 return $this->description;
131 $langs->load(
"admin");
133 if ($this->version == self::VERSION_DEVELOPMENT) {
134 return $langs->trans(
"VersionDevelopment");
135 } elseif ($this->version == self::VERSION_EXPERIMENTAL) {
136 return $langs->trans(
"VersionExperimental");
137 } elseif ($this->version == self::VERSION_DOLIBARR) {
139 } elseif ($this->version) {
140 return $this->version;
142 return $langs->trans(
"Unknown");
Class to stock current configuration.
getVersion()
Returns the version of the trigger file.
Class to manage Dolibarr users.
Class to manage Dolibarr database access.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.
runTrigger($action, $object, User $user, Translate $langs, Conf $conf)
Function called when a Dolibarrr business event is done.
Class to manage translations.
Class that all the triggers must extend.
getName()
Returns the name of the trigger file.
getDesc()
Returns the description of trigger file.
__construct(DoliDB $db)
Constructor.