2 // This file is part of Moodle - http://moodle.org/
4 // Moodle is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
9 // Moodle is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
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/>.
20 * This file and class have been deprecated, the form has been renamed to core_course_editcategory_form and is not autoloaded when
21 * first used. Please update your code to use this new form.
23 * @deprecated since 2.6
24 * @todo remove in 2.7 MDL-41502
26 * @package core_course
27 * @copyright 2002 onwards Martin Dougiamas (http://dougiamas.com)
28 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
31 defined('MOODLE_INTERNAL') ||
die;
33 debugging('Please update your code to use core_course_editcategory_form (autloaded). This file will be removed in 2.7');
36 * Class editcategory_form.
38 * This file and class have been deprecated, the form has been renamed to core_course_editcategory_form and is not autoloaded when
39 * first used. Please update your code to use this new form.
41 * @deprecated since 2.6
42 * @todo remove in 2.7 MDL-41502
43 * @package core_course
44 * @copyright 2002 onwards Martin Dougiamas (http://dougiamas.com)
45 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
47 class editcategory_form
extends core_course_editcategory_form
{
50 * Constructs the form.
52 * @param null $customdata
53 * @param string $method
54 * @param string $target
55 * @param null $attributes
56 * @param bool $editable
58 public function __construct($action = null, $customdata = null, $method = 'post', $target = '', $attributes = null,
60 $customdata['categoryid'] = $customdata['category']->id
;
61 $customdata['parent'] = $customdata['category']->parent
;
62 unset($customdata['category']);
63 parent
::moodleform($action, $customdata, $method, $target, $attributes, $editable);