Show
Ignore:
Timestamp:
09/30/2007 08:10:04 PM (14 months ago)
Author:
xue
Message:

final fixes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tags/3.1.1/demos/time-tracker/protected/App_Code/UserManager.php

    r1400 r2290  
    2828                return 'Guest'; 
    2929        } 
    30          
     30 
    3131        /** 
    3232         * Returns a user instance given the user name. 
     
    5151                } 
    5252        } 
    53          
     53 
    5454        /** 
    5555         * Validates if the username and password are correct. 
     
    6464                return $userDao->validateUser($username, $password); 
    6565        } 
     66 
     67        /** 
     68         * Saves user auth data into a cookie. 
     69         * @param THttpCookie the cookie to receive the user auth data. 
     70         * @since 3.1.1 
     71         */ 
     72        public function saveUserToCookie($cookie) 
     73        { 
     74                // do nothing since we don't support cookie-based auth in this example 
     75        } 
     76 
     77        /** 
     78         * Returns a user instance according to auth data stored in a cookie. 
     79         * @param THttpCookie the cookie storing user authentication information 
     80         * @return TUser the user instance generated based on the cookie auth data, null if the cookie does not have valid auth data. 
     81         * @since 3.1.1 
     82         */ 
     83        public function getUserFromCookie($cookie) 
     84        { 
     85                // do nothing since we don't support cookie-based auth in this example 
     86                return null; 
     87        } 
    6688} 
    6789