/** * Compose GROUP BY expression for boolean field * * @param array $layout_def * @return string */ public function queryGroupBy($layout_def) { $db = $this->reporter->db; // explicitly cast NULL to empty value which depends on field type for proper grouping $alias = parent::queryGroupBy($layout_def); $alias = $db->convert($alias, 'IFNULL', array($db->emptyValue($layout_def['type']))); return $alias; }
function queryGroupBy($layout_def) { // i guess qualifier and column_function are the same.. if (!empty($layout_def['qualifier'])) { $func_name = 'queryGroupBy' . $layout_def['qualifier']; if (method_exists($this, $func_name)) { return $this->{$func_name}($layout_def) . " \n"; } } return parent::queryGroupBy($layout_def) . " \n"; }