| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * base include file for eclipse plugin 4 * @package SimpleTest 5 * @version $Id$ 6 */ 7 include_once "xml.php"; 8 include_once "invoker.php"; 9 include_once "socket.php"; 10 class EclipseReporter extends XmlReporter { 11 var $_port; 12 function EclipseReporter($port){ 13 $this->_port = $port; 14 $this->XmlReporter(); 15 } 16 17 function &createInvoker(&$invoker){ 18 $eclinvoker = &new EclipseInvoker($invoker, $this->_port); 19 return $eclinvoker; 20 } 21 22 function paintMethodStart($method) { 23 parent::paintGroupStart($this->_group, $this->_size); 24 parent::paintCaseStart($this->_case); 25 parent::paintMethodStart($method); 26 } 27 28 function paintMethodEnd($method){ 29 parent::paintMethodEnd($method); 30 parent::paintCaseEnd($this->_case); 31 parent::paintGroupEnd($this->_group); 32 33 } 34 35 function paintCaseStart($case){ 36 $this->_case = $case; 37 } 38 39 function paintCaseEnd($case){ 40 $this->_case = ""; 41 } 42 function paintGroupStart($group,$size){ 43 $this->_group = $group; 44 } 45 function paintGroupEnd($group){ 46 $this->_group = ""; 47 } 48 } 49 50 class EclipseInvoker extends SimpleInvokerDecorator{ 51 var $_port; 52 function EclipseInvoker(&$invoker,$port) { 53 $this->_port = $port; 54 $this->SimpleInvokerDecorator($invoker); 55 } 56 57 function invoke($method) { 58 ob_start(); 59 parent::invoke($method); 60 $output = ob_get_contents(); 61 ob_end_clean(); 62 63 $sock = new SimpleSocket("127.0.0.1",$this->_port,5); 64 $sock->write($output); 65 $sock->close(); 66 echo $sock->getError(); 67 } 68 } 69 70 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |