PHP 클래스 Webiny\Component\Config\Drivers\IniDriver

상속: extends AbstractDriver
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
setDelimiter ( string $delimiter ) Set delimiting character for nested properties, ex: a.b.c or a-b-c
useSections ( boolean $useSections ) Should parser use sections or not, ex: [section]

보호된 메소드들

메소드 설명
getArrayInternal ( ) : array Parse config resource and build config array
getStringInternal ( ) : string Get config data as string

비공개 메소드들

메소드 설명
getIni ( $data )
getSection ( &$ini, $prefix )
parseIniString ( array $data ) : array Parse INI string and return config array
processValue ( string $section, string | array $value, array $config = [] ) : array Process given section and it's value Config array is empty by default, but it's a nested recursive call, it will be populated with data from previous calls
setValue ( $val )
validateSection ( StringObject $section )

메소드 상세

getArrayInternal() 보호된 메소드

Parse config resource and build config array
protected getArrayInternal ( ) : array
리턴 array

getStringInternal() 보호된 메소드

Get config data as string
protected getStringInternal ( ) : string
리턴 string

setDelimiter() 공개 메소드

Set delimiting character for nested properties, ex: a.b.c or a-b-c
public setDelimiter ( string $delimiter )
$delimiter string Default: '.'

useSections() 공개 메소드

Should parser use sections or not, ex: [section]
public useSections ( boolean $useSections )
$useSections boolean Default: true