Changeset 19
- Timestamp:
- 08/28/06 16:31:49 (2 years ago)
- Files:
-
- trunk/XJConf/DefinitionParser.php (modified) (4 diffs)
- trunk/XJConf/definitions/handler/AttributeDefinitionHandler.php (modified) (1 diff)
- trunk/XJConf/definitions/handler/CDataDefinitionHandler.php (modified) (1 diff)
- trunk/XJConf/definitions/handler/ChildDefinitionHandler.php (modified) (1 diff)
- trunk/XJConf/definitions/handler/ConstructorDefinitionHandler.php (modified) (1 diff)
- trunk/XJConf/definitions/handler/DefinitionHandler.php (modified) (1 diff)
- trunk/XJConf/definitions/handler/EmptyDefinitionHandler.php (modified) (1 diff)
- trunk/XJConf/definitions/handler/FactoryMethodDefinitionHandler.php (modified) (1 diff)
- trunk/XJConf/definitions/handler/TagDefinitionHandler.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/XJConf/DefinitionParser.php
r17 r19 36 36 * @var array<Definition> 37 37 */ 38 private $defStack = array();38 private $defStack = array(); 39 39 /** 40 40 * stack for currently opened definition handlers … … 46 46 * Constant for the default namespace 47 47 */ 48 const DEFAULT_NAMESPACE = '__default';48 const DEFAULT_NAMESPACE = '__default'; 49 49 /** 50 50 * The current namespace … … 70 70 * @var array 71 71 */ 72 private $nodeTypes = array();72 private $nodeTypes = array(); 73 73 74 74 /** … … 167 167 $this->startElement($nameSpaceURI, $elementName, $attributes); 168 168 if (true === $empty) { 169 $this->endElement($ this->reader->namespaceURI, $this->reader->localName);169 $this->endElement($nameSpaceURI, $elementName); 170 170 } 171 171 break; trunk/XJConf/definitions/handler/AttributeDefinitionHandler.php
r14 r19 93 93 // nothing to do here 94 94 } 95 96 /**97 * whether the handler has to handle the end element98 *99 * @return bool100 */101 public function needsEnd()102 {103 return false;104 }105 95 } 106 96 ?> trunk/XJConf/definitions/handler/CDataDefinitionHandler.php
r11 r19 77 77 } 78 78 } 79 80 /**81 * whether the handler has to handle the end element82 *83 * @return bool84 */85 public function needsEnd()86 {87 return true;88 }89 79 } 90 80 ?> trunk/XJConf/definitions/handler/ChildDefinitionHandler.php
r11 r19 72 72 } 73 73 } 74 75 /**76 * whether the handler has to handle the end element77 *78 * @return bool79 */80 public function needsEnd()81 {82 return true;83 }84 74 } 85 75 ?> trunk/XJConf/definitions/handler/ConstructorDefinitionHandler.php
r11 r19 66 66 } 67 67 } 68 69 /**70 * whether the handler has to handle the end element71 *72 * @return bool73 */74 public function needsEnd()75 {76 return true;77 }78 68 } 79 69 ?> trunk/XJConf/definitions/handler/DefinitionHandler.php
r11 r19 42 42 */ 43 43 public function endElement($namespaceURI, $sName); 44 45 /**46 * whether the handler has to handle the end element47 *48 * @return bool49 */50 public function needsEnd();51 44 } 52 45 ?> trunk/XJConf/definitions/handler/EmptyDefinitionHandler.php
r11 r19 49 49 // nothing to do 50 50 } 51 52 /**53 * whether the handler has to handle the end element54 *55 * @return bool56 */57 public function needsEnd()58 {59 return true;60 }61 51 } 62 52 ?> trunk/XJConf/definitions/handler/FactoryMethodDefinitionHandler.php
r11 r19 73 73 } 74 74 } 75 76 /**77 * whether the handler has to handle the end element78 *79 * @return bool80 */81 public function needsEnd()82 {83 return true;84 }85 75 } 86 76 ?> trunk/XJConf/definitions/handler/TagDefinitionHandler.php
r14 r19 111 111 $nsDef->addTagDefinition($def); 112 112 } 113 114 /**115 * whether the handler has to handle the end element116 *117 * @return bool118 */119 public function needsEnd()120 {121 return true;122 }123 113 } 124 114 ?>
