ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilLTIConsumeProvider Class Reference
+ Collaboration diagram for ilLTIConsumeProvider:

Public Member Functions

 __construct ($providerId=null)
 ilLTIConsumeProvider constructor. More...
 
 getId ()
 
 setId (int $id)
 
 getTitle ()
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getAvailability ()
 
 setAvailability (int $availability)
 
 getRemarks ()
 
 setRemarks (string $remarks)
 
 getTimeToDelete ()
 
 setTimeToDelete (int $time_to_delete)
 
 getLogLevel ()
 
 setLogLevel (int $log_level)
 
 getProviderUrl ()
 
 setProviderUrl (string $provider_url)
 
 getProviderKey ()
 
 setProviderKey (string $provider_key)
 
 getProviderSecret ()
 
 setProviderSecret (string $provider_secret)
 
 isProviderKeyCustomizable ()
 
 setProviderKeyCustomizable (bool $provider_key_customizable)
 
 getProviderIconFilename ()
 
 setProviderIconFilename (string $provider_icon_filename)
 
 getProviderIcon ()
 
 hasProviderIcon ()
 
 setProviderIcon (ilLTIConsumeProviderIcon $providerIcon)
 
 hasProviderIconUploadInput ()
 
 getProviderIconUploadInput ()
 
 setProviderIconUploadInput (ilImageFileInputGUI $providerIconUploadInput)
 
 isValidCategory (string $category)
 
 getCategory ()
 
 setCategory (string $category)
 
 getProviderXml ()
 
 setProviderXml (string $provider_xml)
 
 isExternalProvider ()
 
 setIsExternalProvider (bool $is_external_provider)
 
 getLaunchMethod ()
 
 setLaunchMethod (string $launch_method)
 
 getHasOutcome ()
 
 setHasOutcome (bool $has_outcome)
 
 getMasteryScore ()
 
 setMasteryScore (float $mastery_score)
 
 getMasteryScorePercent ()
 
 setMasteryScorePercent (float $mastery_score_percent)
 
 isKeepLp ()
 
 setKeepLp (bool $keep_lp)
 
 getPrivacyIdent ()
 
 setPrivacyIdent ($privacy_ident)
 
 getPrivacyName ()
 
 setPrivacyName (string $privacy_name)
 
 getIncludeUserPicture ()
 
 setIncludeUserPicture (bool $include_user_picture)
 
 getPrivacyCommentDefault ()
 
 setPrivacyCommentDefault (string $privacy_comment_default)
 
 getAlwaysLearner ()
 
 setAlwaysLearner (bool $always_learner)
 
 getUseProviderId ()
 
 setUseProviderId (bool $use_provider_id)
 
 getUseXapi ()
 
 setUseXapi (bool $use_xapi)
 
 getXapiLaunchUrl ()
 
 setXapiLaunchUrl (string $xapi_launch_url)
 
 getXapiLaunchKey ()
 
 setXapiLaunchKey (string $xapi_launch_key)
 
 getXapiLaunchSecret ()
 
 setXapiLaunchSecret (string $xapi_launch_secret)
 
 getXapiActivityId ()
 
 setXapiActivityId (string $xapi_activity_id)
 
 getCustomParams ()
 
 setCustomParams (string $custom_params)
 
 getKeywordsArray ()
 
 getKeywords ()
 
 setKeywords (string $keywords)
 
 getCreator ()
 
 setCreator (int $creator)
 
 getAcceptedBy ()
 
 setAcceptedBy (int $accepted_by)
 
 isGlobal ()
 
 setIsGlobal (bool $is_global)
 
 assignFromDbRow ($dbRow)
 
 load ()
 
 save ()
 
 update ()
 
 insert ()
 
 delete ()
 
 isAcceptableAsGlobal ()
 
 isResetableToUserDefined ()
 

Static Public Member Functions

static getInstance ($providerId=null)
 Inits class static. More...
 
static getCategoriesSelectOptions ()
 
static getValidCategories ()
 

Data Fields

const AVAILABILITY_NONE = 0
 
const AVAILABILITY_EXISTING = 1
 
const AVAILABILITY_CREATE = 2
 
const CATEGORY_ASSESSMENT = 'assessment'
 
const CATEGORY_FEEDBACK = 'feedback'
 
const CATEGORY_CONTENT = 'content'
 
const CATEGORY_COMMUNICATION = 'communication'
 
const CATEGORY_ORGANISATION = 'organisation'
 
const LAUNCH_METHOD_OWN = 'ownWin'
 
const LAUNCH_METHOD_NEW = 'newWin'
 
const PRIVACY_IDENT_IL_UUID_USER_ID = 0
 
const PRIVACY_IDENT_IL_UUID_EXT_ACCOUNT = 1
 
const PRIVACY_IDENT_IL_UUID_LOGIN = 2
 
const PRIVACY_IDENT_REAL_EMAIL = 3
 
const PRIVACY_IDENT_IL_UUID_SHA256 = 5
 
const PRIVACY_NAME_NONE = 0
 
const PRIVACY_NAME_FIRSTNAME = 1
 
const PRIVACY_NAME_LASTNAME = 2
 
const PRIVACY_NAME_FULLNAME = 3
 

Protected Member Functions

 getInsertUpdateFields ()
 

Protected Attributes

 $id = 0
 
 $title = ''
 
 $description = ''
 
 $availability = self::AVAILABILITY_NONE
 
 $remarks = ''
 
 $time_to_delete = 0
 
 $log_level = 0
 
 $provider_url = ''
 
 $provider_key = ''
 
 $provider_secret = ''
 
 $provider_key_customizable = true
 
 $provider_icon_filename = ''
 
 $providerIcon = null
 
 $providerIconUploadInput = null
 
 $category = self::CATEGORY_CONTENT
 
 $provider_xml = ''
 
 $is_external_provider = false
 
 $launch_method = self::LAUNCH_METHOD_NEW
 
 $has_outcome = false
 
 $mastery_score = 0.8
 
 $keep_lp = false
 
 $privacy_ident = self::PRIVACY_IDENT_IL_UUID_USER_ID
 
 $privacy_name = self::PRIVACY_NAME_NONE
 
 $include_user_picture = false
 
 $privacy_comment_default = ''
 
 $always_learner = false
 
 $use_provider_id = false
 
 $use_xapi = false
 
 $xapi_launch_url = ''
 
 $xapi_launch_key = ''
 
 $xapi_launch_secret = ''
 
 $xapi_activity_id = ''
 
 $custom_params = ''
 
 $keywords = ''
 
 $creator = 0
 
 $accepted_by = 0
 
 $is_global = false
 

Detailed Description

Definition at line 14 of file class.ilLTIConsumeProvider.php.

Constructor & Destructor Documentation

◆ __construct()

ilLTIConsumeProvider::__construct (   $providerId = null)

ilLTIConsumeProvider constructor.

Parameters
null$providerId

Definition at line 126 of file class.ilLTIConsumeProvider.php.

127 {
128 if ($providerId) {
129 $this->setId($providerId);
130 $this->load();
131 }
132 }

