79 const VERSION_DEVELOPMENT =
'development';
86 const VERSION_EXPERIMENTAL =
'experimental';
93 const VERSION_DOLIBARR =
'dolibarr';
99 'dev' =>
'development',
100 'exp' =>
'experimental',
112 $this->
name = preg_replace(
'/^Interface/i',
'', get_class($this));
114 $this->version = self::VERSIONS[
'dev'];
115 $this->picto =
'technic';
138 return $this->description;
149 $langs->load(
"admin");
150 switch ($this->version) {
151 case self::VERSIONS[
'dev']:
152 return $langs->trans(
"VersionDevelopment");
153 case self::VERSIONS[
'exp']:
154 return $langs->trans(
"VersionExperimental");
155 case self::VERSIONS[
'prod']:
158 return $this->version;
171 $this->errors = array_merge($this->errors, array(
$object->error));
174 $this->errors = array_merge($this->errors,
$object->errors);
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Parent class of all other business classes (invoices, contracts, proposals, orders,...
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.
setErrorsFromObject(CommonObject $object)
setErrorsFromObject
__construct(DoliDB $db)
Constructor.
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.