Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 143... Línea 143...
143
        ))
143
        ))
144
            ->add_joins($this->get_joins())
144
            ->add_joins($this->get_joins())
145
            ->set_type(column::TYPE_TIMESTAMP)
145
            ->set_type(column::TYPE_TIMESTAMP)
146
            ->add_fields("{$enrolalias}.enrolperiod")
146
            ->add_fields("{$enrolalias}.enrolperiod")
147
            ->set_is_sortable(true)
147
            ->set_is_sortable(true)
148
            ->set_callback(static function(?int $enrolperiod): string {
148
            ->set_callback(static function(?int $enrolperiod, stdClass $row): string {
149
                if (!$enrolperiod) {
149
                if ($enrolperiod === 0) {
150
                    return '';
150
                    return '';
151
                }
151
                }
152
 
-
 
153
                return format_time($enrolperiod);
152
                return format::format_time($enrolperiod, $row);
154
            });
153
            });
Línea 155... Línea 154...
155
 
154
 
156
        // Start date column.
155
        // Start date column.
157
        $columns[] = (new column(
156
        $columns[] = (new column(