References load(), and setId().

+ Here is the call graph for this function:

Member Function Documentation

◆ assignFromDbRow()

ilLTIConsumeProvider::assignFromDbRow (   $dbRow)
Parameters
$dbRow
Exceptions

ILIAS\Filesystem\Exception\IOException

Definition at line 853 of file class.ilLTIConsumeProvider.php.

854 {
855 foreach ($dbRow as $field => $value) {
856 switch ($field) {
857 case 'id': $this->setId((int) $value); break;
858 case 'title': $this->setTitle($value); break;
859 case 'description': $this->setDescription($value); break;
860 case 'availability': $this->setAvailability((int) $value); break;
861 case 'remarks': $this->setRemarks($value); break;
862 case 'time_to_delete': $this->setTimeToDelete((int) $value); break;
863 case 'log_level': $this->setLogLevel((int) $value); break;
864 case 'provider_url': $this->setProviderUrl($value); break;
865 case 'provider_key': $this->setProviderKey($value); break;
866 case 'provider_secret': $this->setProviderSecret($value); break;
867 case 'provider_key_customizable': $this->setProviderKeyCustomizable((bool) $value); break;
868 case 'provider_icon': $this->setProviderIconFilename($value); break;
869 case 'category': $this->setCategory($value); break;
870 case 'provider_xml': $this->setProviderXml($value); break;
871 case 'external_provider': $this->setIsExternalProvider((bool) $value); break;
872 case 'launch_method': $this->setLaunchMethod($value); break;
873 case 'has_outcome': $this->setHasOutcome((bool) $value); break;
874 case 'mastery_score': $this->setMasteryScore((float) $value); break;
875 case 'keep_lp': $this->setKeepLp((bool) $value); break;
876 case 'privacy_ident': $this->setPrivacyIdent($value); break;
877 case 'privacy_name': $this->setPrivacyName($value); break;
878 case 'inc_usr_pic': $this->setIncludeUserPicture((bool) $value); break;
879 case 'privacy_comment_default': $this->setPrivacyCommentDefault($value); break;
880 case 'always_learner': $this->setAlwaysLearner((bool) $value); break;
881 case 'use_provider_id': $this->setUseProviderId((bool) $value); break;
882 case 'use_xapi': $this->setUseXapi((bool) $value); break;
883 case 'xapi_launch_url': $this->setXapiLaunchUrl((string) $value); break;
884 case 'xapi_launch_key': $this->setXapiLaunchKey((string) $value); break;
885 case 'xapi_launch_secret': $this->setXapiLaunchSecret((string) $value); break;
886 case 'xapi_activity_id': $this->setXapiActivityId((string) $value); break;
887 case 'custom_params': $this->setCustomParams((string) $value); break;
888 case 'keywords': $this->setKeywords((string) $value); break;
889 case 'creator': $this->setCreator((int) $value); break;
890 case 'accepted_by': $this->setAcceptedBy((int) $value); break;
891 case 'global': $this->setIsGlobal((bool) $value); break;
892 }
893 }
894
895 $this->setProviderIcon(new ilLTIConsumeProviderIcon($this->getId()));
896 $this->getProviderIcon()->setFilename($this->getProviderIconFilename());
897 }
setProviderUrl(string $provider_url)
setPrivacyCommentDefault(string $privacy_comment_default)
setUseProviderId(bool $use_provider_id)
setCustomParams(string $custom_params)
setTimeToDelete(int $time_to_delete)
setDescription(string $description)
setXapiLaunchSecret(string $xapi_launch_secret)
setProviderIconFilename(string $provider_icon_filename)
setProviderKey(string $provider_key)
setMasteryScore(float $mastery_score)
setIncludeUserPicture(bool $include_user_picture)
setIsExternalProvider(bool $is_external_provider)
setXapiLaunchUrl(string $xapi_launch_url)
setAlwaysLearner(bool $always_learner)
setProviderKeyCustomizable(bool $provider_key_customizable)
setProviderIcon(ilLTIConsumeProviderIcon $providerIcon)
setXapiActivityId(string $xapi_activity_id)
setXapiLaunchKey(string $xapi_launch_key)
setLaunchMethod(string $launch_method)
setProviderSecret(string $provider_secret)
setProviderXml(string $provider_xml)
setPrivacyName(string $privacy_name)

References getId(), getProviderIcon(), getProviderIconFilename(), setAcceptedBy(), setAlwaysLearner(), setAvailability(), setCategory(), setCreator(), setCustomParams(), setDescription(), setHasOutcome(), setId(), setIncludeUserPicture(), setIsExternalProvider(), setIsGlobal(), setKeepLp(), setKeywords(), setLaunchMethod(), setLogLevel(), setMasteryScore(), setPrivacyCommentDefault(), setPrivacyIdent(), setPrivacyName(), setProviderIcon(), setProviderIconFilename(), setProviderKey(), setProviderKeyCustomizable(), setProviderSecret(), setProviderUrl(), setProviderXml(), setRemarks(), setTimeToDelete(), setTitle(), setUseProviderId(), setUseXapi(), setXapiActivityId(), setXapiLaunchKey(), setXapiLaunchSecret(), and setXapiLaunchUrl().

Referenced by load().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilLTIConsumeProvider::delete ( )

Definition at line 1003 of file class.ilLTIConsumeProvider.php.

1004 {
1005 global $DIC; /* @var \ILIAS\DI\Container $DIC */
1006
1007 $DIC->database()->manipulateF(
1008 "DELETE FROM lti_ext_provider WHERE id = %s",
1009 ['integer'],
1010 [$this->getId()]
1011 );
1012 }
$DIC
Definition: xapitoken.php:46

References $DIC, and getId().

+ Here is the call graph for this function:

◆ getAcceptedBy()

ilLTIConsumeProvider::getAcceptedBy ( )
Returns
int

Definition at line 820 of file class.ilLTIConsumeProvider.php.

820 : int
821 {
822 return $this->accepted_by;
823 }

References $accepted_by.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getAlwaysLearner()

ilLTIConsumeProvider::getAlwaysLearner ( )
Returns
bool

Definition at line 646 of file class.ilLTIConsumeProvider.php.

646 : bool
647 {
649 }

References $always_learner.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getAvailability()

ilLTIConsumeProvider::getAvailability ( )
Returns
int

Definition at line 195 of file class.ilLTIConsumeProvider.php.

195 : int
196 {
197 return $this->availability;
198 }

References $availability.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getCategoriesSelectOptions()

static ilLTIConsumeProvider::getCategoriesSelectOptions ( )
static
Returns
array

Definition at line 391 of file class.ilLTIConsumeProvider.php.

