87 const VERSION_DEVELOPMENT =
'development';
94 const VERSION_EXPERIMENTAL =
'experimental';
101 const VERSION_DOLIBARR =
'dolibarr';
107 'dev' =>
'development',
108 'exp' =>
'experimental',
120 $this->
name = preg_replace(
'/^Interface/i',
'', get_class($this));
122 $this->version = self::VERSIONS[
'dev'];
123 $this->picto =
'technic';
146 return $this->description;
157 $langs->load(
"admin");
158 switch ($this->version) {
159 case self::VERSIONS[
'dev']:
160 return $langs->trans(
"VersionDevelopment");
161 case self::VERSIONS[
'exp']:
162 return $langs->trans(
"VersionExperimental");
163 case self::VERSIONS[
'prod']:
166 return $this->version;
179 if (is_array($this->errors)) {
180 $this->errors = array_merge($this->errors, array(
$object->error));
182 $this->errors = array(
$object->error);
186 if (is_array($this->errors)) {
187 $this->errors = array_merge($this->errors,
$object->errors);
189 $this->errors =
$object->errors;
if(! $sortfield) if(! $sortorder) $object
Class to stock current configuration.
Class to manage Dolibarr database access.
Class that all triggers must inherit.
runTrigger($action, $object, User $user, Translate $langs, Conf $conf)
Function called when a Dolibarr business event is done.
getName()
Returns the name of the trigger file.
getDesc()
Returns the description of trigger file.
__construct(DoliDB $db)
Constructor.
setErrorsFromObject($object)
setErrorsFromObject
getVersion()
Returns the version of the trigger file.
Class to manage translations.
Class to manage Dolibarr users.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
$conf db name
Only used if Module[ID]Name translation string is not found.