private function writeProperties()
{
$content = "#Properties Config file\r\n#" . date("D M j H:i:s T Y") . "\r\n";
foreach ($this->config as $k => $v) {
if (is_bool($v) === true) {
$v = $v === true ? "on" : "off";
} elseif (is_array($v)) {
$v = implode(";", $v);
}
$content .= $k . "=" . $v . "\r\n";
}
return $content;
}