PHP Класс Devise\Support\Config\SettingsManager

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( Framework $Framework, $overridesFile = null ) Create a new settings manager
merge ( array $settings ) : void Merges these settings in with the other settings from the overrides config file
remove ( array $settings ) : void Removes these overrides from the overrides config so we can go back to whatever defaults we need. Not being used as far as I know yet, but it could come in handy soon.
update ( array $settings ) : void Overrides the settings inside of the overrides file this does not merge.

Защищенные методы

Метод Описание
prettyVarExport ( array $content ) : string Makes the variable export to the config file look pretty and human readable.
varExport ( array $content ) : string Exports the variable in an uglier version, but doesn't mess with formatting

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

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

Create a new settings manager
public __construct ( Framework $Framework, $overridesFile = null )
$Framework Devise\Support\Framework

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

Merges these settings in with the other settings from the overrides config file
public merge ( array $settings ) : void
$settings array
Результат void

prettyVarExport() защищенный Метод

..
protected prettyVarExport ( array $content ) : string
$content array
Результат string

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

..
public remove ( array $settings ) : void
$settings array
Результат void

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

.. so if you have settings in your overrides file that aren't in the $settings array they will be lost. To keep them we need to use the merge() method instead
public update ( array $settings ) : void
$settings array
Результат void

varExport() защищенный Метод

Exports the variable in an uglier version, but doesn't mess with formatting
protected varExport ( array $content ) : string
$content array
Результат string