Elgg  Version 1.11
objects.php
Go to the documentation of this file.
1 <?php
20 
21  $guid = (int)$guid;
22  return get_data_row("SELECT * from {$CONFIG->dbprefix}objects_entity where guid=$guid");
23 }
24 
36 function _elgg_objects_test($hook, $type, $value, $params) {
38  $value[] = "{$CONFIG->path}engine/tests/ElggObjectTest.php";
39  return $value;
40 }
41 
42 return function(\Elgg\EventsService $events, \Elgg\HooksRegistrationService $hooks) {
43  $hooks->registerHandler('unit_test', 'system', '_elgg_objects_test');
44 };
get_object_entity_as_row($guid)
Return the object specific details of a object by a row.
Definition: objects.php:18
get_data_row($query, $callback="")
Retrieve a single row from the database.
Definition: database.php:66
_elgg_objects_test($hook, $type, $value, $params)
Runs unit tests for .
Definition: objects.php:36
$value
Definition: longtext.php:26
$guid
Removes an admin notice.
$params
Definition: login.php:72
global $CONFIG
elgg global
Pointer to the global context.
Definition: elgglib.js:12
$type
Definition: add.php:8