diff options
author | Christian Schneider | 2007-02-06 16:59:49 +0000 |
---|---|---|
committer | Christian Schneider | 2007-02-06 16:59:49 +0000 |
commit | 5e3bb33edd612d84e071dbad3d29866b8bacbb7c (patch) | |
tree | 907c90ac9b39e63214df9739d11f1e94b3a52891 | |
parent | db733f40091ce8675b53143dc461b310fc147290 (diff) | |
download | itools-5e3bb33edd612d84e071dbad3d29866b8bacbb7c.tar.gz itools-5e3bb33edd612d84e071dbad3d29866b8bacbb7c.tar.bz2 itools-5e3bb33edd612d84e071dbad3d29866b8bacbb7c.zip |
Make created classes extend my_xml instead of it_xml
-rw-r--r-- | xml.class | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -49,6 +49,7 @@ function from_xml($xmldata, $p) $this->_p = $p + array('encoding' => "ISO-8859-1"); $this->_arrayforce = array_flip((array)$this->_p['forcearray']); $this->_stack = array(); + $this->_baseclass = get_class($this); unset($this->error); $parser = xml_parser_create($this->_p['encoding']); xml_set_object($parser, $this); @@ -126,7 +127,7 @@ function start_element($parser, $name, $attrs) $name = $this->_p['prefix'] . $name; if (!class_exists($name)) - eval("class $name extends it_xml {}"); + eval("class $name extends $this->_baseclass {}"); if (!$this->_stack && !$this->_p['factory']) array_unshift($this->_stack, &$this); |