|
| | __construct (string $name, string $coursefullname, int $courseid, int $contextid, int $id, string $uuid, bool $supportsgrades, ?float $grademax, bool $iscourse) |
| | The published_resource constructor.
|
| |
| | get_contextid () |
| | Get the id of the context for this published resource.
|
| |
| | get_coursefullname () |
| | Get the full name of the course owning this published resource.
|
| |
| | get_courseid () |
| | Get the id of the course owning this published resource.
|
| |
| | get_grademax () |
| | Get the max grade for this published resource, if its a graded resource.
|
| |
| | get_id () |
| | Get the id of this published resource.
|
| |
| | get_name () |
| | Get the name of this published resource.
|
| |
| | get_uuid () |
| | Get the uuid for this published resource.
|
| |
| | is_course () |
| | Check whether this published resource is a course itself.
|
| |
| | supports_grades () |
| | Check whether this resource supports grades or not.
|
| |
◆ __construct()
| enrol_lti\local\ltiadvantage\viewobject\published_resource::__construct |
( |
string | $name, |
|
|
string | $coursefullname, |
|
|
int | $courseid, |
|
|
int | $contextid, |
|
|
int | $id, |
|
|
string | $uuid, |
|
|
bool | $supportsgrades, |
|
|
?float | $grademax, |
|
|
bool | $iscourse ) |
The published_resource constructor.
- Parameters
-
| string | $name | the name of this resource. |
| string | $coursefullname | full name of the course to which this published resource belongs. |
| int | $courseid | id of the course to which this published resource belongs. |
| int | $contextid | id of the context. |
| int | $id | id of the enrol_lti_tools instance (i.e. the id of the 'published resource'). |
| string | $uuid | a v4 uuid identifier for this published resource. |
| bool | $supportsgrades | whether or not this resource supports grades. |
| float | null | $grademax | the max grade or null if this is not a graded resource. |
| bool | $iscourse | whether or not this resource is itself a course. |
◆ get_contextid()
| enrol_lti\local\ltiadvantage\viewobject\published_resource::get_contextid |
( |
| ) |
|
Get the id of the context for this published resource.
- Return values
-
◆ get_coursefullname()
| enrol_lti\local\ltiadvantage\viewobject\published_resource::get_coursefullname |
( |
| ) |
|
Get the full name of the course owning this published resource.
- Return values
-
| string | the localised course full name. |
◆ get_courseid()
| enrol_lti\local\ltiadvantage\viewobject\published_resource::get_courseid |
( |
| ) |
|
Get the id of the course owning this published resource.
- Return values
-
◆ get_grademax()
| enrol_lti\local\ltiadvantage\viewobject\published_resource::get_grademax |
( |
| ) |
|
Get the max grade for this published resource, if its a graded resource.
- Return values
-
| float|null | the grade max, if grades are supported, else null. |
◆ get_id()
| enrol_lti\local\ltiadvantage\viewobject\published_resource::get_id |
( |
| ) |
|
Get the id of this published resource.
- Return values
-
◆ get_name()
| enrol_lti\local\ltiadvantage\viewobject\published_resource::get_name |
( |
| ) |
|
Get the name of this published resource.
- Return values
-
| string | the localised name. |
◆ get_uuid()
| enrol_lti\local\ltiadvantage\viewobject\published_resource::get_uuid |
( |
| ) |
|
Get the uuid for this published resource.
- Return values
-
◆ is_course()
| enrol_lti\local\ltiadvantage\viewobject\published_resource::is_course |
( |
| ) |
|
Check whether this published resource is a course itself.
- Return values
-
| bool | true if it's a course, false otherwise. |
◆ supports_grades()
| enrol_lti\local\ltiadvantage\viewobject\published_resource::supports_grades |
( |
| ) |
|
Check whether this resource supports grades or not.
- Return values
-
| bool | true if supported, false otherwise. |
The documentation for this class was generated from the following file:
- enrol/lti/classes/local/ltiadvantage/viewobject/published_resource.php