. * --------------------------------------------------------------------- */ if (!defined('GLPI_ROOT')) { die("Sorry. You can't access this file directly"); } /** * Interface to implement for each notification mode */ interface NotificationInterface { /** * Send notifications * * @return 0|1 **/ function sendNotification(); /** * Check data * * @param mixed $value The data to check (may differ for every notification mode) * @param array $options Optionnal special options (may be needed) * * @return boolean **/ static function check($value, $options = []); /** * Method to test notification * * @return mixed **/ static function testNotification(); }