1 |
efrain |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Packback\Lti1p3;
|
|
|
4 |
|
|
|
5 |
class LtiConstants
|
|
|
6 |
{
|
|
|
7 |
public const V1_3 = '1.3.0';
|
|
|
8 |
|
|
|
9 |
// Required message claims
|
|
|
10 |
public const MESSAGE_TYPE = 'https://purl.imsglobal.org/spec/lti/claim/message_type';
|
|
|
11 |
public const VERSION = 'https://purl.imsglobal.org/spec/lti/claim/version';
|
|
|
12 |
public const DEPLOYMENT_ID = 'https://purl.imsglobal.org/spec/lti/claim/deployment_id';
|
|
|
13 |
public const TARGET_LINK_URI = 'https://purl.imsglobal.org/spec/lti/claim/target_link_uri';
|
|
|
14 |
public const RESOURCE_LINK = 'https://purl.imsglobal.org/spec/lti/claim/resource_link';
|
|
|
15 |
public const ROLES = 'https://purl.imsglobal.org/spec/lti/claim/roles';
|
|
|
16 |
public const FOR_USER = 'https://purl.imsglobal.org/spec/lti/claim/for_user';
|
|
|
17 |
|
|
|
18 |
// Optional message claims
|
|
|
19 |
public const CONTEXT = 'https://purl.imsglobal.org/spec/lti/claim/context';
|
|
|
20 |
public const CUSTOM = 'https://purl.imsglobal.org/spec/lti/claim/custom';
|
|
|
21 |
public const LAUNCH_PRESENTATION = 'https://purl.imsglobal.org/spec/lti/claim/launch_presentation';
|
|
|
22 |
public const LIS = 'https://purl.imsglobal.org/spec/lti/claim/lis';
|
|
|
23 |
public const LTI1P1 = 'https://purl.imsglobal.org/spec/lti/claim/lti1p1';
|
|
|
24 |
public const ROLE_SCOPE_MENTOR = 'https://purlimsglobal.org/spec/lti/claim/role_scope_mentor';
|
|
|
25 |
public const TOOL_PLATFORM = 'https://purl.imsglobal.org/spec/lti/claim/tool_platform';
|
|
|
26 |
|
|
|
27 |
// LTI DL
|
|
|
28 |
public const DL_CONTENT_ITEMS = 'https://purl.imsglobal.org/spec/lti-dl/claim/content_items';
|
|
|
29 |
public const DL_DATA = 'https://purl.imsglobal.org/spec/lti-dl/claim/data';
|
|
|
30 |
public const DL_DEEP_LINK_SETTINGS = 'https://purl.imsglobal.org/spec/lti-dl/claim/deep_linking_settings';
|
|
|
31 |
public const DL_RESOURCE_LINK_TYPE = 'ltiResourceLink';
|
|
|
32 |
|
|
|
33 |
// LTI NRPS
|
|
|
34 |
public const NRPS_CLAIM_SERVICE = 'https://purl.imsglobal.org/spec/lti-nrps/claim/namesroleservice';
|
|
|
35 |
public const NRPS_SCOPE_MEMBERSHIP_READONLY = 'https://purl.imsglobal.org/spec/lti-nrps/scope/contextmembership.readonly';
|
|
|
36 |
|
|
|
37 |
// LTI AGS
|
|
|
38 |
public const AGS_CLAIM_ENDPOINT = 'https://purl.imsglobal.org/spec/lti-ags/claim/endpoint';
|
|
|
39 |
public const AGS_SCOPE_LINEITEM = 'https://purl.imsglobal.org/spec/lti-ags/scope/lineitem';
|
|
|
40 |
public const AGS_SCOPE_LINEITEM_READONLY = 'https://purl.imsglobal.org/spec/lti-ags/scope/lineitem.readonly';
|
|
|
41 |
public const AGS_SCOPE_RESULT_READONLY = 'https://purl.imsglobal.org/spec/lti-ags/scope/result.readonly';
|
|
|
42 |
public const AGS_SCOPE_SCORE = 'https://purl.imsglobal.org/spec/lti-ags/scope/score';
|
|
|
43 |
|
|
|
44 |
// LTI GS
|
|
|
45 |
public const GS_CLAIM_SERVICE = 'https://purl.imsglobal.org/spec/lti-gs/claim/groupsservice';
|
|
|
46 |
|
|
|
47 |
// User Vocab
|
|
|
48 |
public const SYSTEM_ADMINISTRATOR = 'http://purl.imsglobal.org/vocab/lis/v2/system/person#Administrator';
|
|
|
49 |
public const SYSTEM_NONE = 'http://purl.imsglobal.org/vocab/lis/v2/system/person#None';
|
|
|
50 |
public const SYSTEM_ACCOUNTADMIN = 'http://purl.imsglobal.org/vocab/lis/v2/system/person#AccountAdmin';
|
|
|
51 |
public const SYSTEM_CREATOR = 'http://purl.imsglobal.org/vocab/lis/v2/system/person#Creator';
|
|
|
52 |
public const SYSTEM_SYSADMIN = 'http://purl.imsglobal.org/vocab/lis/v2/system/person#SysAdmin';
|
|
|
53 |
public const SYSTEM_SYSSUPPORT = 'http://purl.imsglobal.org/vocab/lis/v2/system/person#SysSupport';
|
|
|
54 |
public const SYSTEM_USER = 'http://purl.imsglobal.org/vocab/lis/v2/system/person#User';
|
|
|
55 |
public const INSTITUTION_ADMINISTRATOR = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Administrator';
|
|
|
56 |
public const INSTITUTION_FACULTY = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Faculty';
|
|
|
57 |
public const INSTITUTION_GUEST = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Guest';
|
|
|
58 |
public const INSTITUTION_NONE = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#None';
|
|
|
59 |
public const INSTITUTION_OTHER = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Other';
|
|
|
60 |
public const INSTITUTION_STAFF = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Staff';
|
|
|
61 |
public const INSTITUTION_STUDENT = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Student';
|
|
|
62 |
public const INSTITUTION_ALUMNI = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Alumni';
|
|
|
63 |
public const INSTITUTION_INSTRUCTOR = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Instructor';
|
|
|
64 |
public const INSTITUTION_LEARNER = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Learner';
|
|
|
65 |
public const INSTITUTION_MEMBER = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Member';
|
|
|
66 |
public const INSTITUTION_MENTOR = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Mentor';
|
|
|
67 |
public const INSTITUTION_OBSERVER = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Observer';
|
|
|
68 |
public const INSTITUTION_PROSPECTIVESTUDENT = 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#ProspectiveStudent';
|
|
|
69 |
public const MEMBERSHIP_ADMINISTRATOR = 'http://purl.imsglobal.org/vocab/lis/v2/membership#Administrator';
|
|
|
70 |
public const MEMBERSHIP_CONTENTDEVELOPER = 'http://purl.imsglobal.org/vocab/lis/v2/membership#ContentDeveloper';
|
|
|
71 |
public const MEMBERSHIP_INSTRUCTOR = 'http://purl.imsglobal.org/vocab/lis/v2/membership#Instructor';
|
|
|
72 |
public const MEMBERSHIP_LEARNER = 'http://purl.imsglobal.org/vocab/lis/v2/membership#Learner';
|
|
|
73 |
public const MEMBERSHIP_MENTOR = 'http://purl.imsglobal.org/vocab/lis/v2/membership#Mentor';
|
|
|
74 |
public const MEMBERSHIP_MANAGER = 'http://purl.imsglobal.org/vocab/lis/v2/membership#Manager';
|
|
|
75 |
public const MEMBERSHIP_MEMBER = 'http://purl.imsglobal.org/vocab/lis/v2/membership#Member';
|
|
|
76 |
public const MEMBERSHIP_OFFICER = 'http://purl.imsglobal.org/vocab/lis/v2/membership#Officer';
|
|
|
77 |
|
|
|
78 |
// Context sub-roles
|
|
|
79 |
public const MEMBERSHIP_EXTERNALINSTRUCTOR = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#ExternalInstructor';
|
|
|
80 |
public const MEMBERSHIP_GRADER = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#Grader';
|
|
|
81 |
public const MEMBERSHIP_GUESTINSTRUCTOR = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#GuestInstructor';
|
|
|
82 |
public const MEMBERSHIP_LECTURER = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#Lecturer';
|
|
|
83 |
public const MEMBERSHIP_PRIMARYINSTRUCTOR = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#PrimaryInstructor';
|
|
|
84 |
public const MEMBERSHIP_SECONDARYINSTRUCTOR = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#SecondaryInstructor';
|
|
|
85 |
public const MEMBERSHIP_TA = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#TeachingAssistant';
|
|
|
86 |
public const MEMBERSHIP_TAGROUP = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#TeachingAssistantGroup';
|
|
|
87 |
public const MEMBERSHIP_TAOFFERING = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#TeachingAssistantOffering';
|
|
|
88 |
public const MEMBERSHIP_TASECTION = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#TeachingAssistantSection';
|
|
|
89 |
public const MEMBERSHIP_TASECTIONASSOCIATION = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#TeachingAssistantSectionAssociation';
|
|
|
90 |
public const MEMBERSHIP_TATEMPLATE = 'http://purl.imsglobal.org/vocab/lis/v2/membership/Instructor#TeachingAssistantTemplate';
|
|
|
91 |
|
|
|
92 |
// Context Vocab
|
|
|
93 |
public const COURSE_TEMPLATE = 'http://purl.imsglobal.org/vocab/lis/v2/course#CourseTemplate';
|
|
|
94 |
public const COURSE_OFFERING = 'http://purl.imsglobal.org/vocab/lis/v2/course#CourseOffering';
|
|
|
95 |
public const COURSE_SECTION = 'http://purl.imsglobal.org/vocab/lis/v2/course#CourseSection';
|
|
|
96 |
public const COURSE_GROUP = 'http://purl.imsglobal.org/vocab/lis/v2/course#Group';
|
|
|
97 |
|
|
|
98 |
// Message Types
|
|
|
99 |
public const MESSAGE_TYPE_DEEPLINK = 'LtiDeepLinkingRequest';
|
|
|
100 |
public const MESSAGE_TYPE_DEEPLINK_RESPONSE = 'LtiDeepLinkingResponse';
|
|
|
101 |
public const MESSAGE_TYPE_RESOURCE = 'LtiResourceLinkRequest';
|
|
|
102 |
public const MESSAGE_TYPE_SUBMISSIONREVIEW = 'LtiSubmissionReviewRequest';
|
|
|
103 |
}
|