ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (ilLTIConsumerServiceBase $service) | |
Class constructor. More... | |
getTemplate () | |
Get the resource template. More... | |
getFormats () | |
Get the resource media types. More... | |
getMethods () | |
Get the resource methods. More... | |
getService () | |
Get the resource's service. More... | |
checkTool (array $scopes=array()) | |
Check to make sure the request is valid. More... | |
Data Fields | |
const | HTTP_POST = 'POST' |
HTTP Post method. More... | |
const | HTTP_GET = 'GET' |
HTTP Get method. More... | |
const | HTTP_PUT = 'PUT' |
HTTP Put method. More... | |
const | HTTP_DELETE = 'DELETE' |
HTTP Delete method. More... | |
Protected Member Functions | |
parseTemplate () | |
Parse the template for variables. More... | |
Protected Attributes | |
string | $type |
Type for this resource. More... | |
string | $id |
ID for this resource. More... | |
string | $template |
Template for this resource. More... | |
array | $variables |
Custom parameter substitution variables associated with this resource. More... | |
array | $formats |
Media types supported by this resource. More... | |
array | $methods |
HTTP actions supported by this resource. More... | |
array | $params |
Template variables parsed from the resource template. More... | |
Private Attributes | |
ilLTIConsumerServiceBase | $service |
Service associated with this resource. More... | |
Definition at line 30 of file class.ilLTIConsumerResourceBase.php.
ilLTIConsumerResourceBase::__construct | ( | ilLTIConsumerServiceBase | $service | ) |
Class constructor.
Service instance
Definition at line 74 of file class.ilLTIConsumerResourceBase.php.
References $service.
ilLTIConsumerResourceBase::checkTool | ( | array | $scopes = array() | ) |
Check to make sure the request is valid.
Definition at line 147 of file class.ilLTIConsumerResourceBase.php.
References $scopes, $token, and getService().
Referenced by ilLTIConsumerGradeServiceScores\execute().
ilLTIConsumerResourceBase::getFormats | ( | ) |
Get the resource media types.
Definition at line 97 of file class.ilLTIConsumerResourceBase.php.
References $formats.
ilLTIConsumerResourceBase::getMethods | ( | ) |
Get the resource methods.
Definition at line 105 of file class.ilLTIConsumerResourceBase.php.
References $methods.
ilLTIConsumerResourceBase::getService | ( | ) |
Get the resource's service.
Definition at line 113 of file class.ilLTIConsumerResourceBase.php.
References $service.
Referenced by checkTool().
ilLTIConsumerResourceBase::getTemplate | ( | ) |
Get the resource template.
Definition at line 89 of file class.ilLTIConsumerResourceBase.php.
References $template.
Referenced by parseTemplate().
|
protected |
Parse the template for variables.
Definition at line 121 of file class.ilLTIConsumerResourceBase.php.
References $_SERVER, $i, $params, $parts, $path, and getTemplate().
Referenced by ilLTIConsumerGradeServiceScores\execute().
|
protected |
Media types supported by this resource.
Definition at line 60 of file class.ilLTIConsumerResourceBase.php.
Referenced by getFormats().
|
protected |
ID for this resource.
Definition at line 51 of file class.ilLTIConsumerResourceBase.php.
|
protected |
HTTP actions supported by this resource.
Definition at line 63 of file class.ilLTIConsumerResourceBase.php.
Referenced by getMethods().
|
protected |
Template variables parsed from the resource template.
Definition at line 66 of file class.ilLTIConsumerResourceBase.php.
Referenced by ilLTIConsumerGradeServiceScores\execute(), and parseTemplate().
|
private |
Service associated with this resource.
Definition at line 45 of file class.ilLTIConsumerResourceBase.php.
Referenced by __construct(), and getService().
|
protected |
Template for this resource.
Definition at line 54 of file class.ilLTIConsumerResourceBase.php.
Referenced by getTemplate().
|
protected |
Type for this resource.
Definition at line 48 of file class.ilLTIConsumerResourceBase.php.
|
protected |
Custom parameter substitution variables associated with this resource.
Definition at line 57 of file class.ilLTIConsumerResourceBase.php.
const ilLTIConsumerResourceBase::HTTP_DELETE = 'DELETE' |
HTTP Delete method.
Definition at line 42 of file class.ilLTIConsumerResourceBase.php.
const ilLTIConsumerResourceBase::HTTP_GET = 'GET' |
HTTP Get method.
Definition at line 36 of file class.ilLTIConsumerResourceBase.php.
const ilLTIConsumerResourceBase::HTTP_POST = 'POST' |
HTTP Post method.
Definition at line 33 of file class.ilLTIConsumerResourceBase.php.
const ilLTIConsumerResourceBase::HTTP_PUT = 'PUT' |
HTTP Put method.
Definition at line 39 of file class.ilLTIConsumerResourceBase.php.