Elgg
Version 4.3
|
Private settings for entities. More...
Public Member Functions | |
__construct (Database $db, EntityTable $entities, PrivateSettingsCache $cache) | |
Constructor. More... | |
get (ElggEntity $entity, $name) | |
Gets a private setting for an entity. More... | |
getAllForEntity (ElggEntity $entity) | |
Return an array of all private settings. More... | |
getAllForGUIDs ($guids) | |
Return an array of all private settings for the requested guids. More... | |
set (ElggEntity $entity, $name, $value) | |
Sets a private setting for an entity. More... | |
remove (ElggEntity $entity, $name) | |
Deletes a private setting for an entity. More... | |
removeAllForEntity (ElggEntity $entity) | |
Deletes all private settings for an entity. More... | |
Protected Attributes | |
$db | |
$entities | |
$cache | |
Private settings for entities.
Private settings provide metadata like storage of settings for plugins and users.
Definition at line 18 of file PrivateSettingsTable.php.
Elgg\Database\PrivateSettingsTable::__construct | ( | Database | $db, |
EntityTable | $entities, | ||
PrivateSettingsCache | $cache | ||
) |
Constructor.
Database | $db | The database |
EntityTable | $entities | Entities table |
PrivateSettingsCache | $cache | Settings cache |
Definition at line 42 of file PrivateSettingsTable.php.
Elgg\Database\PrivateSettingsTable::get | ( | ElggEntity | $entity, |
$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.
ElggEntity | $entity | The entity GUID |
string | $name | The name of the setting |
Definition at line 59 of file PrivateSettingsTable.php.
Elgg\Database\PrivateSettingsTable::getAllForEntity | ( | ElggEntity | $entity | ) |
Return an array of all private settings.
ElggEntity | $entity | Entity |
Definition at line 70 of file PrivateSettingsTable.php.
Elgg\Database\PrivateSettingsTable::getAllForGUIDs | ( | $guids | ) |
Return an array of all private settings for the requested guids.
int[] | $guids GUIDS to fetch the settings for |
Definition at line 109 of file PrivateSettingsTable.php.
Elgg\Database\PrivateSettingsTable::remove | ( | ElggEntity | $entity, |
$name | |||
) |
Deletes a private setting for an entity.
ElggEntity | $entity | Entity |
string | $name | The name of the setting |
Definition at line 185 of file PrivateSettingsTable.php.
Elgg\Database\PrivateSettingsTable::removeAllForEntity | ( | ElggEntity | $entity | ) |
Deletes all private settings for an entity.
ElggEntity | $entity | Entity |
Definition at line 202 of file PrivateSettingsTable.php.
Elgg\Database\PrivateSettingsTable::set | ( | ElggEntity | $entity, |
$name, | |||
$value | |||
) |
Sets a private setting for an entity.
ElggEntity | $entity | Entity |
string | $name | The name of the setting |
string | int | $value | The value of the setting |
Definition at line 145 of file PrivateSettingsTable.php.
|
protected |
Definition at line 33 of file PrivateSettingsTable.php.
|
protected |
Definition at line 23 of file PrivateSettingsTable.php.
|
protected |
Definition at line 28 of file PrivateSettingsTable.php.