Parses configuration files
| package |
OCA\Gallery\Config |
|---|
__construct()
addConfigItem(string $key, array $parsedConfigItem, integer $level) : \OCA\Gallery\Config\array<null|\OCA\Gallery\Config\array<string,string>,bool>
stringthe configuration sub-section identifier
arraythe configuration for a sub-section
integerthe starting level is 0 and we add 1 each time we visit a parent folder
\OCA\Gallery\Config\array,bool>
bomFixer(string $file) : string
buildAlbumConfig(array $currentConfig, array $parsedConfig, $completionStatus, integer $level) : array
arraythe configuration collected so far
arraythe configuration collected in the current folder
integerthe starting level is 0 and we add 1 each time we visit a parent folder
array<null|array,array<string,bool>>
getFeaturesList(\OCP\Files\Folder $folder, string $configName) : null|array
\OCP\Files\Folderthe current folder
stringname of the configuration file
null|array
getFolderConfig(\OCP\Files\Folder $folder, string $configName, array $currentConfig, $completionStatus, integer $level) : array
| Throws |
|
|---|
\OCP\Files\Folderthe current folder
stringname of the configuration file
arraythe configuration collected so far
integerthe starting level is 0 and we add 1 each time we visit a parent folder
array<null|array,array<string,bool>>
isConfigInheritable(array $parsedConfigItem) : boolean
arraythe configuration for a sub-section
boolean
isConfigItemComplete(string $key, array $parsedConfig, boolean $complete) : boolean
stringthe configuration sub-section identifier
arraythe configuration for that sub-section
boolean
boolean
isConfigUsable(string $key, array $parsedConfigItem, integer $level) : boolean
It's possible in two cases:
We also need to make sure that the values contained in the configuration are safe for web use
stringthe configuration sub-section identifier
arraythe configuration for a sub-section
integerthe starting level is 0 and we add 1 each time we visit a parent folder
boolean
parseConfig(\OCP\Files\Folder $folder, string $configName) : array
| Throws |
|
|---|
\OCP\Files\Folderthe current folder
string
array
parseFeatures( $featuresList) : array
array
configValidator : \OCA\Gallery\Config\ConfigValidator