Class to represent a line-item.
More...
|
string | $label = null |
| Label value.
|
|
int float | $pointsPossible = 1 |
| Points possible value.
|
|
string | $ltiResourceLinkId = null |
| LTI Resource Link ID with which the line-item is associated.
|
|
string | $resourceId = null |
| Tool resource ID associated with the line-item.
|
|
string | $tag = null |
| Tag value.
|
|
int | $submitFrom = null |
| Outcome start submit timestamp.
|
|
int | $submitUntil = null |
| Outcome end submit timestamp.
|
|
string | $endpoint = null |
| Line-item endpoint.
|
|
SubmissionReview | $submissionReview = null |
| Submission review.
|
|
Class to represent a line-item.
- Author
- Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
- Copyright
- SPV Software Products
- Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
◆ __construct()
__construct |
( |
Platform | $platform, |
|
|
string | $label, |
|
|
int|float | $pointsPossible ) |
Class constructor.
- Parameters
-
Platform | $platform | Platform object |
string | $label | Label |
int | float | $pointsPossible | Points possible value |
◆ delete()
Delete the line-item on the platform.
- Returns
- bool True if successful
◆ deleteOutcome()
bool deleteOutcome |
( |
User | $user | ) |
|
Delete the outcome for a user.
- Parameters
-
- Returns
- bool True if successful, otherwise false
◆ fromEndpoint()
Retrieve a line-item definition.
- Parameters
-
Platform | $platform | Platform object |
string | $endpoint | ID value |
- Returns
- LineItem|bool LineItem object or false on error
◆ getOutcomes()
Outcome[] bool getOutcomes |
( |
?int | $limit = null | ) |
|
Retrieve all outcomes.
- Parameters
-
int | null | $limit | Limit of outcomes to be returned in each request, null for service default |
- Returns
- Outcome[]|bool Array of outcome objects, or false on error
◆ getPlatform()
Get platform.
- Returns
- Platform Platform object for this line-item.
◆ readOutcome()
Retrieve the outcome for a user.
- Parameters
-
- Returns
- Outcome|null|bool Outcome object, or null if none, or false on error
◆ save()
Save the line-item to the platform.
- Returns
- bool True if successful
◆ submitOutcome()
Submit the outcome for a user.
- Parameters
-
Outcome | $ltiOutcome | Outcome object |
User | $user | User object |
- Returns
- bool True if successful