Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
objects.php
Go to the documentation of this file.
1 <?php
19  global $CONFIG;
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) {
37  global $CONFIG;
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
_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
get_data_row($query, $callback=null, array $params=[])
Retrieve a single row from the database.
Definition: database.php:72
global $CONFIG
if(!$display_name) $type
Definition: delete.php:27