PHP Класс Elgg\Config

С версии: 1.10.0
Наследование: implements Elgg\Services\Config
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

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 get ( $name )

getCachePath() публичный Метод

public getCachePath ( )

getCookieConfig() публичный Метод

Set up and return the cookie configuration array resolved from settings.php
public getCookieConfig ( ) : array
Результат array

getDataPath() публичный Метод

public getDataPath ( )

getPluginsPath() публичный Метод

public getPluginsPath ( )

getSiteUrl() публичный Метод

public getSiteUrl ( )

getStorageObject() публичный Метод

We need this, for now, to construct some services.
public getStorageObject ( ) : stdClass
Результат stdClass

getVolatile() публичный Метод

public getVolatile ( $name )

loadSettingsFile() публичный Метод

public loadSettingsFile ( )

remove() публичный Метод

public remove ( $name )

save() публичный Метод

public save ( $name, $value )

set() публичный Метод

public set ( $name, $value )