public function onStorageError(IEvent &$oEvent, $args = null)
 {
     //  Le document xml n'existe pas, on en crée un tout neuf
     $xml =& new xmlDocument('caddies');
     $xml->toFile($oEvent->getSource()->getDriver()->getFilepath());
     $oEvent->getSource()->setResource($xml);
 }
 protected function _defaultBehaviour(IEvent $e)
 {
     $msg = '[' . get_class($e->getSource()) . '->' . $e->getName() . '] ' . trim((string) $e->getContext());
     $this->_log->write($msg);
     echo $msg . System::crlf;
 }
Esempio n. 3
0
 public function onTimeout(IEvent &$e, $args = null)
 {
     $e->getSource()->getServer()->removeClient($this);
     $e =& new Event('controlTimeout', $this, $e->getContext());
     $this->dispatch($e);
 }