Lines Matching defs:value

56      * @var array - the configuration value to restore
96 $value = $namespace[$confName] ?? null;
100 $value = $conf[$confName] ?? null;
103 if (DataType::isBoolean($value)) {
106 * `trim($value) === ""`
107 * is true for a false value
109 return $value;
111 if ($value === null || trim($value) === "") {
114 return $value;
120 * @param $value
124 public function setConf(string $key, $value, ?string $pluginNamespace = PluginUtility::PLUGIN_BASE_NAME): SiteConfig
136 $oldValue = self::getConfValue($key, $value, $pluginNamespace);
139 Site::setConf($key, $value, $pluginNamespace);
151 foreach ($this->configurationValuesToRestore as $guid => $value) {
153 Site::setConf($confKey, $value, $plugin);
175 * @param int $default - the default value (1=true,0=false in the dokuwiki config system)
180 $value = $this->getValue($key, $default);
182 * Boolean in config is normally the value 1
184 return DataType::toBoolean($value);
189 // ensure the value is not -1, which disables caching
247 $value = $this->getValue(self::REM_CONF);
248 if ($value === null) {
252 return DataType::toInteger($value);
254 $message = "The rem configuration value ($value) is not a integer. Error: {$e->getMessage()}";
357 $value = $this->getValue('maxseclevel', null, self::GLOBAL_SCOPE);
359 return DataType::toInteger($value);
393 public function addInterWiki(string $name, string $value): SiteConfig
396 $this->interWikis[$name] = $value;
417 throw new ExceptionRuntime("The meta directory configuration value ('metadir') is null");
422 public function setCanonicalUrlType(string $value): SiteConfig
424 return $this->setConf(PageUrlType::CONF_CANONICAL_URL_TYPE, $value);
507 public function setConfDokuWiki(string $key, $value): SiteConfig
509 return $this->setConf($key, $value, self::GLOBAL_SCOPE);
517 $value = Site::getPrimaryColorValue();
519 $value === null ||
520 (trim($value) === "")) {
524 return ColorRgb::createFromString($value);
526 LogUtility::msg("The primary color value configuration ($value) is not valid. Error: {$e->getMessage()}");