ContentItem
class ContentItem
This is a general purpose ContentItem class with no Tsugi-specific dependencies.
Deep Linking 1.0 / Content Item Spec
https://www.imsglobal.org/specs/lticiv1p0/specification
Properties
$json |
Methods
No description
returnUrl - Returns the content_item_return_url
allowMultiple - Returns true if we can return LTI Link Items
allowLtiLinkItem - Returns true if we can return LTI Link Items
allowLink - Returns true if we can return HTML Items
allowContentItem - Returns true if we can return HTML Items
allowImportItem - Returns true if we can return IMS Common Cartridges
Return the parameters to send back to the LMS
addLtiLinkItem - Add an LTI Link Content Item
addLtiLinkItemExtended - Add an LTI Link Content Item
addContentItem - Add an Content Item
addContentItemExtended - Add an Content Item
addFileItem - Add an File Item
Details
at line 17
__construct()
at line 43
static string
returnUrl($postdata)
returnUrl - Returns the content_item_return_url
at line 51
static
allowMultiple($postdata)
allowMultiple - Returns true if we can return LTI Link Items
at line 62
static
allowLtiLinkItem($postdata)
allowLtiLinkItem - Returns true if we can return LTI Link Items
at line 79
static
allowLink($postdata)
allowLink - Returns true if we can return HTML Items
Upwards compatibility with DeepLink 2.0
at line 86
static
allowContentItem($postdata)
allowContentItem - Returns true if we can return HTML Items
at line 101
static
allowImportItem($postdata)
allowImportItem - Returns true if we can return IMS Common Cartridges
at line 121
getContentItemSelection($data = false)
Return the parameters to send back to the LMS
at line 145
addLtiLinkItem($url, $title = false, $text = false, $icon = false, $fa_icon = false, $custom = false, $points = false, $activityId = false, $additionalParams = array())
addLtiLinkItem - Add an LTI Link Content Item
at line 174
addLtiLinkItemExtended($params = array())
addLtiLinkItemExtended - Add an LTI Link Content Item
at line 277
addContentItem($url, $title = false, $text = false, $icon = false, $fa_icon = false, $additionalParams = array())
addContentItem - Add an Content Item
at line 305
addContentItemExtended($params = array())
addContentItemExtended - Add an Content Item
at line 373
addFileItem($url, $title = false, $additionalParams = array())
addFileItem - Add an File Item