PHP 클래스 YamlInline, cakephp-db-migrations

저자: Fabien Potencier ([email protected])
파일 보기 프로젝트 열기: joelmoss/cakephp-db-migrations 1 사용 예제들

공개 메소드들

메소드 설명
dump ( $value ) : string Dumps PHP array to YAML.
load ( $value ) : array Load YAML into a PHP array.
parseScalar ( scalar $scalar, string $delimiters = null, $stringDelimiters = ['"', "'"], integer &$i, boolean $evaluate = true ) : string Parses scalar to yaml

보호된 메소드들

메소드 설명
dumpArray ( $value ) : string Dumps PHP array to YAML
evaluateScalar ( string $scalar ) : string Evaluates scalars and replaces magic values.
getTimestampRegex ( )
parseMapping ( string $mapping, integer &$i ) : string Parses mapping.
parseQuotedScalar ( string $scalar, integer &$i ) : string Parses quotes scalar
parseSequence ( string $sequence, integer &$i ) : string Parse sequence to yaml

메소드 상세

dump() 공개 정적인 메소드

Dumps PHP array to YAML.
public static dump ( $value ) : string
리턴 string YAML

dumpArray() 보호된 정적인 메소드

Dumps PHP array to YAML
protected static dumpArray ( $value ) : string
리턴 string YAML

evaluateScalar() 보호된 정적인 메소드

Evaluates scalars and replaces magic values.
protected static evaluateScalar ( string $scalar ) : string
$scalar string
리턴 string YAML

getTimestampRegex() 보호된 정적인 메소드

protected static getTimestampRegex ( )

load() 공개 정적인 메소드

Load YAML into a PHP array.
public static load ( $value ) : array
리턴 array PHP array

parseMapping() 보호된 정적인 메소드

Parses mapping.
protected static parseMapping ( string $mapping, integer &$i ) : string
$mapping string
$i integer
리턴 string YAML

parseQuotedScalar() 보호된 정적인 메소드

Parses quotes scalar
protected static parseQuotedScalar ( string $scalar, integer &$i ) : string
$scalar string
$i integer
리턴 string YAML

parseScalar() 공개 정적인 메소드

Parses scalar to yaml
public static parseScalar ( scalar $scalar, string $delimiters = null, $stringDelimiters = ['"', "'"], integer &$i, boolean $evaluate = true ) : string
$scalar scalar
$delimiters string
$i integer
$evaluate boolean
리턴 string YAML

parseSequence() 보호된 정적인 메소드

Parse sequence to yaml
protected static parseSequence ( string $sequence, integer &$i ) : string
$sequence string
$i integer
리턴 string YAML