summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2010-03-04 19:42:30 +0000
committerUrban Müller2010-03-04 19:42:30 +0000
commit226098dbf14fc5921d26767721fdde5aecbecf45 (patch)
tree3618c8448a8b73c4d2d4e6040dffc93f5866b208
parent40e91838f56c0c7ce250b757fe7794598f98330c (diff)
downloaditools-226098dbf14fc5921d26767721fdde5aecbecf45.tar.gz
itools-226098dbf14fc5921d26767721fdde5aecbecf45.tar.bz2
itools-226098dbf14fc5921d26767721fdde5aecbecf45.zip
get prefix from parent classname
-rw-r--r--it_xml.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it_xml.class b/it_xml.class
index 7dd82c7..d22dc23 100644
--- a/it_xml.class
+++ b/it_xml.class
@@ -334,11 +334,13 @@ function error()
function set($vals)
{
+ $prefix = it::match(".*_", get_class($this));
+
if (is_array($vals))
{
foreach ($vals as $key => $val)
{
- $classname = $this->_p['prefix'] . $this->_make_identifier($key);
+ $classname = $prefix . $this->_make_identifier($key);
if (!class_exists($classname))
eval("class $classname extends it_xml {}");