parent::__construct(__CLASS__);
// Set prefix to "Image"
- $this->setCommandPrefix("Image");
+ $this->setCommandPrefix('Image');
}
/**
$commandName = $requestInstance->getRequestElement('page');
// Is the command empty? Then fall back to default command
- if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_image_command');
+ if (empty($commandName)) $commandName = $this->getConfigInstance()->getConfigEntry('default_image_command');
// Check if command is valid
if ($this->isCommandValid($commandName) === false) {
$commandInstance = null;
// Is the command empty? Then fall back to default command
- if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_image_command');
+ if (empty($commandName)) $commandName = $this->getConfigInstance()->getConfigEntry('default_image_command');
// Check if command is valid
if ($this->isCommandValid($commandName) === false) {
$commandInstance = null;
// Create class name
- $className = 'Image' . $this->convertToClassName($commandName) . 'Command';
+ $className = $this->getCommandPrefix() . $this->convertToClassName($commandName) . 'Command';
// Is this class loaded?
if (!class_exists($this->getClassName())) {