Skip to content

Catch missing data #52

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Catch missing data #52

wants to merge 6 commits into from

Conversation

kpommerenke
Copy link

These changes catch missing data, and make some classes more extendable.

Take into account that $line_item['resourceId'] and $line_item['tag'] are optional
deep_link_settings['data'] might be empty. It is only required if  present in LtiDeepLinkingRequest message: https://www.imsglobal.org/spec/lti-dl/v2p0#data
Use $request['target_link_uri'] as the fall-back redirect_uri.
Return new static instead of new LTI_Message_Launch so that the class can be extended.
Throw exception when nonce does not check out.
Remove var_dump() statement.
Return new static instead of new LTI_Deep_Link_Resource to make it easier to extend the class.
Include all line_item attributes in new deep link resource, not just scoreMaximum and label.
Offer default for missing $lineitem["startDateTime"] and $lineitem["endDateTime"].
Return new static instead of new LTI_Lineitem to make it easier to extend the class.
Decompose __toString() into two functions: to_array() and __toString()
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant