diff options
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 91314a882..8e28d4f52 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -2170,6 +2170,29 @@ }
return false;
+ } + + /** + * Return an array of all private settings for a given + * + * @param int $entity_guid The entity GUID + */ + function get_all_private_settings($entity_guid) { + global $CONFIG; + + $entity_guid = (int) $entity_guid; + + $result = get_data("select * from {$CONFIG->prefix}private_settings where entity_guid = {$entity_guid}"); + if ($result) + { + $return = array(); + foreach ($result as $r) + $return[$r->name] = $r->value; + + return $return; + } + + return false; }
/**
|