[ Index ] |
|
Code source de IMP H3 (4.1.5) |
1 <?php 2 3 require_once 'Horde/Notification/Listener/status.php'; 4 5 /** 6 * The Notification_Listener_status_imp:: class extends the 7 * Notification_Listener_status:: class to display the messages for 8 * IMP's special message types 'imp.forward' and 'imp.reply'. 9 * 10 * $Horde: imp/lib/Notification/Listener/status.php,v 1.7.10.3 2005/10/18 12:13:36 jan Exp $ 11 * 12 * @author Chuck Hagenbuch <chuck@horde.org> 13 * @since IMP 4.0 14 * @package Horde_Notification 15 */ 16 class Notification_Listener_status_imp extends Notification_Listener_status { 17 18 /** 19 * Constructor 20 */ 21 function Notification_Listener_status_imp() 22 { 23 parent::Notification_Listener_status(); 24 $this->_handles['imp.reply'] = true; 25 $this->_handles['imp.forward'] = true; 26 $this->_handles['imp.redirect'] = true; 27 } 28 29 /** 30 * Outputs one message if it's an IMP message or calls the parent 31 * method otherwise. 32 * 33 * @param array $message One message hash from the stack. 34 */ 35 function getMessage($message) 36 { 37 $event = $this->getEvent($message); 38 switch ($message['type']) { 39 case 'imp.reply': 40 return '<p class="notice">' . Horde::img('mail_answered.png') . ' ' . $event->getMessage() . '</p>'; 41 42 case 'imp.forward': 43 case 'imp.redirect': 44 return '<p class="notice">' . Horde::img('mail_forwarded.png') . ' ' . $event->getMessage() . '</p>'; 45 } 46 47 return parent::getMessage($message); 48 } 49 50 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 12:30:07 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |