PHP 클래스 Devise\Support\Config\SettingsManager

파일 보기 프로젝트 열기: devisephp/cms 1 사용 예제들

공개 메소드들

메소드 설명
__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