Class to represent an LTI link content item. More...
Public Member Functions | |
| __construct (?string $id=null) | |
| Class constructor. | |
| object | toJsonObject () |
| Wrap the content items to form a complete value for the https://purl.imsglobal.org/spec/lti-dl/claim/content_items claim. | |
| Public Member Functions inherited from ContentItem | |
| Item | getItem () |
| Get content item. | |
| bool | delete (Platform $platform) |
| Delete a content-item. | |
| string | toJson () |
| Wrap the content item to form a JSON string. | |
Public Attributes | |
| string | $resourceLinkId = null |
| Resourcelink ID value. | |
| array | $lineItemIds = null |
| IDs for associated line-items. | |
| Public Attributes inherited from ContentItem | |
| array | $readonly = null |
| Readonly properties. | |
Protected Member Functions | |
| bool | fromJsonObject (object $obj) |
| Extract content item details from its JSON representation. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from ContentItem | |
| static ContentItem LtiLinkContentItem null | fromType (string $type, ?string $id=null) |
| Generate a Content Item object from its type. | |
| static ContentItem LtiLinkContentItem null | fromJsonItem (object $item) |
| Generate a Content Item object from its JSON representation. | |
| static ContentItem bool | fromEndpoint (Platform $platform, string $endpoint) |
| Retrieve a content item definition. | |
| Protected Attributes inherited from ContentItem | |
| Item | $item |
| Item object. | |
Class to represent an LTI link content item.
| __construct | ( | ?string | $id = null | ) |
Class constructor.
| string | null | $id | Endpoint of content item |
|
protected |
Extract content item details from its JSON representation.
| object | $obj | A JSON object representing an LTI link content item |
Reimplemented from ContentItem.
| object toJsonObject | ( | ) |
Wrap the content items to form a complete value for the https://purl.imsglobal.org/spec/lti-dl/claim/content_items claim.
Reimplemented from ContentItem.