From 5e3bb33edd612d84e071dbad3d29866b8bacbb7c Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 6 Feb 2007 16:59:49 +0000 Subject: Make created classes extend my_xml instead of it_xml --- xml.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3