25 require_once DOL_DOCUMENT_ROOT .
'/core/class/commonobject.class.php';
36 public $element =
'actioncomm_reminder';
41 public $table_element =
'actioncomm_reminder';
46 public $ismultientitymanaged = 0;
51 public $picto =
'generic';
76 'rowid' => array(
'type'=>
'integer',
'label'=>
'TechnicalID',
'visible'=>-1,
'enabled'=>1,
'position'=>1,
'notnull'=>1,
'index'=>1,
'comment'=>
"Id",),
77 'dateremind' => array(
'type'=>
'datetime',
'label'=>
'DateRemind',
'visible'=>1,
'enabled'=>1,
'position'=>60,
'notnull'=>1,
'index'=>1,),
78 'typeremind' => array(
'type'=>
'varchar(32)',
'label'=>
'TypeRemind',
'visible'=>-1,
'enabled'=>1,
'position'=>55,
'notnull'=>1,
'comment'=>
"email, browser, sms",),
79 'fk_user' => array(
'type'=>
'integer',
'label'=>
'User',
'visible'=>-1,
'enabled'=>1,
'position'=>65,
'notnull'=>1,
'index'=>1,),
80 'offsetvalue' => array(
'type'=>
'integer',
'label'=>
'OffsetValue',
'visible'=>1,
'enabled'=>1,
'position'=>56,
'notnull'=>1,),
81 'offsetunit' => array(
'type'=>
'varchar(1)',
'label'=>
'OffsetUnit',
'visible'=>1,
'enabled'=>1,
'position'=>57,
'notnull'=>1,
'comment'=>
"m, h, d, w",),
82 'status' => array(
'type'=>
'integer',
'label'=>
'Status',
'visible'=>1,
'enabled'=>1,
'position'=>1000,
'notnull'=>1,
'default'=>0,
'index'=>0,
'arrayofkeyval'=>array(
'0'=>
'ToDo',
'1'=>
'Done')),
121 if (empty($conf->global->MAIN_SHOW_TECHNICAL_ID)) $this->fields[
'rowid'][
'visible']=0;
122 if (empty($conf->multicompany->enabled)) $this->fields[
'entity'][
'enabled']=0;
145 public function fetch($id, $ref = null)
170 public function delete(
User $user, $notrigger =
false)
183 return $this->
LibStatut($this->status,$mode);
199 if ($mode == 0 || $mode == 1)
201 if ($status == 1)
return $langs->trans(
'Done');
202 elseif ($status == 0)
return $langs->trans(
'ToDo');
206 if ($status == 1)
return img_picto($langs->trans(
'Done'),
'statut4').
' '.$langs->trans(
'Done');
207 elseif ($status == 0)
return img_picto($langs->trans(
'ToDo'),
'statut5').
' '.$langs->trans(
'ToDo');
211 if ($status == 1)
return img_picto($langs->trans(
'Done'),
'statut4');
212 elseif ($status == 0)
return img_picto($langs->trans(
'ToDo'),
'statut5');
216 if ($status == 1)
return img_picto($langs->trans(
'Done'),
'statut4').
' '.$langs->trans(
'Done');
217 elseif ($status == 0)
return img_picto($langs->trans(
'ToDo'),
'statut5').
' '.$langs->trans(
'ToDo');
221 if ($status == 1)
return $langs->trans(
'Done').
' '.
img_picto($langs->trans(
'Done'),
'statut4');
222 elseif ($status == 0)
return $langs->trans(
'ToDo').
' '.
img_picto($langs->trans(
'ToDo'),
'statut5');
226 if ($status == 1)
return $langs->trans(
'Done').
' '.
img_picto($langs->trans(
'Done'),
'statut4');
227 elseif ($status == 0)
return $langs->trans(
'ToDo').
' '.
img_picto($langs->trans(
'ToDo'),
'statut5');
deleteCommon(User $user, $notrigger=false, $forcechilddeletion=0)
Delete object in database.
fetchCommon($id, $ref=null, $morewhere='')
Load object in memory from the database.
Class for ActionCommReminder.
create(User $user, $notrigger=false)
Create object into database.
initAsSpecimen()
Initialise object with example values Id must be 0 if object instance is a specimen.
Class to manage Dolibarr users.
Class to manage Dolibarr database access.
initAsSpecimenCommon()
Initialise object with example values Id must be 0 if object instance is a specimen.
createCommon(User $user, $notrigger=false)
Create object into database.
static LibStatut($status, $mode=0)
Return the status.
updateCommon(User $user, $notrigger=false)
Update object into database.
fetch($id, $ref=null)
Load object in memory from the database.
getLibStatut($mode=0)
Retourne le libelle du status d'un user (actif, inactif)
__construct(DoliDB $db)
Constructor.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='')
Show picto whatever it's its name (generic function)
Parent class of all other business classes (invoices, contracts, proposals, orders, ...)
update(User $user, $notrigger=false)
Update object into database.