Lines Matching refs:value

55      * @var array - the configuration value to restore
95 $value = $namespace[$confName] ?? null;
99 $value = $conf[$confName] ?? null;
102 if (DataType::isBoolean($value)) {
105 * `trim($value) === ""`
106 * is true for a false value
108 return $value;
110 if ($value === null || trim($value) === "") {
113 return $value;
119 * @param $value
123 public function setConf(string $key, $value, ?string $pluginNamespace = PluginUtility::PLUGIN_BASE_NAME): SiteConfig
135 $oldValue = self::getConfValue($key, $value, $pluginNamespace);
138 Site::setConf($key, $value, $pluginNamespace);
150 foreach ($this->configurationValuesToRestore as $guid => $value) {
152 Site::setConf($confKey, $value, $plugin);
174 * @param int $default - the default value (1=true,0=false in the dokuwiki config system)
179 $value = $this->getValue($key, $default);
181 * Boolean in config is normally the value 1
183 return DataType::toBoolean($value);
188 // ensure the value is not -1, which disables caching
246 $value = $this->getValue(self::REM_CONF);
247 if ($value === null) {
251 return DataType::toInteger($value);
253 $message = "The rem configuration value ($value) is not a integer. Error: {$e->getMessage()}";
356 $value = $this->getValue('maxseclevel', null, self::GLOBAL_SCOPE);
358 return DataType::toInteger($value);
392 public function addInterWiki(string $name, string $value): SiteConfig
395 $this->interWikis[$name] = $value;
416 throw new ExceptionRuntime("The meta directory configuration value ('metadir') is null");
421 public function setCanonicalUrlType(string $value): SiteConfig
423 return $this->setConf(PageUrlType::CONF_CANONICAL_URL_TYPE, $value);
506 public function setConfDokuWiki(string $key, $value): SiteConfig
508 return $this->setConf($key, $value, self::GLOBAL_SCOPE);
516 $value = Site::getPrimaryColorValue();
518 $value === null ||
519 (trim($value) === "")) {
523 return ColorRgb::createFromString($value);
525 LogUtility::msg("The primary color value configuration ($value) is not valid. Error: {$e->getMessage()}");