23 return new \ElggMetadata(
$row);
67 $access_id = null, $allow_multiple =
false) {
69 if ($access_id === null) {
73 .
'All metadata will be public in 3.0.',
'2.3');
77 $value_type,
$owner_guid, $access_id, $allow_multiple);
96 .
'All metadata will be public in 3.0.',
'2.3');
121 $access_id = null, $allow_multiple =
false) {
123 if ($access_id === null) {
127 .
'All metadata will be public in 3.0.',
'2.3');
131 $value_type,
$owner_guid, $access_id, $allow_multiple);
318 $pairs = null, $pair_operator =
'AND', $case_sensitive =
true, $order_by_metadata = null,
319 $owner_guids = null) {
320 return _elgg_services()->metadataTable->getEntityMetadataWhereSql($e_table, $n_table, $names,
321 $values, $pairs, $pair_operator, $case_sensitive, $order_by_metadata, $owner_guids);
333 $valuearray = array();
335 if (is_array($array)) {
336 foreach ($array as $element) {
337 $valuearray[] = $element->value;
423 $value[] = $CONFIG->path .
'engine/tests/ElggCoreMetadataAPITest.php';
424 $value[] = $CONFIG->path .
'engine/tests/ElggCoreMetadataCacheTest.php';
430 $events->registerHandler(
'update',
'all',
'metadata_update', 600);
432 $hooks->registerHandler(
'unit_test',
'system',
'_elgg_metadata_test');
$object
These two snippets demonstrates triggering an event and how to register for that event.
if($guid==elgg_get_logged_in_user_guid()) $name
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
elgg global
Pointer to the global context.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
elgg_list_entities(array $options=array(), $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
if(!$collection_name) $id