Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 12... Línea 12...
12
// GNU General Public License for more details.
12
// GNU General Public License for more details.
13
//
13
//
14
// You should have received a copy of the GNU General Public License
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
Línea -... Línea 16...
-
 
16
 
-
 
17
 
-
 
18
defined('MOODLE_INTERNAL') || die();
-
 
19
 
-
 
20
require_once("$CFG->libdir/formslib.php");
16
 
21
 
17
/**
22
/**
18
 * Guest access plugin implementation.
23
 * Guest access plugin implementation.
-
 
24
 *
-
 
25
 * @deprecated since Moodle 5.0 - please use {@see enrol_guest\form\enrol_form}
19
 *
26
 *
20
 * @package    enrol_guest
27
 * @package    enrol_guest
21
 * @copyright  2010 Petr Skoda  {@link http://skodak.org}
28
 * @copyright  2010 Petr Skoda  {@link http://skodak.org}
22
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 */
-
 
24
 
-
 
25
defined('MOODLE_INTERNAL') || die();
-
 
26
 
30
 */
27
require_once("$CFG->libdir/formslib.php");
-
 
28
 
31
#[\core\attribute\deprecated(replacement: enrol_guest\form\enrol_form::class, since: '5.0', reason: 'Now a dynamic form is used')]
29
class enrol_guest_enrol_form extends moodleform {
32
class enrol_guest_enrol_form extends moodleform {
Línea -... Línea 33...
-
 
33
    protected $instance;
-
 
34
 
-
 
35
    /**
-
 
36
     * Constructor
-
 
37
     *
-
 
38
     * @param mixed $action
-
 
39
     * @param mixed $customdata
-
 
40
     * @param string $method
-
 
41
     * @param string $target
-
 
42
     * @param mixed $attributes
-
 
43
     * @param bool $editable
-
 
44
     * @param array $ajaxformdata
-
 
45
     */
-
 
46
    public function __construct($action=null, $customdata=null, $method='post', $target='', $attributes=null, $editable=true,
-
 
47
                                $ajaxformdata=null) {
-
 
48
        \core\deprecation::emit_deprecation([$this, __FUNCTION__]);
-
 
49
        parent::__construct($action, $customdata, $method, $target, $attributes, $editable, $ajaxformdata);
30
    protected $instance;
50
    }
31
 
51
 
32
    public function definition() {
52
    public function definition() {
33
        $mform = $this->_form;
53
        $mform = $this->_form;
34
        $instance = $this->_customdata;
54
        $instance = $this->_customdata;