Removed
authorRoland Häder <roland@mxchange.org>
Sat, 6 Dec 2008 21:36:58 +0000 (21:36 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 6 Dec 2008 21:36:58 +0000 (21:36 +0000)
.gitattributes
application/ship-simu/main/government/class_SimplifiedGoverment.php [deleted file]

index a2bece54172e1fc30ad0aa185bbfde53f7fed933..e084ff10d8f22cc9c97e8867972cd3e08a0e8440 100644 (file)
@@ -128,7 +128,6 @@ application/ship-simu/main/filter/validator/class_RefillRequestValidatorFilter.p
 application/ship-simu/main/filter/verifier/.htaccess -text
 application/ship-simu/main/filter/verifier/class_BirthdayVerifierFilter.php -text
 application/ship-simu/main/government/.htaccess -text
 application/ship-simu/main/filter/verifier/.htaccess -text
 application/ship-simu/main/filter/verifier/class_BirthdayVerifierFilter.php -text
 application/ship-simu/main/government/.htaccess -text
-application/ship-simu/main/government/class_SimplifiedGoverment.php -text
 application/ship-simu/main/government/class_SimplifiedGovernment.php -text
 application/ship-simu/main/login/.htaccess -text
 application/ship-simu/main/login/class_ShipSimuGuestLogin.php -text
 application/ship-simu/main/government/class_SimplifiedGovernment.php -text
 application/ship-simu/main/login/.htaccess -text
 application/ship-simu/main/login/class_ShipSimuGuestLogin.php -text
diff --git a/application/ship-simu/main/government/class_SimplifiedGoverment.php b/application/ship-simu/main/government/class_SimplifiedGoverment.php
deleted file mode 100644 (file)
index 7f122d4..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-/**
- * A goverment class with simplified ways...
- *
- * @author             Roland Haeder <webmaster@ship-simu.org>
- * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
- * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
- * @todo               Find an interface for goverments
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-class SimplifiedGoverment extends BaseFrameworkSystem implements Registerable {
-       // Constants
-       const STATUS_STARTER_HELP = "STARTER_HELP";
-
-       /**
-        * Protected constructor
-        *
-        * @return      void
-        */
-       protected function __construct () {
-               // Call parent constructor
-               parent::__construct(__CLASS__);
-
-               // Clean up a little
-               $this->removeSystemArray();
-               $this->removeNumberFormaters();
-       }
-
-       /**
-        * Creates an instance of this goverment class by given user instance
-        *
-        * @param       $userInstance           The user instance
-        * @return      $govermentInstance      Instance of the prepared goverment instance
-        */
-       public final static function createSimplifiedGoverment (ManageableAccount $userInstance) {
-               // Get a new instance
-               $govermentInstance = new SimplifiedGoverment();
-
-               // Set the user instance
-               $govermentInstance->setUserInstance($userInstance);
-
-               // Return the prepared instance
-               return $govermentInstance;
-       }
-
-       /**
-        * Checks wether the goverment has already payed a training course for te
-        * current user
-        *
-        * @return      $alreadyPayed   Wether the goverment has already payed
-        */
-       public function ifGovermentAlreadyPayedTraining () {
-               // Default is not payed
-               $alreadyPayed = false;
-
-               // Now get a search criteria and set the user's name as criteria
-               $criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
-               $criteriaInstance->addCriteria("gov_uid", $this->getUserInstance()->getUserId());
-               $criteriaInstance->addCriteria("gov_activity_status", self::STATUS_STARTER_HELP);
-               $criteriaInstance->setLimit(1);
-
-               // Get a wrapper instance
-               $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_gov_wrapper_class');
-
-               // Get result back
-               $resultInstance = $wrapperInstance->doSelectByCriteria($criteriaInstance);
-
-               // Was the query fine?
-               if ($resultInstance->getAffectedRows() === 1) {
-                       // Entry was found so the goverment can no more pay a training
-                       $alreadyPayed = true;
-               } // END - if
-
-               // Return the result
-               return $alreadyPayed;
-       }
-
-       /**
-        * Checks wether the goverment has payed maximum of startup helps to the
-        * current user
-        *
-        * @return      $maximumPayed   Wether the goverment has already payed
-        */
-       public function ifGovermentPayedMaxmimumStartupHelp () {
-               // Default is not payed
-               $maximumPayed = false;
-
-               // Cache startup help limit
-               $helpLimit = $this->getConfigInstance()->readConfig('goverment_startup_help_limit');
-
-               // Now get a search criteria and set the user's name as criteria
-               $criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
-               $criteriaInstance->addCriteria("gov_uid", $this->getUserInstance()->getUserId());
-               $criteriaInstance->addCriteria("gov_activity_status", self::STATUS_STARTER_HELP);
-               $criteriaInstance->setLimit($helpLimit);
-
-               // Get a wrapper instance
-               $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_gov_wrapper_class');
-
-               // Get result back
-               $resultInstance = $wrapperInstance->doSelectByCriteria($criteriaInstance);
-
-               // Was the query fine?
-               if ($resultInstance->getAffectedRows() === $helpLimit) {
-                       // Entry found, so lets have a look if this goverment wants to again...
-                       $maximumPayed = true;
-               } // END - if
-
-               // Return the result
-               return $maximumPayed;
-       }
-}
-
-// [EOF]
-?>