. * --------------------------------------------------------------------- */ if (!defined('GLPI_ROOT')) { die("Sorry. You can't access this file directly"); } class NotificationEventAjax extends NotificationEventAbstract implements NotificationEventInterface { static public function getTargetFieldName() { return 'users_id'; } static public function getTargetField(&$data) { $field = self::getTargetFieldName(); if (!isset($data[$field])) { //Missing users_id; set to null $data[$field] = null; } return $field; } static public function canCron() { //notifications are pulled from web browser, it must not be handled from cron return false; } static public function getAdminData() { //since admin cannot be logged in; no ajax notifications for global admin return false; } static public function getEntityAdminsData($entity) { //since entities admin cannot be logged in; no ajax notifications for them return false; } static public function send(array $data) { Toolbox::logError(__METHOD__ . ' should not be called!'); return false; } }