| [ Index ] |
PHP Cross Reference of Web Application Component Toolkit |
[Summary view] [Print] [Text view]
1 <?php 2 //-------------------------------------------------------------------------------- 3 // Copyright 2003 Procata, Inc. 4 // Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html) 5 //-------------------------------------------------------------------------------- 6 /** 7 * @package WACT_TEMPLATE 8 * @version $Id: basesaxfilter.inc.php,v 1.18 2004/07/25 18:50:47 jeffmoore Exp $ 9 */ 10 //-------------------------------------------------------------------------------- 11 /** 12 * BaseSaxFilter - handler methods are declared so concrete SaxFilters 13 * do not need to explicity declare them when not required. 14 * @see http://wact.sourceforge.net/index.php/BaseSaxFilter 15 * @access public 16 * @package WACT_TEMPLATE 17 * @abstract 18 */ 19 class BaseSaxFilter { 20 21 /** 22 * Child Sax filter 23 * @var object subclass of BaseSaxFilter 24 * @access public 25 */ 26 var $ChildSaxFilter; 27 28 /** 29 * @param BaseSaxFilter Next Filter in the Chain 30 * @return void 31 * @access public 32 */ 33 function setChildSaxFilter(&$SaxFilter) { 34 $this->ChildSaxFilter =& $SaxFilter; 35 } 36 37 /** 38 * @param Locator interface for determining location in source file 39 * @return void 40 * @access public 41 */ 42 function setDocumentLocator(&$locator) { 43 $this->ChildSaxFilter->setDocumentLocator($locator); 44 } 45 46 /** 47 * Sax Open Handler 48 * @param string tag name 49 * @param array attributes 50 * @return void 51 * @access private 52 */ 53 function startElement($tag, $attrs) { 54 $this->ChildSaxFilter->startElement($tag, $attrs); 55 } 56 57 /** 58 * Sax Close Handler 59 * @param string tag name 60 * @return void 61 * @access private 62 */ 63 function endElement($tag) { 64 $this->ChildSaxFilter->endElement($tag); 65 } 66 67 /** 68 * Sax Open Handler 69 * @param string tag name 70 * @param array attributes 71 * @return void 72 * @access private 73 */ 74 function emptyElement($tag, $attrs) { 75 $this->ChildSaxFilter->emptyElement($tag, $attrs); 76 } 77 78 /** 79 * Sax Data Handler 80 * @param string text content in tag 81 * @return void 82 * @access private 83 */ 84 function characters($text) { 85 $this->ChildSaxFilter->characters($text); 86 } 87 88 /** 89 * Sax cdata Handler 90 * @param string text content in tag 91 * @return void 92 * @access private 93 */ 94 function cdata($text) { 95 $this->ChildSaxFilter->cdata($text); 96 } 97 98 /** 99 * Sax Processing Instruction Handler 100 * @param string target processor (e.g. php) 101 * @param string text content in PI 102 * @return void 103 * @access private 104 */ 105 function processingInstruction($target, $instruction) { 106 $this->ChildSaxFilter->processingInstruction($target, $instruction); 107 } 108 109 /** 110 * Sax XML Escape Handler 111 * @param string text content in escape 112 * @return void 113 * @access private 114 */ 115 function escape($text) { 116 $this->ChildSaxFilter->escape($text); 117 } 118 119 /** 120 * Sax XML Comment Handler 121 * @param string text content in comment 122 * @return void 123 * @access private 124 */ 125 function comment($text) { 126 $this->ChildSaxFilter->comment($text); 127 } 128 129 /** 130 * Sax doctype Handler 131 * @param string text content in doctype 132 * @return void 133 * @access private 134 */ 135 function doctype($text) { 136 $this->ChildSaxFilter->doctype($text); 137 } 138 139 /** 140 * Sax XML Jasp Handler 141 * @param string text content in JASP block 142 * @return void 143 * @access private 144 */ 145 function jasp($text) { 146 $this->ChildSaxFilter->jasp($text); 147 } 148 149 /** 150 * Sax EOF Handler 151 * @param string text content in tag 152 * @return void 153 * @access private 154 */ 155 function unexpectedEOF($text) { 156 $this->ChildSaxFilter->unexpectedEOF($text); 157 } 158 159 /** 160 * Sax Entity syntax Error Handler 161 * @param string text content in tag 162 * @return void 163 * @access private 164 */ 165 function invalidEntitySyntax($text) { 166 $this->ChildSaxFilter->invalidEntitySyntax($text); 167 } 168 169 /** 170 * Sax Attribute syntax Error Handler 171 * @param string text content in tag 172 * @return void 173 * @access private 174 */ 175 function invalidAttributeSyntax() { 176 $this->ChildSaxFilter->invalidAttributeSyntax(); 177 } 178 179 } 180 181 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sun Nov 28 19:36:09 2004 | Cross-referenced by PHPXref 0.5 |