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>
string
the configuration sub-section identifier
array
the configuration for a sub-section
integer
the 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
array
the configuration collected so far
array
the configuration collected in the current folder
integer
the 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\Folder
the current folder
string
name of the configuration file
null|array
getFolderConfig(\OCP\Files\Folder $folder, string $configName, array $currentConfig, $completionStatus, integer $level) : array
Throws |
|
---|
\OCP\Files\Folder
the current folder
string
name of the configuration file
array
the configuration collected so far
integer
the 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
array
the configuration for a sub-section
boolean
isConfigItemComplete(string $key, array $parsedConfig, boolean $complete) : boolean
string
the configuration sub-section identifier
array
the 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
string
the configuration sub-section identifier
array
the configuration for a sub-section
integer
the 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\Folder
the current folder
string
array
parseFeatures( $featuresList) : array
array
configValidator : \OCA\Gallery\Config\ConfigValidator