]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/commands/web/class_WebShipsimuProfileCommand.php
More renamed
[shipsimu.git] / application / ship-simu / main / commands / web / class_WebShipsimuProfileCommand.php
index 3d66614de3c8278a4e23dc9d164a3e2401792bbf..a266f2608212da15d54992ab4311494194e077d0 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A command for profile-update handling
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.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
+ * @link               http://www.shipsimu.org
  *
  * 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
@@ -43,7 +43,10 @@ class WebShipsimuProfileCommand extends BaseCommand implements Commandable {
                'yahoo',
                'aol',
                'msn',
-               'rules'
+               'rules',
+               'birth_day',
+               'birth_month',
+               'birth_year'
        );
 
        /**
@@ -54,10 +57,6 @@ class WebShipsimuProfileCommand extends BaseCommand implements Commandable {
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
-
-               // Clean up a little
-               $this->removeNumberFormaters();
-               $this->removeSystemArray();
        }
 
        /**
@@ -66,7 +65,7 @@ class WebShipsimuProfileCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver
         * @return      $commandInstance        The created command instance
         */
-       public final static function createWebShipsimuProfileCommand (CommandResolver $resolverInstance) {
+       public static final function createWebShipsimuProfileCommand (CommandResolver $resolverInstance) {
                // Get a new instance
                $commandInstance = new WebShipsimuProfileCommand();
 
@@ -127,6 +126,9 @@ class WebShipsimuProfileCommand extends BaseCommand implements Commandable {
                // User status filter
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter'));
 
+               // User status if not 'guest' filter
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_guest_filter'));
+
                // Updated rules accepted
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('rules_accepted_filter'));