|
static | execute (int $courseid, string $modname, int $targetsectionid, ?int $targetcmid=null) |
| This webservice will execute the create_module action from the course editor.
|
|
static | execute_parameters () |
| Webservice parameters.
|
|
static | execute_returns () |
| Webservice returns.
|
|
◆ execute()
static core_courseformat\external\new_module::execute |
( |
int | $courseid, |
|
|
string | $modname, |
|
|
int | $targetsectionid, |
|
|
?int | $targetcmid = null ) |
|
static |
This webservice will execute the create_module action from the course editor.
The action will register in a {
- See also
- core_courseformat\stateupdates} all the affected sections, cms and course attribute. This object (in JSON) will be sent back to the frontend editor to refresh the updated state elements.
By default, {
- See also
- core_courseformat\stateupdates} will register only create, delete and update events on cms, sections and the general course data. However, if some plugin needs adhoc messages for its own mutation module, extend this class in format_XXX::course.
- Parameters
-
int | $courseid | the course id |
string | $modname | the module name |
int | $targetsectionid | the target section id |
int | null | $targetcmid | optional target cm id |
- Return values
-
string | Course state in JSON |
◆ execute_parameters()
static core_courseformat\external\new_module::execute_parameters |
( |
| ) |
|
|
static |
Webservice parameters.
- Return values
-
external_function_parameters | |
◆ execute_returns()
static core_courseformat\external\new_module::execute_returns |
( |
| ) |
|
|
static |
Webservice returns.
- Return values
-
The documentation for this class was generated from the following file:
- course/format/classes/external/new_module.php