37         if ($site_guid == 0) {
 
   39             return $this->CONFIG->wwwroot;
 
   59         return $this->CONFIG->pluginspath;
 
   69         return $this->CONFIG->dataroot;
 
   79         return $this->CONFIG->path;
 
   90     function get(
$name, $site_guid = 0) {
 
   96         if (($site_guid === 0 || $site_guid === 
null || $site_guid == $this->CONFIG->site_guid) && isset($this->CONFIG->$name)) {
 
   97             return $this->CONFIG->$name;
 
  100         if ($site_guid === 
null) {
 
  104             if ($site_guid == 0) {
 
  105                 $site_guid = (int) $this->CONFIG->site_guid;
 
  109             if (!isset($this->CONFIG->site_config_loaded) || $site_guid != $this->CONFIG->site_guid) {
 
  122         if ($site_guid == $this->CONFIG->site_guid || $site_guid === 
null) {
 
  123             $this->CONFIG->$name = 
$value;
 
  144         $this->CONFIG->$name = 
$value;
 
  161         if (strlen(
$name) > 255) {
 
  162             _elgg_services()->logger->error(
"The name length for configuration variables cannot be greater than 255");
 
  166         if ($site_guid === 
null) {
 
  172             if ($site_guid == 0) {
 
  173                 $site_guid = (int) $this->CONFIG->site_guid;
 
  178         if ($site_guid === 
null || $site_guid == $this->CONFIG->site_guid) {
 
if($guid==elgg_get_logged_in_user_guid()) $name
 
getRootPath()
Get the root directory path for this installation.
 
__construct()
Constructor.
 
getDataPath()
Get the data directory path for this installation.
 
getPluginsPath()
Get the plugin path for this installation.
 
getSiteUrl($site_guid=0)
Get the URL for the current (or specified) site.
 
save($name, $value, $site_guid=0)
Save a configuration setting.
 
get_entity($guid)
Loads and returns an entity object from a guid.