1 | <?php |
||
21 | class ConfigLoader |
||
22 | { |
||
23 | /** |
||
24 | * This method parses the config file, if exists, and determines the real |
||
25 | * options values. |
||
26 | * |
||
27 | * * If an option is defined as a command parameter, this will be used |
||
28 | * * Otherwise, if an option is defined in the configuration file, this will |
||
29 | * be used. |
||
30 | * * Otherwise, default values will be used |
||
31 | * |
||
32 | * @param string $commandName Command called |
||
33 | * @param array $configValues Config values |
||
34 | * @param array $commandValues Values defined in command |
||
35 | * @param array $defaultValues Default values to use if these are not defined |
||
36 | * |
||
37 | * @return array $usableValues Usable values |
||
38 | */ |
||
39 | public function loadConfigValues( |
||
55 | |||
56 | /** |
||
57 | * This method parses the config file, if exists, and determines the real |
||
58 | * option value. |
||
59 | * |
||
60 | * * If an option is defined as a command parameter, this will be used |
||
61 | * * Otherwise, if an option is defined in the configuration file, this will |
||
62 | * be used. |
||
63 | * * Otherwise, default values will be used |
||
64 | * |
||
65 | * @param string $commandName Command called |
||
66 | * @param array $configValues Config values |
||
67 | * @param array $commandValue Value defined in command |
||
68 | * @param array $defaultValue Default value to use if this is not defined |
||
69 | * |
||
70 | * @return array $usableValues Usable values |
||
71 | */ |
||
72 | public function loadConfigValue( |
||
83 | } |
||
84 |