392 {
393 global $DIC; /* @var \ILIAS\DI\Container $DIC */
394
395 $categories = [];
396
397 foreach (self::getValidCategories() as $category) {
398 switch ($category) {
400
401 $translation = $DIC->language()->txt('rep_add_new_def_grp_organisation');
402 break;
404
405 $translation = $DIC->language()->txt('rep_add_new_def_grp_communication');
406 break;
408
409 $translation = $DIC->language()->txt('rep_add_new_def_grp_content');
410 break;
412
413 $translation = $DIC->language()->txt('rep_add_new_def_grp_assessment');
414 break;
416
417 $translation = $DIC->language()->txt('rep_add_new_def_grp_feedback');
418 break;
419 }
420
421 $categories[$category] = $translation;
422 }
423
424 return $categories;
425 }

References $category, $DIC, CATEGORY_ASSESSMENT, CATEGORY_COMMUNICATION, CATEGORY_CONTENT, CATEGORY_FEEDBACK, and CATEGORY_ORGANISATION.

Referenced by ilLTIConsumerProviderTableGUI\getCategoryTranslation(), ilLTIConsumerProviderTableGUI\initFilter(), and ilLTIConsumeProviderFormGUI\initForm().

+ Here is the caller graph for this function:

◆ getCategory()

ilLTIConsumeProvider::getCategory ( )
Returns
string

Definition at line 453 of file class.ilLTIConsumeProvider.php.

453 : string
454 {
455 return $this->category;
456 }

References $category.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getCreator()

ilLTIConsumeProvider::getCreator ( )
Returns
int

Definition at line 804 of file class.ilLTIConsumeProvider.php.

804 : int
805 {
806 return $this->creator;
807 }

References $creator.

Referenced by getInsertUpdateFields(), isAcceptableAsGlobal(), and isResetableToUserDefined().

+ Here is the caller graph for this function:

◆ getCustomParams()

ilLTIConsumeProvider::getCustomParams ( )
Returns
string

Definition at line 758 of file class.ilLTIConsumeProvider.php.

758 : string
759 {
761 }

References $custom_params.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getDescription()

ilLTIConsumeProvider::getDescription ( )
Returns
string

Definition at line 179 of file class.ilLTIConsumeProvider.php.

179 : string
180 {
181 return $this->description;
182 }

References $description.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getHasOutcome()

ilLTIConsumeProvider::getHasOutcome ( )
Returns
bool

Definition at line 517 of file class.ilLTIConsumeProvider.php.

517 : bool
518 {
519 return $this->has_outcome;
520 }

References $has_outcome.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getId()

ilLTIConsumeProvider::getId ( )
Returns
int

Definition at line 147 of file class.ilLTIConsumeProvider.php.

147 : int
148 {
149 return $this->id;
150 }

References $id.

Referenced by assignFromDbRow(), delete(), getInsertUpdateFields(), load(), save(), and update().

+ Here is the caller graph for this function:

◆ getIncludeUserPicture()

ilLTIConsumeProvider::getIncludeUserPicture ( )
Returns
bool

Definition at line 614 of file class.ilLTIConsumeProvider.php.

614 : bool
615 {
617 }

References $include_user_picture.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getInsertUpdateFields()

ilLTIConsumeProvider::getInsertUpdateFields ( )
protected
Returns
array

Definition at line 963 of file class.ilLTIConsumeProvider.php.

963 : array
964 {
965 return array(
966 'id' => array('integer', $this->getId()),
967 'title' => array('text', $this->getTitle()),
968 'description' => array('text', $this->getDescription()),
969 'availability' => array('integer', $this->getAvailability()),
970 'remarks' => array('text', $this->getRemarks()),
971 'time_to_delete' => array('integer', $this->getTimeToDelete()),
972 'provider_url' => array('text', $this->getProviderUrl()),
973 'provider_key' => array('text', $this->getProviderKey()),
974 'provider_secret' => array('text', $this->getProviderSecret()),
975 'provider_key_customizable' => array('integer', $this->isProviderKeyCustomizable()),
976 'provider_icon' => array('text', $this->getProviderIconFilename()),
977 'category' => array('text', $this->getCategory()),
978 'provider_xml' => array('text', $this->getProviderXml()),
979 'external_provider' => array('integer', $this->isExternalProvider()),
980 'launch_method' => array('text', $this->getLaunchMethod()),
981 'has_outcome' => array('integer', $this->getHasOutcome()),
982 'mastery_score' => array('float', $this->getMasteryScore()),
983 'keep_lp' => array('integer', $this->isKeepLp()),
984 'privacy_ident' => array('integer', $this->getPrivacyIdent()),
985 'privacy_name' => array('integer', $this->getPrivacyName()),
986 'inc_usr_pic' => array('integer', $this->getIncludeUserPicture()),
987 'privacy_comment_default' => array('text', $this->getPrivacyCommentDefault()),
988 'always_learner' => array('integer', $this->getAlwaysLearner()),
989 'use_provider_id' => array('integer', $this->getUseProviderId()),
990 'use_xapi' => array('integer', $this->getUseXapi()),
991 'xapi_launch_url' => array('text', $this->getXapiLaunchUrl()),
992 'xapi_launch_key' => array('text', $this->getXapiLaunchKey()),
993 'xapi_launch_secret' => array('text', $this->getXapiLaunchSecret()),
994 'xapi_activity_id' => array('text', $this->getXapiActivityId()),
995 'custom_params' => array('text', $this->getCustomParams()),
996 'keywords' => array('text', $this->getKeywords()),
997 'creator' => array('integer', $this->getCreator()),
998 'accepted_by' => array('integer', $this->getAcceptedBy()),
999 'global' => array('integer', (int) $this->isGlobal())
1000 );
1001 }

References getAcceptedBy(), getAlwaysLearner(), getAvailability(), getCategory(), getCreator(), getCustomParams(), getDescription(), getHasOutcome(), getId(), getIncludeUserPicture(), getKeywords(), getLaunchMethod(), getMasteryScore(), getPrivacyCommentDefault(), getPrivacyIdent(), getPrivacyName(), getProviderIconFilename(), getProviderKey(), getProviderSecret(), getProviderUrl(), getProviderXml(), getRemarks(), getTimeToDelete(), getTitle(), getUseProviderId(), getUseXapi(), getXapiActivityId(), getXapiLaunchKey(), getXapiLaunchSecret(), getXapiLaunchUrl(), isExternalProvider(), isGlobal(), isKeepLp(), and isProviderKeyCustomizable().

Referenced by insert(), and update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getInstance()

static ilLTIConsumeProvider::getInstance (   $providerId = null)
static

Inits class static.

Parameters
null$providerId
Returns
ilLTIConsumeProvider

Definition at line 139 of file class.ilLTIConsumeProvider.php.

140 {
141 return new self($providerId);
142 }

◆ getKeywords()

ilLTIConsumeProvider::getKeywords ( )
Returns
string

Definition at line 788 of file class.ilLTIConsumeProvider.php.

788 : string
789 {
790 return $this->keywords;
791 }

References $keywords.

Referenced by getInsertUpdateFields(), and getKeywordsArray().

+ Here is the caller graph for this function:

◆ getKeywordsArray()

ilLTIConsumeProvider::getKeywordsArray ( )
Returns
array

Definition at line 774 of file class.ilLTIConsumeProvider.php.

