From 43e89eedf4faff3ee13973caebc2714736d5b362 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 5 Feb 2011 16:48:24 +0000 Subject: using setPrivateSetting() and getPrivateSetting() instead of procedural functions git-svn-id: http://code.elgg.org/elgg/trunk@8031 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggWidget.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine/classes/ElggWidget.php') diff --git a/engine/classes/ElggWidget.php b/engine/classes/ElggWidget.php index 913dfc2ba..dae61de68 100644 --- a/engine/classes/ElggWidget.php +++ b/engine/classes/ElggWidget.php @@ -35,7 +35,7 @@ class ElggWidget extends ElggObject { } // No, so see if its in the private data store. - $meta = get_private_setting($this->guid, $name); + $meta = $this->getPrivateSetting($name); if ($meta) { return $meta; } @@ -61,7 +61,7 @@ class ElggWidget extends ElggObject { $this->attributes[$name] = $value; } else { - return set_private_setting($this->guid, $name, $value); + return $this->setPrivateSetting($name, $value); } return true; @@ -75,7 +75,7 @@ class ElggWidget extends ElggObject { * @since 1.8.0 */ public function setContext($context) { - return set_private_setting($this->guid, 'context', $context); + return $this->setPrivateSetting('context', $context); } /** @@ -85,7 +85,7 @@ class ElggWidget extends ElggObject { * @since 1.8.0 */ public function getContext() { - return get_private_setting($this->guid, 'context'); + return $this->getPrivateSetting('context'); } /** -- cgit v1.2.3