/** * Get a list of log items names. * */ public static function getLogItemList() { // read the lizmap log configuration file $readConfigPath = parse_ini_file(jApp::varPath() . self::$lizmapLogConfig, True); $logItemList = array(); foreach ($readConfigPath as $section => $data) { $match = preg_match('#(^item:)#', $section, $matches); if (isset($matches[0])) { $logItemList[] = str_replace($matches[0], '', $section); } } self::$logItems = $logItemList; return self::$logItems; }