Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 51... Línea 51...
51
        }
51
        }
52
    }
52
    }
53
    return $found;
53
    return $found;
54
}
54
}
Línea -... Línea 55...
-
 
55
 
-
 
56
/**
-
 
57
 * Old class for displaying the self enrolment form
-
 
58
 *
-
 
59
 * @deprecated since Moodle 5.0 - please use {@see enrol_self\form\enrol_form}
-
 
60
 */
55
 
61
#[\core\attribute\deprecated(replacement: enrol_self\form\enrol_form::class, since: '5.0', reason: 'Now a dynamic form is used')]
56
class enrol_self_enrol_form extends moodleform {
62
class enrol_self_enrol_form extends moodleform {
57
    protected $instance;
63
    protected $instance;
Línea 58... Línea 64...
58
    protected $toomany = false;
64
    protected $toomany = false;
-
 
65
 
-
 
66
    /**
-
 
67
     * Constructor
-
 
68
     *
-
 
69
     * @param mixed $action
-
 
70
     * @param mixed $customdata
-
 
71
     * @param string $method
-
 
72
     * @param string $target
-
 
73
     * @param mixed $attributes
-
 
74
     * @param bool $editable
-
 
75
     * @param array $ajaxformdata
-
 
76
     */
-
 
77
    public function __construct($action=null, $customdata=null, $method='post', $target='', $attributes=null, $editable=true,
-
 
78
                                $ajaxformdata=null) {
-
 
79
        \core\deprecation::emit_deprecation([$this, __FUNCTION__]);
-
 
80
        parent::__construct($action, $customdata, $method, $target, $attributes, $editable, $ajaxformdata);
-
 
81
    }
59
 
82
 
60
    /**
83
    /**
61
     * Overriding this function to get unique form id for multiple self enrolments.
84
     * Overriding this function to get unique form id for multiple self enrolments.
62
     *
85
     *
63
     * @return string form identifier
86
     * @return string form identifier