]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/login/helper/class_ShipSimuLoginHelper.php
'public static final' is correct
[shipsimu.git] / application / ship-simu / main / login / helper / class_ShipSimuLoginHelper.php
index a4bebd6589c2ef204f989081a5ed7b0ce21e6ce2..cc9098ce7a9ee1fd7d4744656234f5bff17e3ced 100644 (file)
@@ -12,7 +12,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -36,7 +36,7 @@ class ShipSimuLoginHelper extends BaseLoginHelper implements HelpableLogin {
        private $authMethod = "";
 
        // Exception constants
-       const EXCEPTION_INVALID_USER_INSTANCE = 0x900;
+       const EXCEPTION_INVALID_USER_INSTANCE = 0x190;
 
        /**
         * Protected constructor
@@ -46,12 +46,6 @@ class ShipSimuLoginHelper extends BaseLoginHelper implements HelpableLogin {
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
-
-               // Set part description
-               $this->setObjectDescription("Login helper for Ship-Simu");
-
-               // Create unique ID number
-               $this->generateUniqueId();
        }
 
        /**
@@ -62,7 +56,7 @@ class ShipSimuLoginHelper extends BaseLoginHelper implements HelpableLogin {
         * @throws      UserInstanceMissingException    If the user instance in registry
         *                                                                                      is missing or invalid
         */
-       public final static function createShipSimuLoginHelper (Requestable $requestInstance) {
+       public static final function createShipSimuLoginHelper (Requestable $requestInstance) {
                // Get a new instance first
                $helperInstance = new ShipSimuLoginHelper();
 
@@ -91,7 +85,7 @@ class ShipSimuLoginHelper extends BaseLoginHelper implements HelpableLogin {
         * @return      void
         */
        protected function setDefaultAuthMethod () {
-               $this->authMethod = $this->getConfigInstance()->readConfig('auth_method_class');
+               $this->authMethod = $this->getConfigInstance()->getConfigEntry('auth_method_class');
        }
 
        /**