public static function load()
 {
     $modeler = static::$modeler;
     if (SessionAuthority::isCookieValid() && SessionModeler::exists(SessionModeler::model()->session_id, 'session_id')) {
         $modeler::exists(SessionStore::get('user_id'), 'id');
     }
 }
 public static function login($_model = null)
 {
     $modeler = static::$modeler;
     $_model == null ? forward_static_call_array(array($modeler, 'model'), array()) : forward_static_call_array(array($modeler, 'model'), array($_model));
     $modeler::model()->updateField($time === false ? time() : $time, 'last_sign_in');
     SessionModeler::model()->updateField($modeler::model()->email, 'name');
     SessionStore::set('user_id', $modeler::model()->id, false);
     SessionStore::set('name', $modeler::model()->name, false);
     SessionStore::set('role_id', $modeler::model()->role_id, false);
     return $modeler::model();
 }