Detailed Description
Definition at line 112 of file lib.php.
Member Function Documentation
Record a course publication
- Parameters:
-
| int | $hubid | the hub id from the 'registered on hub' table |
| int | $courseid | the course id from site point of view |
| int | $enrollable | if the course is enrollable = 1, if downloadable = 0 |
| int | $hubcourseid | the course id from the hub point of view |
Definition at line 121 of file lib.php.
Delete publications for a hub
- Parameters:
-
| string | $huburl | |
| int | $enrollable | |
Definition at line 237 of file lib.php.
Delete a publication
- Parameters:
-
Definition at line 227 of file lib.php.
Get an array of all block instances for a given context
- Parameters:
-
| int | $contextid | a context id |
- Returns:
- array of block instances.
Definition at line 258 of file lib.php.
Get all publication for a course
- Parameters:
-
- Returns:
- array of publication
Definition at line 198 of file lib.php.
Get a publication for a course id on a hub (which is either the id of the unique possible enrollable publication of a course, either an id of one of the downloadable publication)
- Parameters:
-
| int | $hubcourseid | |
| string | $huburl | |
- Returns:
- object publication
Definition at line 187 of file lib.php.
Get courses publications
- Parameters:
-
| int | $hubid | specify a hub |
| int | $courseid | specify a course |
| int | $enrollable | specify type of publication (enrollable or downloadable) |
- Returns:
- array of publications
Definition at line 160 of file lib.php.
Get the hub concerned by a publication
- Parameters:
-
- Returns:
- object the hub (id, name, url, token)
Definition at line 214 of file lib.php.
Retrieve all the sorted course subjects
- Returns:
- array $subjects
Definition at line 267 of file lib.php.
Update a enrollable course publication
- Parameters:
-
Definition at line 136 of file lib.php.
Update a course publication
- Parameters:
-
Definition at line 148 of file lib.php.
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/course/publish/lib.php