Elgg  Version 3.0
Namespaces | Functions | Variables
metadata.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Updates the advanced settings for the primary site object.
 

Functions

 elgg_get_metadata_from_id ($id)
 Get a specific metadata object by its id. More...
 
 elgg_delete_metadata_by_id ($id)
 Deletes metadata using its ID. More...
 
 elgg_get_metadata (array $options=[])
 Fetch metadata or perform a calculation on them. More...
 
 elgg_delete_metadata (array $options)
 Deletes metadata based on $options. More...
 

Variables

return function (\Elgg\EventsService $events,\Elgg\HooksRegistrationService $hooks)
 

Function Documentation

elgg_delete_metadata ( array  $options)

Deletes metadata based on $options.

Warning
Unlike elgg_get_metadata() this will not accept an empty options array! This requires at least one constraint: metadata_name(s), metadata_value(s), or guid(s) must be set.
Parameters
array$optionsAn options array. elgg_get_metadata()
Returns
bool|null true on success, false on failure, null if no metadata to delete.
Since
1.8.0

Definition at line 64 of file metadata.php.

elgg_delete_metadata_by_id (   $id)

Deletes metadata using its ID.

Parameters
int$idThe metadata ID to delete.
Returns
bool

Definition at line 29 of file metadata.php.

elgg_get_metadata ( array  $options = [])

Fetch metadata or perform a calculation on them.

Accepts all options supported by elgg_get_entities()

See also
elgg_get_entities()
Parameters
array$optionsOptions
Returns
[]|mixed
Since
1.8.0

Definition at line 49 of file metadata.php.

elgg_get_metadata_from_id (   $id)

Get a specific metadata object by its id.

If you want multiple metadata objects, use elgg_get_metadata().

Parameters
int$idThe id of the metadata object being retrieved.
Returns
|false false if not found

Definition at line 19 of file metadata.php.

Variable Documentation

See also
::loadCore Do not do work here. Just register for events.

Definition at line 71 of file metadata.php.