]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/resolver/command/class_BaseCommandResolver.php
Host name fixed (a redirect causes an error), duplicate code rewrriten to be more...
[core.git] / inc / classes / main / resolver / command / class_BaseCommandResolver.php
index 6bef7f05a19679d76b25bedc475e6d143ded2250..02d09ccd324725b600e5c90fd44e6cba8f798de3 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 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->getCommandPrefix() . $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);