summaryrefslogtreecommitdiff
path: root/xml.class
diff options
context:
space:
mode:
authorChristian Schneider2007-02-06 16:59:49 +0000
committerChristian Schneider2007-02-06 16:59:49 +0000
commit5e3bb33edd612d84e071dbad3d29866b8bacbb7c (patch)
tree907c90ac9b39e63214df9739d11f1e94b3a52891 /xml.class
parentdb733f40091ce8675b53143dc461b310fc147290 (diff)
downloaditools-5e3bb33edd612d84e071dbad3d29866b8bacbb7c.tar.gz
itools-5e3bb33edd612d84e071dbad3d29866b8bacbb7c.tar.bz2
itools-5e3bb33edd612d84e071dbad3d29866b8bacbb7c.zip
Make created classes extend my_xml instead of it_xml
Diffstat (limited to 'xml.class')
-rw-r--r--xml.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/xml.class b/xml.class
index 8b0042a..1aa03a1 100644
--- a/xml.class
+++ b/xml.class
@@ -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);