⚝
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 :
Event.php
* @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Notification */ class Horde_Notification_Event { /** * The message being passed. * * @var string */ public $message = ''; /** * The flags for this message. * * @var array */ public $flags = array(); /** * The message type. * * @var string */ public $type; /** * Constructor. * * @param mixed $data Message: either a string or an Exception or * PEAR_Error object. * @param string $type The event type. * @param array $flags The flag array. */ public function __construct($data, $type = null, array $flags = array()) { $this->flags = $flags; $this->type = empty($type) ? 'status' : $type; if ($data instanceof PEAR_Error) { // DEPRECATED if (($userinfo = $data->getUserInfo()) && is_array($userinfo)) { $userinfo_elts = array(); foreach ($userinfo as $userinfo_elt) { if (is_scalar($userinfo_elt)) { $userinfo_elts[] = $userinfo_elt; } elseif (is_object($userinfo_elt)) { if (is_callable(array($userinfo_elt, '__toString'))) { $userinfo_elts[] = $userinfo_elt->__toString(); } elseif (is_callable(array($userinfo_elt, 'getMessage'))) { $userinfo_elts[] = $userinfo_elt->getMessage(); } } } $this->message = $data->getMessage() . ' : ' . implode(', ', $userinfo_elts); } else { $this->message = $data->getMessage(); } } elseif ($data instanceof Exception) { // Exception $this->message = $data->getMessage(); } else { // String or object $this->message = strval($data); } } /** * String representation of this object. * * @return string String representation. */ public function __toString() { return $this->message; } }