public function readProperties($config = null, $filter = null)
    {
        if(is_null($config))
            $config = file_get_contents($this->configFileLocation);

        $props = preg_match_all('/\s*\$properties\[[\'\"]([^\"^\']+)[\'\"]\]\s*=\s*(.*?);[\n\r\t]?/s', $config, $m);

        $config = array();

        foreach ($m[1] as $i => $key) {
            if ($filter == null || stripos($key, $filter) !== false || stripos($m[2][$i], $filter) !== false)
                $config[(string)$key] = (string)$m[2][$i];
        }

        return $config;
    }