PHP 트레잇 LdapTools\ConfigurationParseTrait

저자: Chad Sikorra ([email protected])
파일 보기 프로젝트 열기: ldaptools/ldaptools

보호된 메소드들

메소드 설명
getParsedConfig ( array $config, array $existingConfig, array $configMap, array $required ) : array Parses a YAML config section and sends it back as the correct config values as an array.
isParsedConfigValid ( array $config, array $required ) : boolean Checks whether all required values for the configuration have been set after the merge.
setParsedConfig ( array $config ) Given a config that has been parsed to what the config values should be, call the setters to make sure all values are validated by any additional logic in the setters.

메소드 상세

getParsedConfig() 보호된 메소드

Parses a YAML config section and sends it back as the correct config values as an array.
protected getParsedConfig ( array $config, array $existingConfig, array $configMap, array $required ) : array
$config array The YAML config section as an array.
$existingConfig array The config before merging the YAML config.
$configMap array The YAML to config key map array.
$required array The required options that must be in the array.
리턴 array The YAML config merged with the existing config.

isParsedConfigValid() 보호된 메소드

Checks whether all required values for the configuration have been set after the merge.
protected isParsedConfigValid ( array $config, array $required ) : boolean
$config array
$required array
리턴 boolean

setParsedConfig() 보호된 메소드

Given a config that has been parsed to what the config values should be, call the setters to make sure all values are validated by any additional logic in the setters.
protected setParsedConfig ( array $config )
$config array