Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 22... Línea 22...
22
use core_reportbuilder\local\helpers\database;
22
use core_reportbuilder\local\helpers\database;
Línea 23... Línea 23...
23
 
23
 
24
/**
24
/**
25
 * Column group concatenation distinct aggregation type
25
 * Column group concatenation distinct aggregation type
-
 
26
 *
-
 
27
 * The value used for the separator between aggregated items can be specified by passing the 'separator' option
-
 
28
 * via {@see column::set_aggregation} or {@see column::set_aggregation_options} methods
26
 *
29
 *
27
 * @package     core_reportbuilder
30
 * @package     core_reportbuilder
28
 * @copyright   2021 Paul Holden <paulh@moodle.com>
31
 * @copyright   2021 Paul Holden <paulh@moodle.com>
29
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 */
33
 */
Línea 38... Línea 41...
38
    public static function get_name(): lang_string {
41
    public static function get_name(): lang_string {
39
        return new lang_string('aggregationgroupconcatdistinct', 'core_reportbuilder');
42
        return new lang_string('aggregationgroupconcatdistinct', 'core_reportbuilder');
40
    }
43
    }
Línea 41... Línea 44...
41
 
44
 
42
    /**
45
    /**
43
     * This aggregation can be performed on all non-timestamp columns in MySQL, Postgres and Oracle only
46
     * This aggregation can be performed on all non-timestamp columns in supported DBs
44
     *
47
     *
45
     * @param int $columntype
48
     * @param int $columntype
46
     * @return bool
49
     * @return bool
47
     */
50
     */
48
    public static function compatible(int $columntype): bool {
51
    public static function compatible(int $columntype): bool {
Línea 49... Línea 52...
49
        global $DB;
52
        global $DB;
50
 
53
 
51
        $dbsupportedtype = in_array($DB->get_dbfamily(), [
54
        $dbsupportedtype = in_array($DB->get_dbfamily(), [
52
            'mysql',
-
 
53
            'postgres',
55
            'mysql',
Línea 54... Línea 56...
54
            'oracle',
56
            'postgres',
55
        ]);
57
        ]);