PHP 클래스 Neos\Flow\Configuration\Source\YamlSource

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$usePhpYamlExtension boolean Having this installed massively improves YAML parsing performance.

공개 메소드들

메소드 설명
__construct ( )
has ( string $pathAndFilename, boolean $allowSplitSource = false ) : boolean Checks for the specified configuration file and returns TRUE if it exists.
load ( string $pathAndFilename, boolean $allowSplitSource = false ) : array Loads the specified configuration file and returns its content as an array. If the file does not exist or could not be loaded, an empty array is returned
save ( string $pathAndFilename, array $configuration ) : void Save the specified configuration array to the given file in YAML format.

보호된 메소드들

메소드 설명
getHeaderFromFile ( string $pathAndFilename ) : string Read the header part from the given file. That means, every line until the first non comment line is found.

메소드 상세

__construct() 공개 메소드

public __construct ( )

getHeaderFromFile() 보호된 메소드

Read the header part from the given file. That means, every line until the first non comment line is found.
protected getHeaderFromFile ( string $pathAndFilename ) : string
$pathAndFilename string
리턴 string The header of the given YAML file

has() 공개 메소드

Checks for the specified configuration file and returns TRUE if it exists.
public has ( string $pathAndFilename, boolean $allowSplitSource = false ) : boolean
$pathAndFilename string Full path and filename of the file to load, excluding the file extension (ie. ".yaml")
$allowSplitSource boolean If TRUE, the type will be used as a prefix when looking for configuration files
리턴 boolean

load() 공개 메소드

Loads the specified configuration file and returns its content as an array. If the file does not exist or could not be loaded, an empty array is returned
public load ( string $pathAndFilename, boolean $allowSplitSource = false ) : array
$pathAndFilename string Full path and filename of the file to load, excluding the file extension (ie. ".yaml")
$allowSplitSource boolean If TRUE, the type will be used as a prefix when looking for configuration files
리턴 array

save() 공개 메소드

Save the specified configuration array to the given file in YAML format.
public save ( string $pathAndFilename, array $configuration ) : void
$pathAndFilename string Full path and filename of the file to write to, excluding the dot and file extension (i.e. ".yaml")
$configuration array The configuration to save
리턴 void

프로퍼티 상세

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

Having this installed massively improves YAML parsing performance.
또한 보기: http://pecl.php.net/package/yaml
protected bool $usePhpYamlExtension
리턴 boolean