80 const VERSION_DEVELOPMENT =
'development';
87 const VERSION_EXPERIMENTAL =
'experimental';
94 const VERSION_DOLIBARR =
'dolibarr';
100 'dev' =>
'development',
101 'exp' =>
'experimental',
113 $this->
name = preg_replace(
'/^Interface/i',
'', get_class($this));
115 $this->version = self::VERSIONS[
'dev'];
116 $this->picto =
'technic';
139 return $this->description;
150 $langs->load(
"admin");
151 switch ($this->version) {
152 case self::VERSIONS[
'dev']:
153 return $langs->trans(
"VersionDevelopment");
154 case self::VERSIONS[
'exp']:
155 return $langs->trans(
"VersionExperimental");
156 case self::VERSIONS[
'prod']:
159 return $this->version;
172 $this->errors = array_merge($this->errors, array(
$object->error));
175 $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.