Метод | Описание | |
---|---|---|
__construct ( $configType, $searchFolders ) | constructor | |
addEntry ( string $name, object $config ) | inject a config into our list | |
addHardCodedList ( |
add config entries from a hard-coded list | |
findConfigs ( ) : void | find a list of config files in a folder, and load them | |
getConfigType ( ) : string | what type of content are we a list of? | |
getEntries ( ) : array | returns our list of all known configs | |
getEntry ( string $name ) : array | object | retrieve a single config entry | |
getEntryNames ( ) : array |
returns the names of all of the entries in our list | |
getSearchFolders ( ) : array |
returns the folders where we look for config files | |
getWrappedConfigClassname ( ) : string | returns a classname you can use for creating objects | |
hasEntry ( string $name ) : boolean | do we have a config entry called $name? | |
newWrappedConfigObject ( ) : object | returns a object of the correct type for the content we are listing | |
setConfigType ( string $configType ) | tells us what type of content we are going to be a list of | |
setSearchFolders ( array |
tells us where to look for config files |
Метод | Описание | |
---|---|---|
findConfigFilenames ( $searchPattern ) : array |
build a list of the config files in the $searchFolder | |
findJsonConfigs ( ) : array | find a list of SPv2.0-style JSON configs | |
findPhpConfigs ( ) : array | find a list of SPv2.3-style PHP configs |
public addHardCodedList ( |
||
$hardCodedDefaults | the entries to add |
protected findConfigFilenames ( $searchPattern ) : array |
||
Результат | array |
public findConfigs ( ) : void | ||
Результат | void |
protected findJsonConfigs ( ) : array | ||
Результат | array |
protected findPhpConfigs ( ) : array | ||
Результат | array |
public getConfigType ( ) : string | ||
Результат | string |
public getEntries ( ) : array | ||
Результат | array |
public getEntryNames ( ) : array |
||
Результат | array |
public getSearchFolders ( ) : array |
||
Результат | array |
public getWrappedConfigClassname ( ) : string | ||
Результат | string |
public newWrappedConfigObject ( ) : object | ||
Результат | object |
public setConfigType ( string $configType ) | ||
$configType | string | the name of a class from ConfigLib |
public setSearchFolders ( array |
||
$searchFolders | array |