ILIAS
release_8 Revision v8.23
|
Class to represent a line item. More...
Public Member Functions | |
__construct (Platform $platform, string $label, int $pointsPossible) | |
Class constructor. More... | |
getPlatform () | |
Get platform. More... | |
save () | |
Save the line item to the platform. More... | |
delete () | |
Delete the line item on the platform. More... | |
getOutcomes (int $limit=null) | |
Retrieve all outcomes. More... | |
readOutcome (User $user) | |
Retrieve the outcome for a user. More... | |
submitOutcome (Outcome $ltiOutcome, User $user) | |
Submit the outcome for a user. More... | |
deleteOutcome (User $user) | |
Delete the outcome for a user. More... | |
Static Public Member Functions | |
static | fromEndpoint (Platform $platform, string $endpoint) |
Retrieve a line item definition. More... | |
Data Fields | |
string | $label = null |
Label value. More... | |
int | $pointsPossible = 1 |
Points possible value. More... | |
string | $ltiResourceLinkId = null |
LTI Resource Link ID with which the line item is associated. More... | |
string | $resourceId = null |
Tool resource ID associated with the line item. More... | |
string | $tag = null |
Tag value. More... | |
int | $submitFrom = null |
Outcome start submit timestamp. More... | |
int | $submitUntil = null |
Outcome end submit timestamp. More... | |
string | $endpoint = null |
Line item endpoint. More... | |
Private Attributes | |
Platform | $platform = null |
Platform for this line item. More... | |
Class to represent a line item.
Definition at line 30 of file LineItem.php.
ILIAS\LTI\ToolProvider\LineItem::__construct | ( | Platform | $platform, |
string | $label, | ||
int | $pointsPossible | ||
) |
Class constructor.
Platform | $platform | Platform object |
string | $label | Label |
int | $pointsPossible | Points possible value |
Definition at line 101 of file LineItem.php.
References ILIAS\LTI\ToolProvider\LineItem\$label, ILIAS\LTI\ToolProvider\LineItem\$platform, and ILIAS\LTI\ToolProvider\LineItem\$pointsPossible.
ILIAS\LTI\ToolProvider\LineItem::delete | ( | ) |
Delete the line item on the platform.
Definition at line 134 of file LineItem.php.
References $service.
ILIAS\LTI\ToolProvider\LineItem::deleteOutcome | ( | User | $user | ) |
Delete the outcome for a user.
Definition at line 179 of file LineItem.php.
|
static |
Retrieve a line item definition.
Definition at line 192 of file LineItem.php.
ILIAS\LTI\ToolProvider\LineItem::getOutcomes | ( | int | $limit = null | ) |
Retrieve all outcomes.
int | null | $limit | Limit of outcomes to be returned in each request, null for service default |
Definition at line 145 of file LineItem.php.
ILIAS\LTI\ToolProvider\LineItem::getPlatform | ( | ) |
Get platform.
Definition at line 113 of file LineItem.php.
References ILIAS\LTI\ToolProvider\LineItem\$platform.
Referenced by ILIAS\LTI\ToolProvider\Service\LineItem\createLineItem(), ILIAS\LTI\ToolProvider\Service\LineItem\getAll(), and ILIAS\LTI\ToolProvider\Service\LineItem\saveLineItem().
ILIAS\LTI\ToolProvider\LineItem::readOutcome | ( | User | $user | ) |
Retrieve the outcome for a user.
Definition at line 156 of file LineItem.php.
ILIAS\LTI\ToolProvider\LineItem::save | ( | ) |
Save the line item to the platform.
Definition at line 123 of file LineItem.php.
References $service.
Submit the outcome for a user.
Definition at line 168 of file LineItem.php.
string ILIAS\LTI\ToolProvider\LineItem::$endpoint = null |
Line item endpoint.
Definition at line 86 of file LineItem.php.
Referenced by ILIAS\LTI\ToolProvider\Service\LineItem\getAll(), and ILIAS\LTI\ToolProvider\Service\LineItem\getLineItem().
string ILIAS\LTI\ToolProvider\LineItem::$label = null |
Label value.
Definition at line 37 of file LineItem.php.
Referenced by ILIAS\LTI\ToolProvider\LineItem\__construct().
string null ILIAS\LTI\ToolProvider\LineItem::$ltiResourceLinkId = null |
LTI Resource Link ID with which the line item is associated.
Definition at line 51 of file LineItem.php.
Referenced by ILIAS\LTI\ToolProvider\Service\LineItem\getAll().
|
private |
Platform for this line item.
Definition at line 93 of file LineItem.php.
Referenced by ILIAS\LTI\ToolProvider\LineItem\__construct(), ILIAS\LTI\ToolProvider\Service\LineItem\getLineItem(), and ILIAS\LTI\ToolProvider\LineItem\getPlatform().
int ILIAS\LTI\ToolProvider\LineItem::$pointsPossible = 1 |
Points possible value.
Definition at line 44 of file LineItem.php.
Referenced by ILIAS\LTI\ToolProvider\LineItem\__construct().
string null ILIAS\LTI\ToolProvider\LineItem::$resourceId = null |
Tool resource ID associated with the line item.
Definition at line 58 of file LineItem.php.
Referenced by ILIAS\LTI\ToolProvider\Service\LineItem\getAll().
int null ILIAS\LTI\ToolProvider\LineItem::$submitFrom = null |
Outcome start submit timestamp.
Definition at line 72 of file LineItem.php.
int null ILIAS\LTI\ToolProvider\LineItem::$submitUntil = null |
Outcome end submit timestamp.
Definition at line 79 of file LineItem.php.
string null ILIAS\LTI\ToolProvider\LineItem::$tag = null |
Tag value.
Definition at line 65 of file LineItem.php.
Referenced by ILIAS\LTI\ToolProvider\Service\LineItem\getAll().