Lines Matching refs:setting
46 * If param is set, only specified setting is return.
48 * @param string $setting OPTIONAL Setting name to return
52 public function getPersistent(string $setting = '')
57 if ('' !== $setting) {
58 return $settings[$setting] ?? null;
67 * If param is set, only specified setting is return.
69 * @param string $setting OPTIONAL Setting name to return
73 public function getTransient(string $setting = '')
78 if ('' !== $setting) {
79 if (isset($settings[$setting])) {
80 return $settings[$setting];
83 if (false !== \strpos($setting, '.')) {
85 $keys = \explode('.', $setting);
104 * Sets persistent setting.