first version
This commit is contained in:
parent
83a8dc5d90
commit
52f3f359af
10 changed files with 633 additions and 344 deletions
|
|
@ -198,10 +198,12 @@ class mod_timetable_external extends external_api {
|
|||
new external_single_structure(
|
||||
array(
|
||||
'number' => new external_value(PARAM_INT, 'number of period'),
|
||||
'starttime' => new external_value(PARAM_TEXT, 'starttime of period'),
|
||||
'endtime' => new external_value(PARAM_TEXT, 'endtime of period'),
|
||||
'days' => new external_multiple_structure(
|
||||
new external_single_structure(
|
||||
array(
|
||||
'substitution' => new external_value(PARAM_TEXT, 'substitution'),
|
||||
'substitutionold' => new external_value(PARAM_TEXT, 'substitution'),
|
||||
'lessons' => new external_multiple_structure(
|
||||
new external_single_structure(
|
||||
array(
|
||||
|
|
@ -209,8 +211,16 @@ class mod_timetable_external extends external_api {
|
|||
'teacher' => new external_value(PARAM_TEXT, 'name of teacher'),
|
||||
'room' => new external_value(PARAM_TEXT, 'name of room'),
|
||||
'subject' => new external_value(PARAM_TEXT, 'name of subject'),
|
||||
'classa' => new external_value(PARAM_TEXT, 'name of class'),
|
||||
'teachera'=> new external_value(PARAM_TEXT, 'name of teacher'),
|
||||
'rooma' => new external_value(PARAM_TEXT, 'name of room'),
|
||||
'subjecta' => new external_value(PARAM_TEXT, 'name of subject'),
|
||||
'substitution'=> new external_value(PARAM_TEXT, 'lesson is substitution'),
|
||||
'cancel' => new external_value(PARAM_TEXT, 'lesson is canceled'),
|
||||
'event' => new external_value(PARAM_TEXT, 'lesson is event'),
|
||||
'status' => new external_value(PARAM_TEXT, 'status of lesson'),
|
||||
'flag' => new external_value(PARAM_TEXT, 'flag of lesson')
|
||||
'flag' => new external_value(PARAM_TEXT, 'flag of lesson'),
|
||||
'text' => new external_value(PARAM_TEXT, 'description text')
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue