Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
lib
metadata.php
Go to the documentation of this file.
1
<?php
16
function
elgg_get_metadata_from_id
(
int
$id
): ?\
ElggMetadata
{
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
elgg_get_metadata_from_id(int $id)
Elgg metadata Functions to manage entity metadata.
Definition:
metadata.php:16
$options
if($who_can_change_language=== 'nobody') elseif($who_can_change_language=== 'admin_only'&&!elgg_is_admin_logged_in()) $options
Definition:
language.php:20
ElggMetadata
ElggMetadata.
Definition:
ElggMetadata.php:11
elgg_get_metadata
elgg_get_metadata(array $options=[])
Fetch metadata or perform a calculation on them.
Definition:
metadata.php:32
elgg_get_tags
elgg_get_tags(array $options=[])
Get popular tags and their frequencies.
Definition:
metadata.php:68
elgg_delete_metadata
elgg_delete_metadata(array $options)
Deletes metadata based on $options.
Definition:
metadata.php:49
_elgg_services
_elgg_services()
Get the global service provider.
Definition:
elgglib.php:351
$id
$id
Generic annotation delete action.
Definition:
delete.php:6
Generated on Sat Dec 21 2024 00:02:53 for Elgg by
1.8.11