mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-05 10:18:33 +08:00
[Legacy] Add snooze until
This commit is contained in:
parent
5df53265dd
commit
088348578b
2 changed files with 16 additions and 0 deletions
|
@ -183,6 +183,13 @@ $dictionary['Account'] = array(
|
|||
'source' => 'non-db',
|
||||
'vname' => 'LBL_CALLS',
|
||||
),
|
||||
'is_read' =>
|
||||
[
|
||||
'name' => 'is_read',
|
||||
'vname' => 'LBL_IS_READ',
|
||||
'type' => 'bool',
|
||||
'massupdate' => false,
|
||||
],
|
||||
|
||||
'emails' => array(
|
||||
'name' => 'emails',
|
||||
|
|
|
@ -62,6 +62,7 @@ class Alert extends Basic
|
|||
public $assigned_user_name;
|
||||
public $assigned_user_link;
|
||||
public $is_read;
|
||||
public $snooze;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
@ -73,7 +74,15 @@ class Alert extends Basic
|
|||
parent::__construct();
|
||||
}
|
||||
|
||||
public function snoozeUntil() {
|
||||
|
||||
global $sugar_config;
|
||||
|
||||
$snoozeTimer = $sugar_config['snooze_alert_timer'];
|
||||
$snoozeUntil = date("Y-m-d H:i:s", strtotime("+ $snoozeTimer sec"));
|
||||
|
||||
return $snoozeUntil;
|
||||
}
|
||||
|
||||
|
||||
public function bean_implements($interface)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue