Elgg  Version 2.3
objects.php
Go to the documentation of this file.
1 <?php
19  $dbprefix = elgg_get_config('dbprefix');
20  $sql = "SELECT * FROM {$dbprefix}objects_entity
21  WHERE guid = :guid";
22  $params = [
23  ':guid' => (int) $guid,
24  ];
25  return _elgg_services()->db->getDataRow($sql, null, $params);
26 }
27 
39 function _elgg_objects_test($hook, $type, $value, $params) {
41  $value[] = "{$CONFIG->path}engine/tests/ElggObjectTest.php";
42  return $value;
43 }
44 
45 return function(\Elgg\EventsService $events, \Elgg\HooksRegistrationService $hooks) {
46  $hooks->registerHandler('unit_test', 'system', '_elgg_objects_test');
47 };
get_object_entity_as_row($guid)
Return the object specific details of a object by a row.
Definition: objects.php:18
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
_elgg_objects_test($hook, $type, $value, $params)
Runs unit tests for .
Definition: objects.php:39
$value
Definition: longtext.php:42
$guid
Removes an admin notice.
$params
Definition: login.php:72
global $CONFIG
$dbprefix
Definition: index.php:13
elgg global
Pointer to the global context.
Definition: elgglib.js:12
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
Definition: autoloader.php:17
if(!$display_name) $type
Definition: delete.php:27