Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 64... Línea 64...
64
     * Return number of days for methods daystakingcourse and daysuntilcompletion
64
     * Return number of days for methods daystakingcourse and daysuntilcompletion
65
     *
65
     *
66
     * @param int|null $value
66
     * @param int|null $value
67
     * @param stdClass $row
67
     * @param stdClass $row
68
     * @return int|null
68
     * @return int|null
-
 
69
     *
-
 
70
     * @deprecated since Moodle 4.5 - please do not use this function any more
69
     */
71
     */
-
 
72
    #[\core\attribute\deprecated(null, mdl: 'MDL-82467', since: '4.5')]
70
    public static function get_days(?int $value, stdClass $row): ?int {
73
    public static function get_days(?int $value, stdClass $row): ?int {
-
 
74
        \core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
-
 
75
 
71
        // Do not show anything if there is no userid.
76
        // Do not show anything if there is no userid.
72
        if (!$row->userid) {
77
        if (!$row->userid) {
73
            return null;
78
            return null;
74
        }
79
        }
75
        return $value;
80
        return $value;