MDL-51233 tool_lp: Remove unused ID number from learning plan templates
Conflicts: admin/tool/lp/version.php
This commit is contained in:
committed by
Frederic Massart
parent
e52513ee2b
commit
e9831af3c2
@@ -2251,10 +2251,6 @@ class external extends external_api {
|
||||
PARAM_TEXT,
|
||||
'Short name for the learning plan template'
|
||||
);
|
||||
$idnumber = new external_value(
|
||||
PARAM_TEXT,
|
||||
'If provided, must be a unique string to identify this learning plan template'
|
||||
);
|
||||
$duedate = new external_value(
|
||||
PARAM_INT,
|
||||
'The default due date for instances of this plan.'
|
||||
@@ -2298,7 +2294,6 @@ class external extends external_api {
|
||||
$returns = array(
|
||||
'id' => $id,
|
||||
'shortname' => $shortname,
|
||||
'idnumber' => $idnumber,
|
||||
'duedate' => $duedate,
|
||||
'duedateformatted' => $duedateformatted,
|
||||
'description' => $description,
|
||||
@@ -2324,12 +2319,6 @@ class external extends external_api {
|
||||
'Short name for the learning plan template.',
|
||||
VALUE_REQUIRED
|
||||
);
|
||||
$idnumber = new external_value(
|
||||
PARAM_TEXT,
|
||||
'If provided, must be a unique string to identify this learning plan template.',
|
||||
VALUE_DEFAULT,
|
||||
''
|
||||
);
|
||||
$duedate = new external_value(
|
||||
PARAM_INT,
|
||||
'The default due date for instances of this plan',
|
||||
@@ -2356,7 +2345,6 @@ class external extends external_api {
|
||||
|
||||
$params = array(
|
||||
'shortname' => $shortname,
|
||||
'idnumber' => $idnumber,
|
||||
'duedate' => $duedate,
|
||||
'description' => $description,
|
||||
'descriptionformat' => $descriptionformat,
|
||||
@@ -2386,11 +2374,10 @@ class external extends external_api {
|
||||
* @param array $context The context info.
|
||||
* @return \stdClass Record of new template.
|
||||
*/
|
||||
public static function create_template($shortname, $idnumber, $duedate, $description, $descriptionformat, $visible, $context) {
|
||||
public static function create_template($shortname, $duedate, $description, $descriptionformat, $visible, $context) {
|
||||
$params = self::validate_parameters(self::create_template_parameters(),
|
||||
array(
|
||||
'shortname' => $shortname,
|
||||
'idnumber' => $idnumber,
|
||||
'duedate' => $duedate,
|
||||
'description' => $description,
|
||||
'descriptionformat' => $descriptionformat,
|
||||
@@ -2542,11 +2529,6 @@ class external extends external_api {
|
||||
'Short name for the learning plan template.',
|
||||
VALUE_REQUIRED
|
||||
);
|
||||
$idnumber = new external_value(
|
||||
PARAM_TEXT,
|
||||
'If provided, must be a unique string to identify this learning plan template.',
|
||||
VALUE_REQUIRED
|
||||
);
|
||||
$duedate = new external_value(
|
||||
PARAM_INT,
|
||||
'Default due date for instances of this plan',
|
||||
@@ -2570,7 +2552,6 @@ class external extends external_api {
|
||||
$params = array(
|
||||
'id' => $id,
|
||||
'shortname' => $shortname,
|
||||
'idnumber' => $idnumber,
|
||||
'duedate' => $duedate,
|
||||
'description' => $description,
|
||||
'descriptionformat' => $descriptionformat,
|
||||
@@ -2601,7 +2582,6 @@ class external extends external_api {
|
||||
*/
|
||||
public static function update_template($id,
|
||||
$shortname,
|
||||
$idnumber,
|
||||
$duedate,
|
||||
$description,
|
||||
$descriptionformat,
|
||||
@@ -2611,7 +2591,6 @@ class external extends external_api {
|
||||
array(
|
||||
'id' => $id,
|
||||
'shortname' => $shortname,
|
||||
'idnumber' => $idnumber,
|
||||
'duedate' => $duedate,
|
||||
'description' => $description,
|
||||
'descriptionformat' => $descriptionformat,
|
||||
|
||||
Reference in New Issue
Block a user