Changeset 137 for branches

Show
Ignore:
Timestamp:
05/22/08 15:55:00 (4 months ago)
Author:
mikey
Message:

added XmlParser::clearConfigValues()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/PRE_NAMESPACES/XJConf/XJConfFacade.php

    r131 r137  
    211211        return $this->xmlParser->getConfigValues(); 
    212212    } 
     213 
     214    /** 
     215     * clears parsed config values 
     216     */ 
     217    public function clearConfigValues() 
     218    { 
     219        if (null == $this->xmlParser) { 
     220            throw new XJConfException('Invalid state: needs to parse first.'); 
     221        } 
     222         
     223        $this->xmlParser->clearConfigValues(); 
     224    } 
    213225} 
    214226?> 
  • branches/PRE_NAMESPACES/XJConf/XmlParser.php

    r131 r137  
    218218 
    219219    /** 
     220     * clears parsed config values 
     221     */ 
     222    public function clearConfigValues() 
     223    { 
     224        $this->config = array(); 
     225    } 
     226 
     227    /** 
    220228     * returns the name of the file that is currently parsed 
    221229     * 
  • branches/PRE_NAMESPACES/package.php

    r136 r137  
    4545- changed package separator from dot to Paamayim Nekudotayim (mikey) 
    4646- added support for octal numbers (mikey) 
     47- added XmlParser::clearConfigValues() (mikey) 
    4748EOT; 
    4849