Свойство | Type | Description | |
---|---|---|---|
$_ignoreConstants | boolean | Whether or not to ignore constants in parsed YAML | |
$_skipExtends | boolean | Whether to skip extends or not | |
$_yamlDecoder | callable | What to call when we need to decode some YAML? |
Méthode | Description | |
---|---|---|
__construct ( string $yaml, mixed $section = null, boolean $options = false ) | Loads the section $section from the config file encoded as YAML | |
decode ( string $yaml ) : array | Very dumb YAML parser | |
getYamlDecoder ( ) : callable | Get callback for decoding YAML | |
ignoreConstants ( ) : boolean | Whether parser should ignore constants or not | |
setIgnoreConstants ( boolean $flag ) : void | Indicate whether parser should ignore constants or not | |
setYamlDecoder ( callable $yamlDecoder ) : Zend_Config_Yaml | Set callback for decoding YAML |
Méthode | Description | |
---|---|---|
_decodeYaml ( integer $currentIndent, array &$lines ) : array | string | Service function to decode YAML | |
_getConstants ( ) : array | Get (reverse) sorted list of defined constant names | |
_processExtends ( array $data, string $section, array $config = [] ) : array | Helper function to process each element in the section and handle the "_extends" inheritance attribute. | |
_replaceConstants ( string $value ) : string | Replace any constants referenced in a string with their values |
protected static _getConstants ( ) : array | ||
Résultat | array |
protected static _replaceConstants ( string $value ) : string | ||
$value | string | |
Résultat | string |
public getYamlDecoder ( ) : callable | ||
Résultat | callable |
public static ignoreConstants ( ) : boolean | ||
Résultat | boolean |
public static setIgnoreConstants ( boolean $flag ) : void | ||
$flag | boolean | |
Résultat | void |
public setYamlDecoder ( callable $yamlDecoder ) : Zend_Config_Yaml | ||
$yamlDecoder | callable | the decoder to set |
Résultat | Zend_Config_Yaml |
protected static bool $_ignoreConstants | ||
Résultat | boolean |
protected bool $_skipExtends | ||
Résultat | boolean |
protected callable $_yamlDecoder | ||
Résultat | callable |