Elgg  Version 1.9
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 elgg_register_plugin_hook_handler('unit_test', 'system', '_elgg_objects_test');
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 ElggObject.
Definition: objects.php:36
$value
Definition: longtext.php:29
$guid
Removes an admin notice.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
Register a callback as a plugin hook handler.
Definition: elgglib.php:853
$params
Definition: login.php:72
global $CONFIG
elgg global
Pointer to the global context.
Definition: elgglib.js:12
$type
Definition: add.php:8