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
)
string
Class type of content-item
\LTI_Content_Item_Placement
Placement object for item (optional)
string
URL of content-item (optional)
setMediaType(string $mediaType)
string
Media type value
setText(string $text)
string
Link text value
setTitle(string $title)
string
Title value
setUrl(string $url)
string
URL value
toJson(mixed $items)
mixed
An array of content items or a single item
LTI_LINK_MEDIA_TYPE = 'application/vnd.ims.lti.v1.ltilink'