|
Elgg
Version 2.3
|
Go to the source code of this file.
Namespaces | |
| Elgg\Core | |
| Activate a plugin or plugins. | |
Functions | |
| elgg_get_entities_from_private_settings (array $options=array()) | |
| Returns entities based upon private settings. More... | |
| get_private_setting ($entity_guid, $name) | |
| Gets a private setting for an entity. More... | |
| get_all_private_settings ($entity_guid) | |
| Return an array of all private settings. More... | |
| set_private_setting ($entity_guid, $name, $value) | |
| Sets a private setting for an entity. More... | |
| remove_private_setting ($entity_guid, $name) | |
| Deletes a private setting for an entity. More... | |
| remove_all_private_settings ($entity_guid) | |
| Deletes all private settings for an entity. More... | |
| elgg_get_entities_from_private_settings | ( | array | $options = array() | ) |
Returns entities based upon private settings.
Also accepts all options available to elgg_get_entities(). Supports the singular option shortcut.
| array | $options | Array in format: private_setting_names => null|ARR private setting names
private_setting_values => null|ARR metadata values
private_setting_name_value_pairs => null|ARR (
name => 'name',
value => 'value',
'operand' => '=',
)
Currently if multiple values are sent via
an array (value => array('value1', 'value2')
the pair's operand will be forced to "IN".
private_setting_name_value_pairs_operator => null|STR The operator to use for combining
(name = value) OPERATOR (name = value); default AND
private_setting_name_prefix => STR A prefix to apply to all private settings. Used to namespace plugin user settings or by plugins to namespace their own settings. |
Definition at line 44 of file private_settings.php.
| get_all_private_settings | ( | $entity_guid | ) |
Return an array of all private settings.
| int | $entity_guid | The entity GUID |
Definition at line 81 of file private_settings.php.
| get_private_setting | ( | $entity_guid, | |
| $name | |||
| ) |
Gets a private setting for an entity.
Plugin authors can set private data on entities. By default private data will not be searched or exported.
| int | $entity_guid | The entity GUID |
| string | $name | The name of the setting |
Definition at line 66 of file private_settings.php.
| remove_all_private_settings | ( | $entity_guid | ) |
Deletes all private settings for an entity.
| int | $entity_guid | The Entity GUID |
Definition at line 129 of file private_settings.php.
| remove_private_setting | ( | $entity_guid, | |
| $name | |||
| ) |
Deletes a private setting for an entity.
| int | $entity_guid | The Entity GUID |
| string | $name | The name of the setting |
Definition at line 114 of file private_settings.php.
| set_private_setting | ( | $entity_guid, | |
| $name, | |||
| $value | |||
| ) |
Sets a private setting for an entity.
| int | $entity_guid | The entity GUID |
| string | $name | The name of the setting |
| string | $value | The value of the setting |
Definition at line 98 of file private_settings.php.