|
| rename (int $cmid, string $name) |
| Rename a course module.
|
|
|
stdClass stdClass | $course |
| the course object.
|
|
◆ get_cm_info()
core_courseformat\local\baseactions::get_cm_info |
( |
| $cmid | ) |
|
|
protectedinherited |
Get the cm info.
- Parameters
-
- Return values
-
cm_info|null | Information for numbered cm or null if not found |
◆ get_course()
core_courseformat\local\baseactions::get_course |
( |
| ) |
|
|
protectedinherited |
Get the course.
- Return values
-
stdClass | the course object. |
◆ get_format()
core_courseformat\local\baseactions::get_format |
( |
| ) |
|
|
protectedinherited |
Get the course format.
- Return values
-
course_format | the course format. |
◆ get_section_info()
core_courseformat\local\baseactions::get_section_info |
( |
| $sectionid, |
|
|
int | $strictness = IGNORE_MISSING ) |
|
protectedinherited |
Get the section info.
- Parameters
-
int | $sectionid | the section id. |
int | $strictness | Use MUST_EXIST to throw exception if it doesn't |
- Return values
-
section_info|null | Information for numbered section or null if not found |
◆ rename()
core_courseformat\local\cmactions::rename |
( |
int | $cmid, |
|
|
string | $name ) |
Rename a course module.
- Parameters
-
int | $cmid | the course module id. |
string | $name | the new name. |
- Return values
-
bool | true if the course module was renamed, false otherwise. |
The documentation for this class was generated from the following file:
- course/format/classes/local/cmactions.php