aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-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);