775 {
776 $keywords = [];
777
778 foreach (explode(';', $this->getKeywords()) as $keyword) {
779 $keywords[] = trim($keyword);
780 }
781
782 return $keywords;
783 }

References $keywords, and getKeywords().

+ Here is the call graph for this function:

◆ getLaunchMethod()

ilLTIConsumeProvider::getLaunchMethod ( )
Returns
string

Definition at line 501 of file class.ilLTIConsumeProvider.php.

501 : string
502 {
504 }

References $launch_method.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getLogLevel()

ilLTIConsumeProvider::getLogLevel ( )
Returns
int

Definition at line 243 of file class.ilLTIConsumeProvider.php.

243 : int
244 {
245 return $this->log_level;
246 }

References $log_level.

◆ getMasteryScore()

ilLTIConsumeProvider::getMasteryScore ( )
Returns
float

Definition at line 533 of file class.ilLTIConsumeProvider.php.

533 : float
534 {
536 }

References $mastery_score.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getMasteryScorePercent()

ilLTIConsumeProvider::getMasteryScorePercent ( )
Returns
float

Definition at line 549 of file class.ilLTIConsumeProvider.php.

549 : float
550 {
551 return $this->mastery_score * 100;
552 }

◆ getPrivacyCommentDefault()

ilLTIConsumeProvider::getPrivacyCommentDefault ( )
Returns
string

Definition at line 630 of file class.ilLTIConsumeProvider.php.

630 : string
631 {
633 }

References $privacy_comment_default.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getPrivacyIdent()

ilLTIConsumeProvider::getPrivacyIdent ( )
Returns
mixed

Definition at line 582 of file class.ilLTIConsumeProvider.php.

References $privacy_ident.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getPrivacyName()

ilLTIConsumeProvider::getPrivacyName ( )
Returns
string

Definition at line 598 of file class.ilLTIConsumeProvider.php.

598 : string
599 {
600 return $this->privacy_name;
601 }

References $privacy_name.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getProviderIcon()

ilLTIConsumeProvider::getProviderIcon ( )
Returns
ilLTIConsumeProviderIcon

Definition at line 339 of file class.ilLTIConsumeProvider.php.

References $providerIcon.

Referenced by assignFromDbRow(), and save().

+ Here is the caller graph for this function:

◆ getProviderIconFilename()

ilLTIConsumeProvider::getProviderIconFilename ( )
Returns
string

Definition at line 323 of file class.ilLTIConsumeProvider.php.

323 : string
324 {
326 }

References $provider_icon_filename.

Referenced by assignFromDbRow(), and getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getProviderIconUploadInput()

ilLTIConsumeProvider::getProviderIconUploadInput ( )
Returns
ilImageFileInputGUI

Definition at line 375 of file class.ilLTIConsumeProvider.php.

376 {
378 }
This class represents an image file property in a property form.

References $providerIconUploadInput.

Referenced by save().

+ Here is the caller graph for this function:

◆ getProviderKey()

ilLTIConsumeProvider::getProviderKey ( )
Returns
string

Definition at line 275 of file class.ilLTIConsumeProvider.php.

275 : string
276 {
277 return $this->provider_key;
278 }

References $provider_key.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getProviderSecret()

ilLTIConsumeProvider::getProviderSecret ( )
Returns
string

Definition at line 291 of file class.ilLTIConsumeProvider.php.

291 : string
292 {
294 }

References $provider_secret.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getProviderUrl()

ilLTIConsumeProvider::getProviderUrl ( )
Returns
string

Definition at line 259 of file class.ilLTIConsumeProvider.php.

259 : string
260 {
261 return $this->provider_url;
262 }

References $provider_url.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getProviderXml()

ilLTIConsumeProvider::getProviderXml ( )
Returns
string

Definition at line 469 of file class.ilLTIConsumeProvider.php.

469 : string
470 {
471 return $this->provider_xml;
472 }

References $provider_xml.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getRemarks()

ilLTIConsumeProvider::getRemarks ( )
Returns
string

Definition at line 211 of file class.ilLTIConsumeProvider.php.

211 : string
212 {
213 return $this->remarks;
214 }

References $remarks.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getTimeToDelete()

ilLTIConsumeProvider::getTimeToDelete ( )
Returns
int

Definition at line 227 of file class.ilLTIConsumeProvider.php.

227 : int
228 {
230 }

References $time_to_delete.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getTitle()

ilLTIConsumeProvider::getTitle ( )
Returns
string

Definition at line 163 of file class.ilLTIConsumeProvider.php.

163 : string
164 {
165 return $this->title;
166 }

References $title.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getUseProviderId()

ilLTIConsumeProvider::getUseProviderId ( )
Returns
bool

Definition at line 662 of file class.ilLTIConsumeProvider.php.

662 : bool
663 {
665 }

References $use_provider_id.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getUseXapi()

ilLTIConsumeProvider::getUseXapi ( )
Returns
bool

Definition at line 678 of file class.ilLTIConsumeProvider.php.

678 : bool
679 {
680 return $this->use_xapi;
681 }

References $use_xapi.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getValidCategories()

static ilLTIConsumeProvider::getValidCategories ( )
static

◆ getXapiActivityId()

ilLTIConsumeProvider::getXapiActivityId ( )
Returns
string

Definition at line 742 of file class.ilLTIConsumeProvider.php.

742 : string
743 {
745 }

References $xapi_activity_id.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getXapiLaunchKey()

ilLTIConsumeProvider::getXapiLaunchKey ( )
Returns
string

Definition at line 710 of file class.ilLTIConsumeProvider.php.

710 : string
711 {
713 }

References $xapi_launch_key.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getXapiLaunchSecret()

ilLTIConsumeProvider::getXapiLaunchSecret ( )
Returns
string

Definition at line 726 of file class.ilLTIConsumeProvider.php.

726 : string
727 {
729 }

References $xapi_launch_secret.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ getXapiLaunchUrl()

ilLTIConsumeProvider::getXapiLaunchUrl ( )
Returns
string

Definition at line 694 of file class.ilLTIConsumeProvider.php.

694 : string
695 {
697 }

References $xapi_launch_url.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ hasProviderIcon()

ilLTIConsumeProvider::hasProviderIcon ( )
Returns
bool

Definition at line 347 of file class.ilLTIConsumeProvider.php.

347 : bool
348 {
349 if (!($this->providerIcon instanceof ilLTIConsumeProviderIcon)) {
350 return false;
351 }
352
353 return strlen($this->providerIcon->getFilename());
354 }

◆ hasProviderIconUploadInput()

ilLTIConsumeProvider::hasProviderIconUploadInput ( )
Returns
bool

Definition at line 367 of file class.ilLTIConsumeProvider.php.

367 : bool
368 {
369 return $this->providerIconUploadInput instanceof ilImageFileInputGUI;
370 }

Referenced by save().

+ Here is the caller graph for this function:

◆ insert()

ilLTIConsumeProvider::insert ( )

Definition at line 951 of file class.ilLTIConsumeProvider.php.

