]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/filter/update/class_UserUpdateFilter.php
More conventions than code added:
[shipsimu.git] / inc / classes / main / filter / update / class_UserUpdateFilter.php
index b8f598f2d13c50e6b613dde077c0eb690e72b160..5f91bb0e6880495fdb03d1e6fd55261dfc096469 100644 (file)
@@ -5,7 +5,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, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -62,16 +62,18 @@ class UserUpdateFilter extends BaseFrameworkSystem implements Filterable {
         * @param       $requestInstance        An instance of a class with an Requestable interface
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
+        * @todo        Add more user updates here
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get user instance from registry
                $userInstance = Registry::getRegistry()->getInstance('user');
 
                // Now update last activity
-               $userInstance->updateLastActivity();
+               $userInstance->updateLastActivity($requestInstance);
 
                // Update auth data as well
-               /* @TODO Add more user updates here */
+               $authInstance = Registry::getRegistry()->getInstance('auth');
+               $authInstance->updateAuthData();
 
                // Write all updates to the database
                $userInstance->flushUpdates();