private function parseProperties($content)
{
if (preg_match_all('/([a-zA-Z0-9\\-_\\.]*)=([^\\r\\n]*)/u', $content, $matches) > 0) {
//false or 0 matches
foreach ($matches[1] as $i => $k) {
$v = trim($matches[2][$i]);
switch (strtolower($v)) {
case "on":
case "true":
case "yes":
$v = true;
break;
case "off":
case "false":
case "no":
$v = false;
break;
}
if (isset($this->config[$k])) {
MainLogger::getLogger()->debug("[Config] Repeated property " . $k . " on file " . $this->file);
}
$this->config[$k] = $v;
}
}
}