PHP Class Elgg\Config

Since: 1.10.0
Inheritance: implements Elgg\Services\Config
Show file Open project: elgg/elgg Class Usage Examples

Public Methods

Method Description
__construct ( stdClass $config = null, boolean $set_global = true ) Constructor
get ( $name )
getCachePath ( )
getCookieConfig ( ) : array Set up and return the cookie configuration array resolved from settings.php
getDataPath ( )
getPluginsPath ( )
getSiteUrl ( )
getStorageObject ( ) : stdClass Get the raw \stdClass object used for storage.
getVolatile ( $name )
loadSettingsFile ( )
remove ( $name )
save ( $name, $value )
set ( $name, $value )

Method Details

__construct() public method

Constructor
public __construct ( stdClass $config = null, boolean $set_global = true )
$config stdClass Elgg's $CONFIG object
$set_global boolean Copy the config object to global $CONFIG

get() public method

public get ( $name )

getCachePath() public method

public getCachePath ( )

getCookieConfig() public method

Set up and return the cookie configuration array resolved from settings.php
public getCookieConfig ( ) : array
return array

getDataPath() public method

public getDataPath ( )

getPluginsPath() public method

public getPluginsPath ( )

getSiteUrl() public method

public getSiteUrl ( )

getStorageObject() public method

We need this, for now, to construct some services.
public getStorageObject ( ) : stdClass
return stdClass

getVolatile() public method

public getVolatile ( $name )

loadSettingsFile() public method

public loadSettingsFile ( )

remove() public method

public remove ( $name )

save() public method

public save ( $name, $value )

set() public method

public set ( $name, $value )