21 if ($site_guid == 0) {
45 return get_data_row(
"SELECT * FROM {$CONFIG->dbprefix}sites_entity WHERE guid = $guid");
60 $row =
get_data_row(
"SELECT * from {$CONFIG->dbprefix}sites_entity where url='$url'");
82 $value[] =
"{$CONFIG->path}engine/tests/ElggSiteTest.php";
87 $hooks->registerHandler(
'unit_test',
'system',
'_elgg_sites_test');
elgg_get_site_entity($site_guid=0)
Get an entity (default is current site)
$guid
Removes an admin notice.
get_site_by_url($url)
Return the site via a url.
get_site_entity_as_row($guid)
Return the site specific details of a site by a row.
get_data_row($query, $callback=null, array $params=[])
Retrieve a single row from the database.
sanitise_string($string)
Alias of sanitize_string.
elgg global
Pointer to the global context.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
_elgg_sites_test($hook, $type, $value, $params)
Unit tests for sites.
get_entity($guid)
Loads and returns an entity object from a guid.