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;
388 if (empty($options[
'guid'])) {
392 if (empty($options[
'metadata_name'])) {
394 $cache->clear($options[
'guid']);
398 $cache->markEmpty($options[
'guid'], $options[
'metadata_name']);
401 $cache->markUnknown($options[
'guid'], $options[
'metadata_name']);
423 $value[] = $CONFIG->path .
'engine/tests/ElggCoreMetadataAPITest.php';
424 $value[] = $CONFIG->path .
'engine/tests/ElggCoreMetadataCacheTest.php';
if($guid==elgg_get_logged_in_user_guid()) $name
if(!$autoload_available) _elgg_services()
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
Register a callback as a plugin hook handler.
elgg global
Pointer to the global context.
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Register a callback as an Elgg event handler.
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