Class to represent a content-item object
| author | Stephen P Vickers |
|---|---|
| version | 2.5.00 |
| license | GNU Lesser General Public License, version 3 |
| package | LTI |
__construct(string $type, \LTI_Content_Item_Placement $placementAdvice= NULL, string $id= NULL)
stringClass type of content-item
\LTI_Content_Item_PlacementPlacement object for item (optional)
stringURL of content-item (optional)
setMediaType(string $mediaType)
stringMedia type value
setText(string $text)
stringLink text value
setTitle(string $title)
stringTitle value
setUrl(string $url)
stringURL value
toJson(mixed $items)
mixedAn array of content items or a single item
LTI_LINK_MEDIA_TYPE = 'application/vnd.ims.lti.v1.ltilink'