PHP 클래스 Yosymfony\Toml\TomlBuilder

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

보호된 프로퍼티들

프로퍼티 타입 설명
$currentArrayOfTables
$currentKey
$currentLine
$currentTable
$keyList
$keyListArryOfTables
$keyListInvalidArrayOfTables
$output
$prefix

공개 메소드들

메소드 설명
__constructor ( integer $indent = 4 ) Constructor.
addArrayTables ( string $key ) : TomlBuilder
addComment ( string $comment ) : TomlBuilder Add a comment line.
addGroup ( string $keygroup ) : TomlBuilder Alias for addTable method.
addTable ( string $key ) : TomlBuilder Add a table.
addValue ( string $key, mixed $val, string $comment = null ) : TomlBuilder Add a key-value.
getTomlString ( ) : string Get the TOML string.

비공개 메소드들

메소드 설명
addInvalidArrayOfTablesKey ( array $keyParts )
addKey ( $key )
addKeyArrayOfTables ( $key, array $keyParts )
addKeyTable ( $key )
addKeyToKeyList ( $key )
append ( $val, $addPostNewline = false, $addIndentation = false, $addPreNewline = false )
dumpArray ( $val )
dumpBool ( $val )
dumpComment ( $val )
dumpDatetime ( $val )
dumpFloat ( $val )
dumpInteger ( $val )
dumpString ( $val )
dumpValue ( $val )
getAbsoluteKey ( $key, $currentKeyTable, $currentKeyArrayOfTables )
getArrayTablesKeyPath ( array $keyParts )
getKeyPart ( $key )
isStringValid ( string $val ) : boolean
isTableImplicit ( array $keyParts )
normalizeString ( $val )

메소드 상세

__constructor() 공개 메소드

Constructor.
public __constructor ( integer $indent = 4 )
$indent integer The amount of spaces to use for indentation of nested nodes.

addArrayTables() 공개 메소드

public addArrayTables ( string $key ) : TomlBuilder
$key string
리턴 TomlBuilder

addComment() 공개 메소드

Add a comment line.
public addComment ( string $comment ) : TomlBuilder
$comment string
리턴 TomlBuilder

addGroup() 공개 메소드

Alias for addTable method.
사용 중단: Since version 0.2
public addGroup ( string $keygroup ) : TomlBuilder
$keygroup string
리턴 TomlBuilder

addTable() 공개 메소드

Add a table.
public addTable ( string $key ) : TomlBuilder
$key string Tablename. Dot character have a special meant.
리턴 TomlBuilder

addValue() 공개 메소드

Add a key-value.
public addValue ( string $key, mixed $val, string $comment = null ) : TomlBuilder
$key string
$val mixed
$comment string
리턴 TomlBuilder

getTomlString() 공개 메소드

Get the TOML string.
public getTomlString ( ) : string
리턴 string

프로퍼티 상세

$currentArrayOfTables 보호되어 있는 프로퍼티

protected $currentArrayOfTables

$currentKey 보호되어 있는 프로퍼티

protected $currentKey

$currentLine 보호되어 있는 프로퍼티

protected $currentLine

$currentTable 보호되어 있는 프로퍼티

protected $currentTable

$keyList 보호되어 있는 프로퍼티

protected $keyList

$keyListArryOfTables 보호되어 있는 프로퍼티

protected $keyListArryOfTables

$keyListInvalidArrayOfTables 보호되어 있는 프로퍼티

protected $keyListInvalidArrayOfTables

$output 보호되어 있는 프로퍼티

protected $output

$prefix 보호되어 있는 프로퍼티

protected $prefix