9 * This source file is subject to the new BSD license that is bundled
10 * with this package in the file LICENSE.
11 * It is also available through the world-wide-web at this URL:
12 * http://phergie.org/license
15 * @package Phergie_Plugin_Pong
16 * @author Phergie Development Team <team@phergie.org>
17 * @copyright 2008-2010 Phergie Development Team (http://phergie.org)
18 * @license http://phergie.org/license New BSD License
19 * @link http://pear.phergie.org/package/Phergie_Plugin_Pong
23 * Responds to PING requests from the server.
26 * @package Phergie_Plugin_Pong
27 * @author Phergie Development Team <team@phergie.org>
28 * @license http://phergie.org/license New BSD License
29 * @link http://pear.phergie.org/package/Phergie_Plugin_Pong
30 * @link http://irchelp.org/irchelp/rfc/chapter4.html#c4_6_2
31 * @link http://irchelp.org/irchelp/rfc/chapter4.html#c4_6_3
33 class Phergie_Plugin_Pong extends Phergie_Plugin_Abstract
36 * Sends a PONG response for each PING request received by the server.
40 public function onPing()
42 $this->doPong($this->getEvent()->getArgument(0));