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
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
23 * Connection data processor which reads all connections looking
28 * @author Phergie Development Team <team@phergie.org>
29 * @license http://phergie.org/license New BSD License
30 * @link http://pear.phergie.org/package/Phergie
32 class Phergie_Process_Standard extends Phergie_Process_Abstract
35 * Obtains and processes incoming events, then sends resulting outgoing
40 public function handleEvents()
42 foreach ($this->connections as $connection) {
43 $this->driver->setConnection($connection);
44 $this->plugins->setConnection($connection);
45 $this->plugins->onTick();
47 if ($event = $this->driver->getEvent()) {
48 $this->ui->onEvent($event, $connection);
49 $this->plugins->setEvent($event);
50 $this->plugins->preEvent();
51 $this->plugins->{'on' . ucfirst($event->getType())}();
54 $this->processEvents($connection);