]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Adding alias ElggSession methods
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 7 Dec 2009 20:45:01 +0000 (20:45 +0000)
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 7 Dec 2009 20:45:01 +0000 (20:45 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3739 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/sessions.php

index 5edf374b0143d8571bb10d0b143e80e2680d74a5..f6758425a9f554a55e03131f2dc714ce506ea231 100644 (file)
@@ -92,6 +92,20 @@ class ElggSession implements ArrayAccess {
                        return true;
                }
        }
+       
+       
+       // Alias functions
+       function get($key) {
+               return $this->offsetGet($key);
+       }
+       
+       function set($key, $value) {
+               return $this->offsetSet($key, $value);
+       }
+       
+       function del($key) {
+               return $this->offsetUnset($key);
+       }
 }