\OCP\Util::writeLog('user_ldap', 'Wiz: detected Port '. $p, \OCP\Util::DEBUG);
$this->result->addChange('ldap_port', $p);
$this->result->addChange('ldap_tls', intval($t));
-// $this->result->addSpecific('port', $p);
return $this->result;
}
}
class WizardResult {
protected $changes = array();
- protected $specifics = array();
public function addChange($key, $value) {
$this->changes[$key] = $value;
return count($this->changes) > 0;
}
- public function addSpecific($key, $value) {
- $this->specifics[$key] = $value;
- }
-
public function getResultArray() {
$result = array();
$result['changes'] = $this->changes;
- foreach($this->specifics as $key => $value) {
- $result[$key] = $value;
- }
return $result;
}
}
\ No newline at end of file