⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Notification
/
View File Name :
Listener.php
* @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Notification */ abstract class Horde_Notification_Listener { /** * The base type of this listener. * * @var string */ protected $_name; /** * Array of message types that this listener handles. * Key is the type, value is the default class name of the Event type to * use. * * @var array */ protected $_handles = array(); /** * Does this listener handle a certain type of message? * * @param string $type The message type in question. * * @return mixed False if this listener does not handle, the default * event class if it does handle the type. */ public function handles($type) { if (isset($this->_handles[$type])) { return $this->_handles[$type]; } /* Search for '*' entries. */ foreach (array_keys($this->_handles) as $key) { if ((substr($key, -1) == '*') && (strpos($type, substr($key, 0, -1)) === 0)) { return $this->_handles[$key]; } } return false; } /** * Adds message type handler. * * @param string $type The type identifier. * @param string $class A classname. */ public function addType($type, $class) { $this->_handles[$type] = $class; } /** * Return a unique identifier for this listener. * * @return string Unique id. */ public function getName() { return $this->_name; } /** * Outputs the status line, sends emails, pages, etc., if there * are any messages on this listener's message stack. * * @param array $events The list of events to handle. * @param array $options An array of options. */ abstract public function notify($events, $options = array()); }