Elgg  Version master
metadata.php
Go to the documentation of this file.
1 <?php
17  return _elgg_services()->metadataTable->get($id);
18 }
19 
32 function elgg_get_metadata(array $options = []) {
33  return _elgg_services()->metadataTable->getAll($options);
34 }
35 
49 function elgg_delete_metadata(array $options): bool {
50  return _elgg_services()->metadataTable->deleteAll($options);
51 }
52 
68 function elgg_get_tags(array $options = []) {
69  return _elgg_services()->metadataTable->getTags($options);
70 }
elgg_get_metadata_from_id(int $id)
Elgg metadata Functions to manage entity metadata.
Definition: metadata.php:16
if($who_can_change_language=== 'nobody') elseif($who_can_change_language=== 'admin_only'&&!elgg_is_admin_logged_in()) $options
Definition: language.php:20
ElggMetadata.
elgg_get_metadata(array $options=[])
Fetch metadata or perform a calculation on them.
Definition: metadata.php:32
elgg_get_tags(array $options=[])
Get popular tags and their frequencies.
Definition: metadata.php:68
elgg_delete_metadata(array $options)
Deletes metadata based on $options.
Definition: metadata.php:49
_elgg_services()
Get the global service provider.
Definition: elgglib.php:351
$id
Generic annotation delete action.
Definition: delete.php:6