Elgg
Version 1.11
engine
lib
objects.php
Go to the documentation of this file.
1
<?php
18
function
get_object_entity_as_row
(
$guid
) {
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
};
$params
$params
Definition:
login.php:72
$type
$type
Definition:
add.php:8
Elgg\EventsService
Definition:
EventsService.php:14
Elgg\HooksRegistrationService
Definition:
HooksRegistrationService.php:15
$guid
$guid
Removes an admin notice.
Definition:
delete_admin_notice.php:6
get_data_row
get_data_row($query, $callback="")
Retrieve a single row from the database.
Definition:
database.php:66
$value
$value
Definition:
longtext.php:26
_elgg_objects_test
_elgg_objects_test($hook, $type, $value, $params)
Runs unit tests for \ElggObject.
Definition:
objects.php:36
get_object_entity_as_row
get_object_entity_as_row($guid)
Return the object specific details of a object by a row.
Definition:
objects.php:18
$CONFIG
global $CONFIG
Definition:
settings.example.php:17
Generated on Fri Aug 29 2025 00:00:38 for Elgg by
1.9.1