public function get_groups($is_system = false)
{
$table = $this->tables['options'];
$is_systemq = '';
if ($is_system != false) {
$is_systemq = ' and is_system=1 ';
} else {
$is_systemq = ' and is_system=0 ';
}
$q = "SELECT option_group FROM {$table} WHERE module IS NULL";
$q = $q . $is_systemq . 'AND option_group IS NOT NULL GROUP BY option_group ORDER BY position ASC ';
$function_cache_id = __FUNCTION__ . crc32($q);
$res1 = false;
$res = $this->app->database_manager->query($q, $cache_id = $function_cache_id, $cache_group = 'options/global');
if (is_array($res) and !empty($res)) {
$res1 = array();
foreach ($res as $item) {
$res1[] = $item['option_group'];
}
}
return $res1;
}