23 if ($site_guid == 0) {
24 $site = $CONFIG->site;
48 return get_data_row(
"SELECT * FROM {$CONFIG->dbprefix}sites_entity WHERE guid = $guid");
63 $row =
get_data_row(
"SELECT * from {$CONFIG->dbprefix}sites_entity where url='$url'");
85 $value[] =
"{$CONFIG->path}engine/tests/ElggSiteTest.php";
elgg_get_site_entity($site_guid=0)
Get an ElggSite entity (default is current site)
get_data_row($query, $callback="")
Retrieve a single row from the database.
$guid
Removes an admin notice.
get_site_by_url($url)
Return the site via a url.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
Register a callback as a plugin hook handler.
get_site_entity_as_row($guid)
Return the site specific details of a site by a row.
sanitise_string($string)
Wrapper function for alternate English spelling (.
elgg global
Pointer to the global context.
_elgg_sites_test($hook, $type, $value, $params)
Unit tests for sites.
get_entity($guid)
Loads and returns an entity object from a guid.