*/
public function getValueField ($fieldName) {
// Get the field value
- $fieldValue = call_user_func_array(array($this->valueInstance, 'getField'), array($fieldName));
+ $fieldValue = call_user_func_array($this->valueInstance->__toString() . '::getField', array($fieldName));
// Return it
return $fieldValue;
} // END - if
// Create the full class name
- $className = $this->commandPrefix . $this->convertToClassName($commandName) . 'Command';
+ $className = $this->getCommandPrefix() . $this->convertToClassName($commandName) . 'Command';
// Now, let us create the full name of the command class
$this->setClassName($className);
if ($this->isCommandValid($commandName) === false) {
// This command is invalid!
throw new InvalidCommandException(array($this, $commandName), self::EXCEPTION_INVALID_COMMAND);
- }
+ } // END - if
// Get the command
$commandInstance = $this->loadCommand($commandName);
// Init command instance
$commandInstance = null;
- // Create class name
- $className = $this->getCommandPrefix() . $this->convertToClassName($commandName) . 'Command';
-
- // Create command class name
- $this->setClassName($className);
-
// Is this class loaded?
if (!class_exists($this->getClassName())) {
// Class not found, so throw an exception
// Now parse the XML tree
if (!xml_parse($xmlParser, $content)) {
// Error found in XML!
- //die('<pre>'.htmlentities($content).'</pre>');
+ //* DEBUG: */ die('<pre>'.htmlentities($content).'</pre>');
throw new XmlParserException(array($this, $xmlParser), BaseHelper::EXCEPTION_XML_PARSER_ERROR);
} // END - if