aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 16:48:24 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 16:48:24 +0000
commit43e89eedf4faff3ee13973caebc2714736d5b362 (patch)
tree2c1bd0fc3c395b310d34b4dd83e1615bd23a4382 /engine/classes
parentca03d831fc65cd4ca669de7785dd3fff30bd33f1 (diff)
downloadelgg-43e89eedf4faff3ee13973caebc2714736d5b362.tar.gz
elgg-43e89eedf4faff3ee13973caebc2714736d5b362.tar.bz2
using setPrivateSetting() and getPrivateSetting() instead of procedural functions
git-svn-id: http://code.elgg.org/elgg/trunk@8031 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggPlugin.php4
-rw-r--r--engine/classes/ElggWidget.php8
2 files changed, 6 insertions, 6 deletions
diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php
index 1b9be3ec1..731875755 100644
--- a/engine/classes/ElggPlugin.php
+++ b/engine/classes/ElggPlugin.php
@@ -765,7 +765,7 @@ class ElggPlugin extends ElggObject {
// No, so see if its in the private data store.
// get_private_setting() returns false if it doesn't exist
- $meta = get_private_setting($this->guid, $name);
+ $meta = $this->getPrivateSetting($name);
if ($meta === false) {
// Can't find it, so return null
@@ -794,7 +794,7 @@ class ElggPlugin extends ElggObject {
return true;
} else {
- return set_private_setting($this->guid, $name, $value);
+ return $this->setPrivateSetting($name, $value);
}
}
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');
}
/**