Esempio n. 1
0
 /**
  * Get the system configs
  *
  * @param bool $noSensitiveValues
  * @return array
  */
 protected function getSystemConfigs($noSensitiveValues)
 {
     $keys = $this->systemConfig->getKeys();
     $configs = [];
     foreach ($keys as $key) {
         if ($noSensitiveValues) {
             $value = $this->systemConfig->getFilteredValue($key, serialize(null));
         } else {
             $value = $this->systemConfig->getValue($key, serialize(null));
         }
         if ($value !== 'N;') {
             $configs[$key] = $value;
         }
     }
     return $configs;
 }
Esempio n. 2
0
 /**
  * Looks up a system wide defined value and filters out sensitive data
  *
  * @param string $key the key of the value, under which it was saved
  * @param mixed $default the default value to be returned if the value isn't set
  * @return mixed the value or $default
  */
 public function getFilteredSystemValue($key, $default = '')
 {
     return $this->systemConfig->getFilteredValue($key, $default);
 }