952 {
953 global $DIC; /* @var \ILIAS\DI\Container $DIC */
954
955 $this->setId($DIC->database()->nextId('lti_ext_provider'));
956
957 $DIC->database()->insert('lti_ext_provider', $this->getInsertUpdateFields());
958 }

References $DIC, getInsertUpdateFields(), and setId().

Referenced by save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAcceptableAsGlobal()

ilLTIConsumeProvider::isAcceptableAsGlobal ( )

Definition at line 1014 of file class.ilLTIConsumeProvider.php.

1015 {
1016 return !$this->isGlobal() && (bool) $this->getCreator();
1017 }

References getCreator(), and isGlobal().

+ Here is the call graph for this function:

◆ isExternalProvider()

ilLTIConsumeProvider::isExternalProvider ( )
Returns
bool

Definition at line 485 of file class.ilLTIConsumeProvider.php.

485 : bool
486 {
488 }

References $is_external_provider.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ isGlobal()

ilLTIConsumeProvider::isGlobal ( )
Returns
bool

Definition at line 836 of file class.ilLTIConsumeProvider.php.

836 : bool
837 {
838 return $this->is_global;
839 }

References $is_global.

Referenced by getInsertUpdateFields(), isAcceptableAsGlobal(), and isResetableToUserDefined().

+ Here is the caller graph for this function:

◆ isKeepLp()

ilLTIConsumeProvider::isKeepLp ( )
Returns
bool

Definition at line 565 of file class.ilLTIConsumeProvider.php.

565 : bool
566 {
567 return $this->keep_lp;
568 }

References $keep_lp.

Referenced by getInsertUpdateFields().

+ Here is the caller graph for this function:

◆ isProviderKeyCustomizable()

ilLTIConsumeProvider::isProviderKeyCustomizable ( )
Returns
bool

Definition at line 307 of file class.ilLTIConsumeProvider.php.

307 : bool
308 {
310 }

References $provider_key_customizable.

