Elgg  Version 1.9
Namespaces | Functions
sites.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Functions

 elgg_get_site_entity ($site_guid=0)
 Get an ElggSite entity (default is current site) More...
 
 get_site_entity_as_row ($guid)
 Return the site specific details of a site by a row. More...
 
 get_site_by_url ($url)
 Return the site via a url. More...
 
 _elgg_sites_test ($hook, $type, $value, $params)
 Unit tests for sites. More...
 

Function Documentation

_elgg_sites_test (   $hook,
  $type,
  $value,
  $params 
)

Unit tests for sites.

Parameters
string$hookunit_test
string$typesystem
mixed$valueArray of tests
mixed$paramsParams
Returns
array private

Definition at line 83 of file sites.php.

elgg_get_site_entity (   $site_guid = 0)

Get an ElggSite entity (default is current site)

Parameters
int$site_guidOptional. Site GUID.
Returns
ElggSite
Since
1.8.0

Definition at line 18 of file sites.php.

get_site_by_url (   $url)

Return the site via a url.

Parameters
string$urlThe URL of a site
Returns
mixed

Definition at line 58 of file sites.php.

get_site_entity_as_row (   $guid)

Return the site specific details of a site by a row.

Parameters
int$guidThe site GUID
Returns
mixed private

Definition at line 44 of file sites.php.