Merge branch 'master' of http://git.syncroton.org/Syncroton into 2013.03
[tine20] / tests / js_client / LogWriter.php
1 <?php
2 require_once 'Zend/Log/Writer/Abstract.php';
3
4 class LogWriter extends Zend_Log_Writer_Abstract
5 {
6     protected $_selenium;
7     
8     public function __construct($_selenium)
9     {
10         $this->_selenium = $_selenium;
11     }
12     
13     /**
14      * Write a message to the log.
15      *
16      * @param  array  $event  event data
17      * @return void
18      */
19     protected function _write($event)
20     {
21         $this->_selenium->getEval("window.Ext.ux.MessageBox.msg('{$event['priorityName']}', '{$event['message']}')");
22     }
23 }