Referenced by getInsertUpdateFields(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ isResetableToUserDefined()

ilLTIConsumeProvider::isResetableToUserDefined ( )

Definition at line 1019 of file class.ilLTIConsumeProvider.php.

1020 {
1021 return $this->isGlobal() && (bool) $this->getCreator();
1022 }

References getCreator(), and isGlobal().

+ Here is the call graph for this function:

◆ isValidCategory()

ilLTIConsumeProvider::isValidCategory ( string  $category)
Parameters
string$category
Returns
bool

Definition at line 445 of file class.ilLTIConsumeProvider.php.

446 {
447 return in_array($category, self::getValidCategories());
448 }

References $category.

Referenced by ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ load()

ilLTIConsumeProvider::load ( )
Exceptions

ILIAS\Filesystem\Exception\IOException

Definition at line 902 of file class.ilLTIConsumeProvider.php.

903 {
904 global $DIC; /* @var \ILIAS\DI\Container $DIC */
905
906 $query = "SELECT * FROM lti_ext_provider WHERE id = %s";
907 $res = $DIC->database()->queryF($query, array('integer'), array($this->getId()));
908
909 while ($row = $DIC->database()->fetchAssoc($res)) {
910 $this->assignFromDbRow($row);
911 }
912 }
$query
foreach($_POST as $key=> $value) $res

References $DIC, $query, $res, assignFromDbRow(), and getId().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilLTIConsumeProvider::save ( )
Exceptions

ILIAS\FileUpload\Exception\IllegalStateException

Exceptions

ILIAS\Filesystem\Exception\FileNotFoundException

Exceptions

ILIAS\Filesystem\Exception\IOException

Definition at line 919 of file class.ilLTIConsumeProvider.php.

920 {
921 if ($this->getId()) {
922 if ($this->hasProviderIconUploadInput()) {
923 $this->getProviderIcon()->handleUploadInputSubission($this->getProviderIconUploadInput());
924 $this->setProviderIconFilename($this->getProviderIcon()->getFilename());
925 }
926
927 $this->update();
928 } else {
929 $this->insert();
930
931 if ($this->hasProviderIconUploadInput()) {
932 $this->setProviderIcon(new ilLTIConsumeProviderIcon($this->getId()));
933
934 $this->getProviderIcon()->handleUploadInputSubission($this->getProviderIconUploadInput());
935 $this->setProviderIconFilename($this->getProviderIcon()->getFilename());
936
937 $this->update();
938 }
939 }
940 }

References getId(), getProviderIcon(), getProviderIconUploadInput(), hasProviderIconUploadInput(), insert(), setProviderIcon(), setProviderIconFilename(), and update().

+ Here is the call graph for this function:

◆ setAcceptedBy()

ilLTIConsumeProvider::setAcceptedBy ( int  $accepted_by)
Parameters
int$accepted_by

Definition at line 828 of file class.ilLTIConsumeProvider.php.

829 {
830 $this->accepted_by = $accepted_by;
831 }

References $accepted_by.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setAlwaysLearner()

ilLTIConsumeProvider::setAlwaysLearner ( bool  $always_learner)
Parameters
bool$always_learner

Definition at line 654 of file class.ilLTIConsumeProvider.php.

655 {
656 $this->always_learner = $always_learner;
657 }

References $always_learner.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setAvailability()

ilLTIConsumeProvider::setAvailability ( int  $availability)
Parameters
int$availability

Definition at line 203 of file class.ilLTIConsumeProvider.php.

204 {
205 $this->availability = $availability;
206 }

References $availability.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setCategory()

ilLTIConsumeProvider::setCategory ( string  $category)
Parameters
string$category

Definition at line 461 of file class.ilLTIConsumeProvider.php.

462 {
463 $this->category = $category;
464 }

References $category.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setCreator()

ilLTIConsumeProvider::setCreator ( int  $creator)
Parameters
int$creator

Definition at line 812 of file class.ilLTIConsumeProvider.php.

813 {
814 $this->creator = $creator;
815 }

References $creator.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setCustomParams()

ilLTIConsumeProvider::setCustomParams ( string  $custom_params)
Parameters
string$custom_params

Definition at line 766 of file class.ilLTIConsumeProvider.php.

767 {
768 $this->custom_params = $custom_params;
769 }

References $custom_params.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setDescription()

ilLTIConsumeProvider::setDescription ( string  $description)
Parameters
string$description

Definition at line 187 of file class.ilLTIConsumeProvider.php.

188 {
189 $this->description = $description;
190 }

References $description.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setHasOutcome()

ilLTIConsumeProvider::setHasOutcome ( bool  $has_outcome)
Parameters
bool$has_outcome

Definition at line 525 of file class.ilLTIConsumeProvider.php.

526 {
527 $this->has_outcome = $has_outcome;
528 }

References $has_outcome.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setId()

ilLTIConsumeProvider::setId ( int  $id)
Parameters
int$id

Definition at line 155 of file class.ilLTIConsumeProvider.php.

156 {
157 $this->id = $id;
158 }

References $id.

Referenced by __construct(), assignFromDbRow(), and insert().

+ Here is the caller graph for this function:

◆ setIncludeUserPicture()

ilLTIConsumeProvider::setIncludeUserPicture ( bool  $include_user_picture)
Parameters
bool$include_user_picture

Definition at line 622 of file class.ilLTIConsumeProvider.php.

623 {
624 $this->include_user_picture = $include_user_picture;
625 }

References $include_user_picture.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setIsExternalProvider()

ilLTIConsumeProvider::setIsExternalProvider ( bool  $is_external_provider)
Parameters
bool$is_external_provider

Definition at line 493 of file class.ilLTIConsumeProvider.php.

494 {
495 $this->is_external_provider = $is_external_provider;
496 }

References $is_external_provider.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setIsGlobal()

ilLTIConsumeProvider::setIsGlobal ( bool  $is_global)
Parameters
bool$is_global

Definition at line 844 of file class.ilLTIConsumeProvider.php.

845 {
846 $this->is_global = $is_global;
847 }

References $is_global.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setKeepLp()

ilLTIConsumeProvider::setKeepLp ( bool  $keep_lp)
Parameters
bool$keep_lp

Definition at line 573 of file class.ilLTIConsumeProvider.php.

574 {
575 $this->keep_lp = $keep_lp;
576 }

References $keep_lp.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setKeywords()

ilLTIConsumeProvider::setKeywords ( string  $keywords)
Parameters
string$keywords

Definition at line 796 of file class.ilLTIConsumeProvider.php.

797 {
798 $this->keywords = $keywords;
799 }

References $keywords.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setLaunchMethod()

ilLTIConsumeProvider::setLaunchMethod ( string  $launch_method)
Parameters
string$launch_method

Definition at line 509 of file class.ilLTIConsumeProvider.php.

510 {
511 $this->launch_method = $launch_method;
512 }

References $launch_method.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setLogLevel()

ilLTIConsumeProvider::setLogLevel ( int  $log_level)
Parameters
int$log_level

Definition at line 251 of file class.ilLTIConsumeProvider.php.

252 {
253 $this->log_level = $log_level;
254 }

References $log_level.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setMasteryScore()

ilLTIConsumeProvider::setMasteryScore ( float  $mastery_score)
Parameters
float$mastery_score

Definition at line 541 of file class.ilLTIConsumeProvider.php.

542 {
543 $this->mastery_score = $mastery_score;
544 }

References $mastery_score.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setMasteryScorePercent()

ilLTIConsumeProvider::setMasteryScorePercent ( float  $mastery_score_percent)
Parameters
float$mastery_score_percent

Definition at line 557 of file class.ilLTIConsumeProvider.php.

558 {
559 $this->mastery_score = $mastery_score_percent / 100;
560 }

Referenced by ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setPrivacyCommentDefault()

ilLTIConsumeProvider::setPrivacyCommentDefault ( string  $privacy_comment_default)
Parameters
string$privacy_comment_default

Definition at line 638 of file class.ilLTIConsumeProvider.php.

639 {
640 $this->privacy_comment_default = $privacy_comment_default;
641 }

References $privacy_comment_default.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setPrivacyIdent()

ilLTIConsumeProvider::setPrivacyIdent (   $privacy_ident)
Parameters
mixed$privacy_ident

Definition at line 590 of file class.ilLTIConsumeProvider.php.

591 {
592 $this->privacy_ident = $privacy_ident;
593 }

References $privacy_ident.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setPrivacyName()

ilLTIConsumeProvider::setPrivacyName ( string  $privacy_name)
Parameters
string$privacy_name

Definition at line 606 of file class.ilLTIConsumeProvider.php.

607 {
608 $this->privacy_name = $privacy_name;
609 }

References $privacy_name.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setProviderIcon()

ilLTIConsumeProvider::setProviderIcon ( ilLTIConsumeProviderIcon  $providerIcon)
Parameters
ilLTIConsumeProviderIcon$providerIcon

Definition at line 359 of file class.ilLTIConsumeProvider.php.

360 {
361 $this->providerIcon = $providerIcon;
362 }

References $providerIcon.

Referenced by assignFromDbRow(), and save().

+ Here is the caller graph for this function:

◆ setProviderIconFilename()

ilLTIConsumeProvider::setProviderIconFilename ( string  $provider_icon_filename)
Parameters
string$provider_icon_filename

Definition at line 331 of file class.ilLTIConsumeProvider.php.

332 {
333 $this->provider_icon_filename = $provider_icon_filename;
334 }

References $provider_icon_filename.

Referenced by assignFromDbRow(), and save().

+ Here is the caller graph for this function:

◆ setProviderIconUploadInput()

ilLTIConsumeProvider::setProviderIconUploadInput ( ilImageFileInputGUI  $providerIconUploadInput)
Parameters
ilImageFileInputGUI$providerIconUploadInput

Definition at line 383 of file class.ilLTIConsumeProvider.php.

384 {
385 $this->providerIconUploadInput = $providerIconUploadInput;
386 }

References $providerIconUploadInput.

Referenced by ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setProviderKey()

ilLTIConsumeProvider::setProviderKey ( string  $provider_key)
Parameters
string$provider_key

Definition at line 283 of file class.ilLTIConsumeProvider.php.

284 {
285 $this->provider_key = $provider_key;
286 }

References $provider_key.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setProviderKeyCustomizable()

ilLTIConsumeProvider::setProviderKeyCustomizable ( bool  $provider_key_customizable)
Parameters
bool$provider_key_customizable

Definition at line 315 of file class.ilLTIConsumeProvider.php.

316 {
317 $this->provider_key_customizable = $provider_key_customizable;
318 }

References $provider_key_customizable.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setProviderSecret()

ilLTIConsumeProvider::setProviderSecret ( string  $provider_secret)
Parameters
string$provider_secret

Definition at line 299 of file class.ilLTIConsumeProvider.php.

300 {
301 $this->provider_secret = $provider_secret;
302 }

References $provider_secret.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setProviderUrl()

ilLTIConsumeProvider::setProviderUrl ( string  $provider_url)
Parameters
string$provider_url

Definition at line 267 of file class.ilLTIConsumeProvider.php.

268 {
269 $this->provider_url = $provider_url;
270 }

References $provider_url.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setProviderXml()

ilLTIConsumeProvider::setProviderXml ( string  $provider_xml)
Parameters
string$provider_xml

Definition at line 477 of file class.ilLTIConsumeProvider.php.

478 {
479 $this->provider_xml = $provider_xml;
480 }

References $provider_xml.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setRemarks()

ilLTIConsumeProvider::setRemarks ( string  $remarks)
Parameters
string$remarks

Definition at line 219 of file class.ilLTIConsumeProvider.php.

220 {
221 $this->remarks = $remarks;
222 }

References $remarks.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setTimeToDelete()

ilLTIConsumeProvider::setTimeToDelete ( int  $time_to_delete)
Parameters
int$time_to_delete

Definition at line 235 of file class.ilLTIConsumeProvider.php.

236 {
237 $this->time_to_delete = $time_to_delete;
238 }

References $time_to_delete.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setTitle()

ilLTIConsumeProvider::setTitle ( string  $title)
Parameters
string$title

Definition at line 171 of file class.ilLTIConsumeProvider.php.

172 {
173 $this->title = $title;
174 }

References $title.

Referenced by assignFromDbRow().

+ Here is the caller graph for this function:

◆ setUseProviderId()

ilLTIConsumeProvider::setUseProviderId ( bool  $use_provider_id)
Parameters
bool$use_provider_id

Definition at line 670 of file class.ilLTIConsumeProvider.php.

671 {
672 $this->use_provider_id = $use_provider_id;
673 }

References $use_provider_id.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setUseXapi()

ilLTIConsumeProvider::setUseXapi ( bool  $use_xapi)
Parameters
bool$use_xapi

Definition at line 686 of file class.ilLTIConsumeProvider.php.

687 {
688 $this->use_xapi = $use_xapi;
689 }

References $use_xapi.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setXapiActivityId()

ilLTIConsumeProvider::setXapiActivityId ( string  $xapi_activity_id)
Parameters
string$xapi_activity_id

Definition at line 750 of file class.ilLTIConsumeProvider.php.

751 {
752 $this->xapi_activity_id = $xapi_activity_id;
753 }

References $xapi_activity_id.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setXapiLaunchKey()

ilLTIConsumeProvider::setXapiLaunchKey ( string  $xapi_launch_key)
Parameters
string$xapi_launch_key

Definition at line 718 of file class.ilLTIConsumeProvider.php.

719 {
720 $this->xapi_launch_key = $xapi_launch_key;
721 }

References $xapi_launch_key.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setXapiLaunchSecret()

ilLTIConsumeProvider::setXapiLaunchSecret ( string  $xapi_launch_secret)
Parameters
string$xapi_launch_secret

Definition at line 734 of file class.ilLTIConsumeProvider.php.

735 {
736 $this->xapi_launch_secret = $xapi_launch_secret;
737 }

References $xapi_launch_secret.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ setXapiLaunchUrl()

ilLTIConsumeProvider::setXapiLaunchUrl ( string  $xapi_launch_url)
Parameters
string$xapi_launch_url

Definition at line 702 of file class.ilLTIConsumeProvider.php.

703 {
704 $this->xapi_launch_url = $xapi_launch_url;
705 }

References $xapi_launch_url.

Referenced by assignFromDbRow(), and ilLTIConsumeProviderFormGUI\initProvider().

+ Here is the caller graph for this function:

◆ update()

ilLTIConsumeProvider::update ( )

Definition at line 942 of file class.ilLTIConsumeProvider.php.

943 {
944 global $DIC; /* @var \ILIAS\DI\Container $DIC */
945
946 $DIC->database()->update('lti_ext_provider', $this->getInsertUpdateFields(), array(
947 'id' => array('integer', $this->getId()),
948 ));
949 }

References $DIC, getId(), and getInsertUpdateFields().

Referenced by save().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $accepted_by

ilLTIConsumeProvider::$accepted_by = 0
protected

Definition at line 118 of file class.ilLTIConsumeProvider.php.

Referenced by getAcceptedBy(), and setAcceptedBy().

◆ $always_learner

ilLTIConsumeProvider::$always_learner = false
protected

Definition at line 98 of file class.ilLTIConsumeProvider.php.

Referenced by getAlwaysLearner(), and setAlwaysLearner().

◆ $availability

ilLTIConsumeProvider::$availability = self::AVAILABILITY_NONE
protected

Definition at line 22 of file class.ilLTIConsumeProvider.php.

Referenced by getAvailability(), and setAvailability().

◆ $category

ilLTIConsumeProvider::$category = self::CATEGORY_CONTENT
protected

◆ $creator

ilLTIConsumeProvider::$creator = 0
protected

Definition at line 116 of file class.ilLTIConsumeProvider.php.

Referenced by getCreator(), and setCreator().

◆ $custom_params

ilLTIConsumeProvider::$custom_params = ''
protected

Definition at line 112 of file class.ilLTIConsumeProvider.php.

Referenced by getCustomParams(), and setCustomParams().

◆ $description

ilLTIConsumeProvider::$description = ''
protected

Definition at line 20 of file class.ilLTIConsumeProvider.php.

Referenced by getDescription(), and setDescription().

◆ $has_outcome

ilLTIConsumeProvider::$has_outcome = false
protected

Definition at line 72 of file class.ilLTIConsumeProvider.php.

Referenced by getHasOutcome(), and setHasOutcome().

◆ $id

ilLTIConsumeProvider::$id = 0
protected

Definition at line 16 of file class.ilLTIConsumeProvider.php.

Referenced by getId(), and setId().

◆ $include_user_picture

ilLTIConsumeProvider::$include_user_picture = false
protected

Definition at line 94 of file class.ilLTIConsumeProvider.php.

Referenced by getIncludeUserPicture(), and setIncludeUserPicture().

◆ $is_external_provider

ilLTIConsumeProvider::$is_external_provider = false
protected

Definition at line 65 of file class.ilLTIConsumeProvider.php.

Referenced by isExternalProvider(), and setIsExternalProvider().

◆ $is_global

ilLTIConsumeProvider::$is_global = false
protected

Definition at line 120 of file class.ilLTIConsumeProvider.php.

Referenced by isGlobal(), and setIsGlobal().

◆ $keep_lp

ilLTIConsumeProvider::$keep_lp = false
protected

Definition at line 76 of file class.ilLTIConsumeProvider.php.

Referenced by isKeepLp(), and setKeepLp().

◆ $keywords

ilLTIConsumeProvider::$keywords = ''
protected

Definition at line 114 of file class.ilLTIConsumeProvider.php.

Referenced by getKeywords(), getKeywordsArray(), and setKeywords().

◆ $launch_method

ilLTIConsumeProvider::$launch_method = self::LAUNCH_METHOD_NEW
protected

Definition at line 70 of file class.ilLTIConsumeProvider.php.

Referenced by getLaunchMethod(), and setLaunchMethod().

◆ $log_level

ilLTIConsumeProvider::$log_level = 0
protected

Definition at line 31 of file class.ilLTIConsumeProvider.php.

Referenced by getLogLevel(), and setLogLevel().

◆ $mastery_score

ilLTIConsumeProvider::$mastery_score = 0.8
protected

Definition at line 74 of file class.ilLTIConsumeProvider.php.

Referenced by getMasteryScore(), and setMasteryScore().

◆ $privacy_comment_default

ilLTIConsumeProvider::$privacy_comment_default = ''
protected

◆ $privacy_ident

ilLTIConsumeProvider::$privacy_ident = self::PRIVACY_IDENT_IL_UUID_USER_ID
protected

Definition at line 83 of file class.ilLTIConsumeProvider.php.

Referenced by getPrivacyIdent(), and setPrivacyIdent().

◆ $privacy_name

ilLTIConsumeProvider::$privacy_name = self::PRIVACY_NAME_NONE
protected

Definition at line 89 of file class.ilLTIConsumeProvider.php.

Referenced by getPrivacyName(), and setPrivacyName().

◆ $provider_icon_filename

ilLTIConsumeProvider::$provider_icon_filename = ''
protected

◆ $provider_key

ilLTIConsumeProvider::$provider_key = ''
protected

Definition at line 35 of file class.ilLTIConsumeProvider.php.

Referenced by getProviderKey(), and setProviderKey().

◆ $provider_key_customizable

ilLTIConsumeProvider::$provider_key_customizable = true
protected

◆ $provider_secret

ilLTIConsumeProvider::$provider_secret = ''
protected

Definition at line 37 of file class.ilLTIConsumeProvider.php.

Referenced by getProviderSecret(), and setProviderSecret().

◆ $provider_url

ilLTIConsumeProvider::$provider_url = ''
protected

Definition at line 33 of file class.ilLTIConsumeProvider.php.

Referenced by getProviderUrl(), and setProviderUrl().

◆ $provider_xml

ilLTIConsumeProvider::$provider_xml = ''
protected

Definition at line 63 of file class.ilLTIConsumeProvider.php.

Referenced by getProviderXml(), and setProviderXml().

◆ $providerIcon

ilLTIConsumeProvider::$providerIcon = null
protected

Definition at line 46 of file class.ilLTIConsumeProvider.php.

Referenced by getProviderIcon(), and setProviderIcon().

◆ $providerIconUploadInput

ilLTIConsumeProvider::$providerIconUploadInput = null
protected

◆ $remarks

ilLTIConsumeProvider::$remarks = ''
protected

Definition at line 27 of file class.ilLTIConsumeProvider.php.

Referenced by getRemarks(), and setRemarks().

◆ $time_to_delete

ilLTIConsumeProvider::$time_to_delete = 0
protected

Definition at line 29 of file class.ilLTIConsumeProvider.php.

Referenced by getTimeToDelete(), and setTimeToDelete().

◆ $title

ilLTIConsumeProvider::$title = ''
protected

Definition at line 18 of file class.ilLTIConsumeProvider.php.

Referenced by getTitle(), and setTitle().

◆ $use_provider_id

ilLTIConsumeProvider::$use_provider_id = false
protected

Definition at line 100 of file class.ilLTIConsumeProvider.php.

Referenced by getUseProviderId(), and setUseProviderId().

◆ $use_xapi

ilLTIConsumeProvider::$use_xapi = false
protected

Definition at line 102 of file class.ilLTIConsumeProvider.php.

Referenced by getUseXapi(), and setUseXapi().

◆ $xapi_activity_id

ilLTIConsumeProvider::$xapi_activity_id = ''
protected

Definition at line 110 of file class.ilLTIConsumeProvider.php.

Referenced by getXapiActivityId(), and setXapiActivityId().

◆ $xapi_launch_key

ilLTIConsumeProvider::$xapi_launch_key = ''
protected

Definition at line 106 of file class.ilLTIConsumeProvider.php.

Referenced by getXapiLaunchKey(), and setXapiLaunchKey().

◆ $xapi_launch_secret

ilLTIConsumeProvider::$xapi_launch_secret = ''
protected

Definition at line 108 of file class.ilLTIConsumeProvider.php.

Referenced by getXapiLaunchSecret(), and setXapiLaunchSecret().

◆ $xapi_launch_url

ilLTIConsumeProvider::$xapi_launch_url = ''
protected

Definition at line 104 of file class.ilLTIConsumeProvider.php.

Referenced by getXapiLaunchUrl(), and setXapiLaunchUrl().

◆ AVAILABILITY_CREATE

◆ AVAILABILITY_EXISTING

◆ AVAILABILITY_NONE

◆ CATEGORY_ASSESSMENT

const ilLTIConsumeProvider::CATEGORY_ASSESSMENT = 'assessment'

◆ CATEGORY_COMMUNICATION

const ilLTIConsumeProvider::CATEGORY_COMMUNICATION = 'communication'

◆ CATEGORY_CONTENT

const ilLTIConsumeProvider::CATEGORY_CONTENT = 'content'

◆ CATEGORY_FEEDBACK

const ilLTIConsumeProvider::CATEGORY_FEEDBACK = 'feedback'

◆ CATEGORY_ORGANISATION

const ilLTIConsumeProvider::CATEGORY_ORGANISATION = 'organisation'

◆ LAUNCH_METHOD_NEW

const ilLTIConsumeProvider::LAUNCH_METHOD_NEW = 'newWin'

Definition at line 69 of file class.ilLTIConsumeProvider.php.

◆ LAUNCH_METHOD_OWN

const ilLTIConsumeProvider::LAUNCH_METHOD_OWN = 'ownWin'

Definition at line 68 of file class.ilLTIConsumeProvider.php.

◆ PRIVACY_IDENT_IL_UUID_EXT_ACCOUNT

const ilLTIConsumeProvider::PRIVACY_IDENT_IL_UUID_EXT_ACCOUNT = 1

Definition at line 79 of file class.ilLTIConsumeProvider.php.

Referenced by ilLTIConsumeProviderFormGUI\initForm().

◆ PRIVACY_IDENT_IL_UUID_LOGIN

const ilLTIConsumeProvider::PRIVACY_IDENT_IL_UUID_LOGIN = 2

Definition at line 80 of file class.ilLTIConsumeProvider.php.

Referenced by ilLTIConsumeProviderFormGUI\initForm().

◆ PRIVACY_IDENT_IL_UUID_SHA256

const ilLTIConsumeProvider::PRIVACY_IDENT_IL_UUID_SHA256 = 5

Definition at line 82 of file class.ilLTIConsumeProvider.php.

◆ PRIVACY_IDENT_IL_UUID_USER_ID

const ilLTIConsumeProvider::PRIVACY_IDENT_IL_UUID_USER_ID = 0

Definition at line 78 of file class.ilLTIConsumeProvider.php.

Referenced by ilLTIConsumeProviderFormGUI\initForm().

◆ PRIVACY_IDENT_REAL_EMAIL

const ilLTIConsumeProvider::PRIVACY_IDENT_REAL_EMAIL = 3

Definition at line 81 of file class.ilLTIConsumeProvider.php.

Referenced by ilLTIConsumeProviderFormGUI\initForm().

◆ PRIVACY_NAME_FIRSTNAME

const ilLTIConsumeProvider::PRIVACY_NAME_FIRSTNAME = 1

◆ PRIVACY_NAME_FULLNAME

const ilLTIConsumeProvider::PRIVACY_NAME_FULLNAME = 3

◆ PRIVACY_NAME_LASTNAME

const ilLTIConsumeProvider::PRIVACY_NAME_LASTNAME = 2

◆ PRIVACY_NAME_NONE

const ilLTIConsumeProvider::PRIVACY_NAME_NONE = 0

Definition at line 85 of file class.ilLTIConsumeProvider.php.

Referenced by ilLTIConsumeProviderFormGUI\initForm().


The documentation for this class was generated from the following file: