Beispiel #1
0
 public static function anonymous()
 {
     if ($cached = JsonStore::cached('User', 'anonymous')) {
         return $cached;
     }
     return JsonStore::setCached('User', 'anonymous', self::create((object) array("name" => "anonymous", "username" => $_SERVER['REMOTE_ADDR'])));
 }