From 2dbf5aad22164b73be4bbafdb0bb230947762e80 Mon Sep 17 00:00:00 2001 From: nickw Date: Mon, 7 Dec 2009 20:45:01 +0000 Subject: Adding alias ElggSession methods git-svn-id: http://code.elgg.org/elgg/trunk@3739 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/sessions.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'engine') diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php index 5edf374b0..f6758425a 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -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); + } } -- cgit v1.2.3