1: <?php
2: /**
3: * The Horde_Notification_Event_Status:: class defines a single status
4: * notification event.
5: *
6: * Copyright 2010-2012 Horde LLC (http://www.horde.org/)
7: *
8: * See the enclosed file COPYING for license information (LGPL). If you
9: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
10: *
11: * @author Michael Slusarz <slusarz@horde.org>
12: * @category Horde
13: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
14: * @package Notification
15: */
16: class Horde_Notification_Event_Status extends Horde_Notification_Event
17: {
18: /**
19: * Charset of the message.
20: *
21: * @var string
22: */
23: public $charset = null;
24:
25: /**
26: * String representation of this object.
27: *
28: * @return string String representation.
29: */
30: public function __toString()
31: {
32: $text = $this->message;
33:
34: if (!in_array('content.raw', $this->flags)) {
35: $text = htmlspecialchars($text, ENT_COMPAT, $this->charset);
36: }
37:
38: return $text;
39: }
40:
41: }
42: