1 | <?php |
||
27 | class Configuration extends ConfigurationAbstract |
||
28 | { |
||
29 | /** |
||
30 | * @var string config file with sanitizer prefs |
||
31 | */ |
||
32 | private $sanitizerPrefsFilename = 'var/configs/system_sanitizer_prefs.yml'; |
||
33 | |||
34 | /** |
||
35 | * Get the sanitizer configuration. |
||
36 | */ |
||
37 | 3 | public function __construct() |
|
38 | { |
||
39 | 3 | $sanitizerConfiguration = $this->readSanitizerPreferences(); |
|
40 | 3 | parent::__construct($sanitizerConfiguration); |
|
41 | 3 | } |
|
42 | |||
43 | /** |
||
44 | * readSanitizerPreferences - read configured sanitizer preferences |
||
45 | * |
||
46 | * If configuration file does not exist, create it. |
||
47 | * |
||
48 | * If configurable extensions exist that are not in the configuration |
||
49 | * file, add them, and rewrite the configuration file. |
||
50 | * |
||
51 | * @return array of sanitizer preferences |
||
52 | */ |
||
53 | 3 | protected function readSanitizerPreferences() |
|
81 | |||
82 | /** |
||
83 | * saveSanitizerPreferences - record array of sanitizer preferences in config file |
||
84 | * |
||
85 | * @param array $sanitizerPrefs array of sanitizer preferences to save |
||
86 | * |
||
87 | * @return void |
||
88 | */ |
||
89 | protected function saveSanitizerPrefrences($sanitizerPrefs) |
||
100 | } |
||
101 |