diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-19 19:48:32 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-19 19:48:32 +0000 |
commit | f8b8e83d2210d3d6601e61b291df38a078a95093 (patch) | |
tree | 4c943d3cae1652ddab976d0733c027d4af2f710c /engine/lib | |
parent | a7e2dcecb603734d2c47ffa506e91a2d3ae77253 (diff) | |
download | elgg-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/lib')
-rw-r--r-- | engine/lib/entities.php | 13 |
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);
|