diff options
author | Urban Müller | 2010-03-04 19:42:30 +0000 |
---|---|---|
committer | Urban Müller | 2010-03-04 19:42:30 +0000 |
commit | 226098dbf14fc5921d26767721fdde5aecbecf45 (patch) | |
tree | 3618c8448a8b73c4d2d4e6040dffc93f5866b208 /it_xml.class | |
parent | 40e91838f56c0c7ce250b757fe7794598f98330c (diff) | |
download | itools-226098dbf14fc5921d26767721fdde5aecbecf45.tar.gz itools-226098dbf14fc5921d26767721fdde5aecbecf45.tar.bz2 itools-226098dbf14fc5921d26767721fdde5aecbecf45.zip |
get prefix from parent classname
Diffstat (limited to 'it_xml.class')
-rw-r--r-- | it_xml.class | 4 |
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 {}"); |