X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fresolver%2Fcommand%2Fclass_BaseCommandResolver.php;h=53775f6b9958def3cfd44500b8cc8767ad57ee5c;hb=e51607c0f33062258ba0a07b79b8e1f34fd6b832;hp=fa19bbb5e459c4b16ddea46ac6d4567c7326869d;hpb=1d63a74abdafb0f8b6aabe727a37bddd1633300e;p=core.git diff --git a/inc/classes/main/resolver/command/class_BaseCommandResolver.php b/inc/classes/main/resolver/command/class_BaseCommandResolver.php index fa19bbb5..53775f6b 100644 --- a/inc/classes/main/resolver/command/class_BaseCommandResolver.php +++ b/inc/classes/main/resolver/command/class_BaseCommandResolver.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -22,11 +22,6 @@ * along with this program. If not, see . */ class BaseCommandResolver extends BaseResolver { - /** - * Prefix for local, remote or other resolver - */ - private $commandPrefix = ''; - /** * Validated command name */ @@ -43,25 +38,6 @@ class BaseCommandResolver extends BaseResolver { parent::__construct($className); } - /** - * Getter for command prefix - * - * @return $commandPrefix Last validated commandPrefix - */ - protected final function getCommandPrefix () { - return $this->commandPrefix; - } - - /** - * Setter for command prefix - * - * @param $commandPrefix Last validated commandPrefix - * @return void - */ - protected final function setCommandPrefix ($commandPrefix) { - $this->commandPrefix = $commandPrefix; - } - /** * Setter for command name * @@ -99,7 +75,7 @@ class BaseCommandResolver extends BaseResolver { } // END - if // Create the full class name - $className = $this->commandPrefix . $this->convertToClassName($commandName) . 'Command'; + $className = $this->getClassPrefix() . $this->convertToClassName($commandName) . 'Command'; // Now, let us create the full name of the command class $this->setClassName($className);