aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-19 19:48:32 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-19 19:48:32 +0000
commitf8b8e83d2210d3d6601e61b291df38a078a95093 (patch)
tree4c943d3cae1652ddab976d0733c027d4af2f710c /engine
parenta7e2dcecb603734d2c47ffa506e91a2d3ae77253 (diff)
downloadelgg-f8b8e83d2210d3d6601e61b291df38a078a95093.tar.gz
elgg-f8b8e83d2210d3d6601e61b291df38a078a95093.tar.bz2
Base private setting functions, commit 2
git-svn-id: https://code.elgg.org/elgg/trunk@2466 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 05f8f9dcd..cd867193d 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -311,6 +311,18 @@
remove_entity_relationships($this->getGUID());
remove_entity_relationships($this->getGUID(),"",true);
return true;
+ }
+
+ function setPrivateSetting($name, $value) {
+ return set_private_setting($this->getGUID(), $name, $value);
+ }
+
+ function getPrivateSetting($name) {
+ return get_private_setting($this->getGUID(), $name);
+ }
+
+ function removePrivateSetting($name) {
+ return remove_private_setting($this->getGUID(), $name);
}
/**
@@ -2166,6 +2178,7 @@
function set_private_setting($entity_guid, $name, $value) {
global $CONFIG;
+ remove_private_setting($entity_guid, $name);
$entity_guid = (int) $entity_guid;
$name = mysql_real_escape_string($name);
$value = mysql_real_escape_string($value);