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.
Class to manage Dolibarr database access.
Class that all the triggers must extend.
runTrigger($action, $object, User $user, Translate $langs, Conf $conf)
Function called when a Dolibarrr business event is done.
getName()
Returns the name of the trigger file.
getDesc()
Returns the description of trigger file.
__construct(DoliDB $db)
Constructor.
getVersion()
Returns the version of the trigger file.
Class to manage translations.
Class to manage Dolibarr users.
$conf db name
Only used if Module[ID]Name translation string is not found.