19 if (!(
$row instanceof \stdClass)) {
23 return new \ElggMetadata(
$row);
69 $value_type,
$owner_guid, $access_id, $allow_multiple);
109 $value_type,
$owner_guid, $access_id, $allow_multiple);
297 $pairs = null, $pair_operator =
'AND', $case_sensitive =
true, $order_by_metadata = null,
298 $owner_guids = null) {
299 return _elgg_services()->metadataTable->getEntityMetadataWhereSql($e_table, $n_table, $names,
300 $values, $pairs, $pair_operator, $case_sensitive, $order_by_metadata, $owner_guids);
312 $valuearray = array();
314 if (is_array($array)) {
315 foreach ($array as $element) {
316 $valuearray[] = $element->value;
402 $value[] = $CONFIG->path .
'engine/tests/ElggCoreMetadataAPITest.php';
403 $value[] = $CONFIG->path .
'engine/tests/ElggCoreMetadataCacheTest.php';
409 $events->registerHandler(
'update',
'all',
'metadata_update');
411 $hooks->registerHandler(
'unit_test',
'system',
'_elgg_metadata_test');
if($guid==elgg_get_logged_in_user_guid()) $name
elgg global
Pointer to the global context.
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