Elgg  Version 2.3
private_settings.php
Go to the documentation of this file.
1 <?php
45  return _elgg_services()->privateSettings->getEntities($options);
46 }
47 
67  return _elgg_services()->privateSettings->get($entity_guid, $name);
68 }
69 
82  return _elgg_services()->privateSettings->getAll($entity_guid);
83 }
84 
99  return _elgg_services()->privateSettings->set($entity_guid, $name, $value);
100 }
101 
115  return _elgg_services()->privateSettings->remove($entity_guid, $name);
116 }
117 
130  return _elgg_services()->privateSettings->removeAllForEntity($entity_guid);
131 }
remove_all_private_settings($entity_guid)
Deletes all private settings for an entity.
if($guid==elgg_get_logged_in_user_guid()) $name
Definition: delete.php:21
elgg_get_entities_from_private_settings(array $options=array())
Returns entities based upon private settings.
$value
Definition: longtext.php:42
$options
Elgg admin footer.
Definition: footer.php:6
$entity_guid
Definition: save.php:9
remove_private_setting($entity_guid, $name)
Deletes a private setting for an entity.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
Definition: autoloader.php:17
set_private_setting($entity_guid, $name, $value)
Sets a private setting for an entity.
get_private_setting($entity_guid, $name)
Gets a private setting for an entity.
get_all_private_settings($entity_guid)
Return an array of all private settings.