|
course_format | $format |
| format the course format
|
|
renderer_base | $output |
| renderer format renderer
|
|
array | $updates |
| the tracked updates
|
|
◆ __construct()
core_courseformat\stateupdates::__construct |
( |
course_format |
$format | ) |
|
State update class constructor.
- Parameters
-
course_format | $format | Course format. |
◆ add_cm_create()
core_courseformat\stateupdates::add_cm_create |
( |
int |
$cmid | ) |
|
Add track about a course module created.
- Parameters
-
int | $cmid | the affected course module id |
◆ add_cm_delete()
core_courseformat\stateupdates::add_cm_delete |
( |
int |
$cmid | ) |
|
Add track about a course module deleted.
- Parameters
-
int | $cmid | the affected course module id |
◆ add_cm_put()
core_courseformat\stateupdates::add_cm_put |
( |
int |
$cmid | ) |
|
Add track about a course module state update.
- Parameters
-
int | $cmid | the affected course module id |
◆ add_section_create()
core_courseformat\stateupdates::add_section_create |
( |
int |
$sectionid | ) |
|
Add track about a new section created.
- Parameters
-
int | $sectionid | The affected section id. |
◆ add_section_delete()
core_courseformat\stateupdates::add_section_delete |
( |
int |
$sectionid | ) |
|
Add track about a section deleted.
- Parameters
-
int | $sectionid | The affected section id. |
◆ add_section_put()
core_courseformat\stateupdates::add_section_put |
( |
int |
$sectionid | ) |
|
Add track about a section state put.
- Parameters
-
int | $sectionid | The affected section id. |
◆ add_update()
core_courseformat\stateupdates::add_update |
( |
string |
$name, |
|
|
string |
$action, |
|
|
stdClass |
$fields |
|
) |
| |
|
protected |
Add a valid update message to the update list.
- Parameters
-
string | $name | the update name |
string | $action | the update action (usually update, create, delete) |
stdClass | $fields | the object fields |
◆ create_or_put_cm()
core_courseformat\stateupdates::create_or_put_cm |
( |
int |
$cmid, |
|
|
string |
$action |
|
) |
| |
|
protected |
Add track about section created or put.
- Parameters
-
int | $cmid | The affected course module id. |
string | $action | The action to track for the section ('create' or 'put'). |
◆ create_or_put_section()
core_courseformat\stateupdates::create_or_put_section |
( |
int |
$sectionid, |
|
|
string |
$action |
|
) |
| |
|
protected |
Add track about section created or put.
- Parameters
-
int | $sectionid | The affected section id. |
string | $action | The action to track for the section ('create' or 'put'). |
◆ jsonSerialize()
core_courseformat\stateupdates::jsonSerialize |
( |
| ) |
|
Return the data to serialize the current track in JSON.
- Return values
-
stdClass | the statement data structure |
The documentation for this class was generated from the following file:
- course/format/classes/stateupdates.php