Changeset 19

Show
Ignore:
Timestamp:
08/28/06 16:31:49 (2 years ago)
Author:
mikey
Message:

- fix: DefinitionParser? used last attribute namespace and name for calling endElement() instead of the ones of the element
- removed DefinitionHandler::needsEnd()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/XJConf/DefinitionParser.php

    r17 r19  
    3636     * @var  array<Definition> 
    3737     */ 
    38     private $defStack = array(); 
     38    private $defStack        = array(); 
    3939    /** 
    4040     * stack for currently opened definition handlers 
     
    4646     * Constant for the default namespace 
    4747     */ 
    48     const DEFAULT_NAMESPACE = '__default'; 
     48    const DEFAULT_NAMESPACE = '__default'; 
    4949    /** 
    5050     * The current namespace 
     
    7070     * @var  array 
    7171     */ 
    72     private $nodeTypes   = array(); 
     72    private $nodeTypes       = array(); 
    7373 
    7474    /** 
     
    167167                    $this->startElement($nameSpaceURI, $elementName, $attributes); 
    168168                    if (true === $empty) { 
    169                         $this->endElement($this->reader->namespaceURI, $this->reader->localName); 
     169                        $this->endElement($nameSpaceURI, $elementName); 
    170170                    } 
    171171                    break; 
  • trunk/XJConf/definitions/handler/AttributeDefinitionHandler.php

    r14 r19  
    9393        // nothing to do here 
    9494    } 
    95  
    96     /** 
    97      * whether the handler has to handle the end element 
    98      * 
    99      * @return  bool 
    100      */ 
    101     public function needsEnd() 
    102     { 
    103         return false; 
    104     } 
    10595} 
    10696?> 
  • trunk/XJConf/definitions/handler/CDataDefinitionHandler.php

    r11 r19  
    7777        } 
    7878    } 
    79      
    80     /** 
    81      * whether the handler has to handle the end element 
    82      * 
    83      * @return  bool 
    84      */ 
    85     public function needsEnd() 
    86     { 
    87         return true; 
    88     } 
    8979} 
    9080?> 
  • trunk/XJConf/definitions/handler/ChildDefinitionHandler.php

    r11 r19  
    7272        } 
    7373    } 
    74      
    75     /** 
    76      * whether the handler has to handle the end element 
    77      * 
    78      * @return  bool 
    79      */ 
    80     public function needsEnd() 
    81     { 
    82         return true; 
    83     } 
    8474} 
    8575?> 
  • trunk/XJConf/definitions/handler/ConstructorDefinitionHandler.php

    r11 r19  
    6666        } 
    6767    } 
    68      
    69     /** 
    70      * whether the handler has to handle the end element 
    71      * 
    72      * @return  bool 
    73      */ 
    74     public function needsEnd() 
    75     { 
    76         return true; 
    77     } 
    7868} 
    7969?> 
  • trunk/XJConf/definitions/handler/DefinitionHandler.php

    r11 r19  
    4242     */ 
    4343    public function endElement($namespaceURI, $sName); 
    44      
    45     /** 
    46      * whether the handler has to handle the end element 
    47      * 
    48      * @return  bool 
    49      */ 
    50     public function needsEnd(); 
    5144} 
    5245?> 
  • trunk/XJConf/definitions/handler/EmptyDefinitionHandler.php

    r11 r19  
    4949        // nothing to do 
    5050    } 
    51      
    52     /** 
    53      * whether the handler has to handle the end element 
    54      * 
    55      * @return  bool 
    56      */ 
    57     public function needsEnd() 
    58     { 
    59         return true; 
    60     } 
    6151} 
    6252?> 
  • trunk/XJConf/definitions/handler/FactoryMethodDefinitionHandler.php

    r11 r19  
    7373        } 
    7474    } 
    75      
    76     /** 
    77      * whether the handler has to handle the end element 
    78      * 
    79      * @return  bool 
    80      */ 
    81     public function needsEnd() 
    82     { 
    83         return true; 
    84     } 
    8575} 
    8676?> 
  • trunk/XJConf/definitions/handler/TagDefinitionHandler.php

    r14 r19  
    111111        $nsDef->addTagDefinition($def); 
    112112    } 
    113  
    114     /** 
    115      * whether the handler has to handle the end element 
    116      * 
    117      * @return  bool 
    118      */ 
    119     public function needsEnd() 
    120     { 
    121         return true; 
    122     } 
    123113} 
    124114?>