Exemplo n.º 1
0
 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;
 }
Exemplo 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);
 }