|
|
@@ -81,6 +81,8 @@ class BxTimelineResponse extends BxBaseModNotificationsResponse
|
|
|
'description' => '',
|
|
|
'date' => $iDate,
|
|
|
'reacted' => $iDate,
|
|
|
+ 'status' => $this->_getStatus($oAlert->aExtras),
|
|
|
+ 'status_admin' => $this->_getStatus($oAlert->aExtras, 'status_admin'),
|
|
|
];
|
|
|
|
|
|
$sMethod = '_prepareEvent' . bx_gen_method_name($oAlert->sUnit . '_' . $oAlert->sAction);
|
|
|
@@ -275,6 +277,16 @@ class BxTimelineResponse extends BxBaseModNotificationsResponse
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
+ protected function _getStatus($aExtras, $sField = 'status')
|
|
|
+ {
|
|
|
+ return ($sValue = $this->_getFieldValue($aExtras, $sField)) !== false ? $sValue : 'active';
|
|
|
+ }
|
|
|
+
|
|
|
+ protected function _getFieldValue($aExtras, $sField)
|
|
|
+ {
|
|
|
+ return isset($aExtras[$sField]) ? $aExtras[$sField] : false;
|
|
|
+ }
|
|
|
+
|
|
|
protected function _processSystemClearCache($oAlert)
|
|
|
{
|
|
|
if(!in_array($oAlert->aExtras['type'], array('all', 'custom')))
|