~ubuntu-branches/ubuntu/oneiric/haxe/oneiric

« back to all changes in this revision

Viewing changes to haxe/std/php/Session.hx

  • Committer: Bazaar Package Importer
  • Author(s): Jens Peter Secher
  • Date: 2010-01-31 23:08:43 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100131230843-1cxte2x20ypk9c25
Tags: 1:2.5-1
New upstream version, taken from new upstream subversion repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/**
3
3
* TODO: TEST IT!
4
4
*/
5
 
class Session { 
 
5
class Session {
6
6
        public static function getCacheLimiter() {
7
7
                switch(untyped __call__("session_cache_limiter")) {
8
8
                        case "public":
15
15
                                return PrivateNoExpire;
16
16
                }
17
17
                return null;
18
 
        }       
 
18
        }
19
19
        
20
20
        public static function setCacheLimiter(l : CacheLimiter) {
21
21
                if(_started) throw "You can't set the cache limiter while the session is already in use";
122
122
                untyped __call__("session_start");
123
123
        }
124
124
        
125
 
        public function clear() {
 
125
        public static function clear() {
126
126
                untyped __call__("session_unset");
127
127
        }
128
128
        
129
 
        public function close() {
 
129
        public static function close() {
130
130
                untyped __call__("session_write_close");
131
131
                _started = false; // TODO: not sure this useful; test if a closed session can be re-opened (I doubt)
132
132
        }