//settings handler
protected $configuration;
+ protected $doNotValidate = false;
+
/**
* @brief Constructor
* @param $configPrefix a string with the prefix for the configkey column (appconfig table)
}
$this->hasPagedResultSupport =
$this->ldap->hasPagedResultSupport();
+ $this->doNotValidate = !in_array($this->configPrefix,
+ Helper::getServerConfigurationPrefixes());
}
public function __destruct() {
}
public function __set($name, $value) {
+ $this->doNotValidate = false;
$before = $this->configuration->$name;
$this->configuration->$name = $value;
$after = $this->configuration->$name;
if(is_null($setParameters)) {
$setParameters = array();
}
+ $this->doNotValidate = false;
$this->configuration->setConfiguration($config, $setParameters);
if(count($setParameters) > 0) {
$this->configured = $this->validateConfiguration();
}
+
return $this->configured;
}
* @returns true if configuration seems OK, false otherwise
*/
private function validateConfiguration() {
+
+ if($this->doNotValidate) {
+ //don't do a validation if it is a new configuration with pure
+ //default values. Will be allowed on changes via __set or
+ //setConfiguration
+ return false;
+ }
+
// first step: "soft" checks: settings that are not really
// necessary, but advisable. If left empty, give an info message
$this->doSoftValidation();