//* DEBUG: */ echo "START: >".$element."<<br />\n";
if (in_array($element, $this->mainNodes)) {
// Okay, main node found!
- $methodName = 'setImage' . $this->convertToClassName($element);
+ $methodName = 'setImage' . self::convertToClassName($element);
} elseif (in_array($element, $this->subNodes)) {
// Sub node found
- $methodName = 'setImageProperty' . $this->convertToClassName($element);
+ $methodName = 'setImageProperty' . self::convertToClassName($element);
} elseif ($element != 'image') {
// Invalid node name found
throw new InvalidXmlNodeException(array($this, $element, $attributes), XmlParser::EXCEPTION_XML_NODE_UNKNOWN);
}
// Construct method name
- $methodName = 'finish' . $this->convertToClassName($nodeName);
+ $methodName = 'finish' . self::convertToClassName($nodeName);
// Call the corresponding method
call_user_func_array(array($this->getImageInstance(), $methodName), array());
$imageType = $this->compileRawCode($imageType);
// Now make a class name of it
- $className = $this->convertToClassName($imageType.'_image');
+ $className = self::convertToClassName($imageType.'_image');
// And try to initiate it
$this->setImageInstance(ObjectFactory::createObjectByName($className, array($this)));