ILIAS  release_7 Revision v7.30-3-g800a261c036
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_IDENT_IL_UUID_SHA256URL = 6
 
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 127 of file class.ilLTIConsumeProvider.php.

References load(), and setId().

128  {
129  if ($providerId) {
130  $this->setId($providerId);
131  $this->load();
132  }
133  }
+ Here is the call graph for this function:

Member Function Documentation

◆ assignFromDbRow()

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

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

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().

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

◆ delete()

ilLTIConsumeProvider::delete ( )

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

References $DIC, and getId().

1005  {
1006  global $DIC; /* @var \ILIAS\DI\Container $DIC */
1007 
1008  $DIC->database()->manipulateF(
1009  "DELETE FROM lti_ext_provider WHERE id = %s",
1010  ['integer'],
1011  [$this->getId()]
1012  );
1013  }
global $DIC
Definition: goto.php:24
+ Here is the call graph for this function:

◆ getAcceptedBy()

ilLTIConsumeProvider::getAcceptedBy ( )
Returns
int

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

References $accepted_by.

Referenced by getInsertUpdateFields().

821  : int
822  {
823  return $this->accepted_by;
824  }
+ Here is the caller graph for this function:

◆ getAlwaysLearner()

ilLTIConsumeProvider::getAlwaysLearner ( )
Returns
bool

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

References $always_learner.

Referenced by getInsertUpdateFields().

647  : bool
648  {
649  return $this->always_learner;
650  }
+ Here is the caller graph for this function:

◆ getAvailability()

ilLTIConsumeProvider::getAvailability ( )
Returns
int

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

References $availability.

Referenced by getInsertUpdateFields().

196  : int
197  {
198  return $this->availability;
199  }
+ Here is the caller graph for this function:

◆ getCategoriesSelectOptions()

static ilLTIConsumeProvider::getCategoriesSelectOptions ( )
static
Returns
array

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

References $category, and $DIC.

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

393  {
394  global $DIC; /* @var \ILIAS\DI\Container $DIC */
395 
396  $categories = [];
397 
398  foreach (self::getValidCategories() as $category) {
399  switch ($category) {
400  case self::CATEGORY_ORGANISATION:
401 
402  $translation = $DIC->language()->txt('rep_add_new_def_grp_organisation');
403  break;
404  case self::CATEGORY_COMMUNICATION:
405 
406  $translation = $DIC->language()->txt('rep_add_new_def_grp_communication');
407  break;
408  case self::CATEGORY_CONTENT:
409 
410  $translation = $DIC->language()->txt('rep_add_new_def_grp_content');
411  break;
412  case self::CATEGORY_ASSESSMENT:
413 
414  $translation = $DIC->language()->txt('rep_add_new_def_grp_assessment');
415  break;
416  case self::CATEGORY_FEEDBACK:
417 
418  $translation = $DIC->language()->txt('rep_add_new_def_grp_feedback');
419  break;
420  }
421 
422  $categories[$category] = $translation;
423  }
424 
425  return $categories;
426  }
global $DIC
Definition: goto.php:24
+ Here is the caller graph for this function:

◆ getCategory()

ilLTIConsumeProvider::getCategory ( )
Returns
string

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

References $category.

Referenced by getInsertUpdateFields().

454  : string
455  {
456  return $this->category;
457  }
+ Here is the caller graph for this function:

◆ getCreator()

ilLTIConsumeProvider::getCreator ( )
Returns
int

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

References $creator.

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

805  : int
806  {
807  return $this->creator;
808  }
+ Here is the caller graph for this function:

◆ getCustomParams()

ilLTIConsumeProvider::getCustomParams ( )
Returns
string

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

References $custom_params.

Referenced by getInsertUpdateFields().

759  : string
760  {
761  return $this->custom_params;
762  }
+ Here is the caller graph for this function:

◆ getDescription()

ilLTIConsumeProvider::getDescription ( )
Returns
string

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

References $description.

Referenced by getInsertUpdateFields().

180  : string
181  {
182  return $this->description;
183  }
+ Here is the caller graph for this function:

◆ getHasOutcome()

ilLTIConsumeProvider::getHasOutcome ( )
Returns
bool

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

References $has_outcome.

Referenced by getInsertUpdateFields().

518  : bool
519  {
520  return $this->has_outcome;
521  }
+ Here is the caller graph for this function:

◆ getId()

ilLTIConsumeProvider::getId ( )
Returns
int

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

References $id.

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

148  : int
149  {
150  return $this->id;
151  }
+ Here is the caller graph for this function:

◆ getIncludeUserPicture()

ilLTIConsumeProvider::getIncludeUserPicture ( )
Returns
bool

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

References $include_user_picture.

Referenced by getInsertUpdateFields().

615  : bool
616  {
618  }
+ Here is the caller graph for this function:

◆ getInsertUpdateFields()

ilLTIConsumeProvider::getInsertUpdateFields ( )
protected
Returns
array

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

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().

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

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

◆ getKeywords()

ilLTIConsumeProvider::getKeywords ( )
Returns
string

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

References $keywords.

Referenced by getInsertUpdateFields(), and getKeywordsArray().

789  : string
790  {
791  return $this->keywords;
792  }
+ Here is the caller graph for this function:

◆ getKeywordsArray()

ilLTIConsumeProvider::getKeywordsArray ( )
Returns
array

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

References $keywords, and getKeywords().

776  {
777  $keywords = [];
778 
779  foreach (explode(';', $this->getKeywords()) as $keyword) {
780  $keywords[] = trim($keyword);
781  }
782 
783  return $keywords;
784  }
+ Here is the call graph for this function:

◆ getLaunchMethod()

ilLTIConsumeProvider::getLaunchMethod ( )
Returns
string

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

References $launch_method.

Referenced by getInsertUpdateFields().

502  : string
503  {
504  return $this->launch_method;
505  }
+ Here is the caller graph for this function:

◆ getLogLevel()

ilLTIConsumeProvider::getLogLevel ( )
Returns
int

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

References $log_level.

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

◆ getMasteryScore()

ilLTIConsumeProvider::getMasteryScore ( )
Returns
float

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

References $mastery_score.

Referenced by getInsertUpdateFields().

534  : float
535  {
536  return $this->mastery_score;
537  }
+ Here is the caller graph for this function:

◆ getMasteryScorePercent()

ilLTIConsumeProvider::getMasteryScorePercent ( )
Returns
float

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

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

◆ getPrivacyCommentDefault()

ilLTIConsumeProvider::getPrivacyCommentDefault ( )
Returns
string

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

References $privacy_comment_default.

Referenced by getInsertUpdateFields().

631  : string
632  {
634  }
+ Here is the caller graph for this function:

◆ getPrivacyIdent()

ilLTIConsumeProvider::getPrivacyIdent ( )
Returns
mixed

Definition at line 583 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 599 of file class.ilLTIConsumeProvider.php.

References $privacy_name.

Referenced by getInsertUpdateFields().

599  : string
600  {
601  return $this->privacy_name;
602  }
+ Here is the caller graph for this function:

◆ getProviderIcon()

ilLTIConsumeProvider::getProviderIcon ( )
Returns
ilLTIConsumeProviderIcon

Definition at line 340 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 324 of file class.ilLTIConsumeProvider.php.

References $provider_icon_filename.

Referenced by assignFromDbRow(), and getInsertUpdateFields().

324  : string
325  {
327  }
+ Here is the caller graph for this function:

◆ getProviderIconUploadInput()

ilLTIConsumeProvider::getProviderIconUploadInput ( )
Returns
ilImageFileInputGUI

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

References $providerIconUploadInput.

Referenced by save().

377  {
379  }
This class represents an image file property in a property form.
+ Here is the caller graph for this function:

◆ getProviderKey()

ilLTIConsumeProvider::getProviderKey ( )
Returns
string

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

References $provider_key.

Referenced by getInsertUpdateFields().

276  : string
277  {
278  return $this->provider_key;
279  }
+ Here is the caller graph for this function:

◆ getProviderSecret()

ilLTIConsumeProvider::getProviderSecret ( )
Returns
string

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

References $provider_secret.

Referenced by getInsertUpdateFields().

292  : string
293  {
294  return $this->provider_secret;
295  }
+ Here is the caller graph for this function:

◆ getProviderUrl()

ilLTIConsumeProvider::getProviderUrl ( )
Returns
string

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

References $provider_url.

Referenced by getInsertUpdateFields().

260  : string
261  {
262  return $this->provider_url;
263  }
+ Here is the caller graph for this function:

◆ getProviderXml()

ilLTIConsumeProvider::getProviderXml ( )
Returns
string

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

References $provider_xml.

Referenced by getInsertUpdateFields().

470  : string
471  {
472  return $this->provider_xml;
473  }
+ Here is the caller graph for this function:

◆ getRemarks()

ilLTIConsumeProvider::getRemarks ( )
Returns
string

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

References $remarks.

Referenced by getInsertUpdateFields().

212  : string
213  {
214  return $this->remarks;
215  }
+ Here is the caller graph for this function:

◆ getTimeToDelete()

ilLTIConsumeProvider::getTimeToDelete ( )
Returns
int

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

References $time_to_delete.

Referenced by getInsertUpdateFields().

228  : int
229  {
230  return $this->time_to_delete;
231  }
+ Here is the caller graph for this function:

◆ getTitle()

ilLTIConsumeProvider::getTitle ( )
Returns
string

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

References $title.

Referenced by getInsertUpdateFields().

164  : string
165  {
166  return $this->title;
167  }
+ Here is the caller graph for this function:

◆ getUseProviderId()

ilLTIConsumeProvider::getUseProviderId ( )
Returns
bool

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

References $use_provider_id.

Referenced by getInsertUpdateFields().

663  : bool
664  {
665  return $this->use_provider_id;
666  }
+ Here is the caller graph for this function:

◆ getUseXapi()

ilLTIConsumeProvider::getUseXapi ( )
Returns
bool

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

References $use_xapi.

Referenced by getInsertUpdateFields().

679  : bool
680  {
681  return $this->use_xapi;
682  }
+ Here is the caller graph for this function:

◆ getValidCategories()

static ilLTIConsumeProvider::getValidCategories ( )
static
Returns
array

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

432  {
433  return [
434  self::CATEGORY_ORGANISATION,
435  self::CATEGORY_COMMUNICATION,
436  self::CATEGORY_CONTENT,
437  self::CATEGORY_ASSESSMENT,
438  self::CATEGORY_FEEDBACK
439  ];
440  }

◆ getXapiActivityId()

ilLTIConsumeProvider::getXapiActivityId ( )
Returns
string

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

References $xapi_activity_id.

Referenced by getInsertUpdateFields().

743  : string
744  {
746  }
+ Here is the caller graph for this function:

◆ getXapiLaunchKey()

ilLTIConsumeProvider::getXapiLaunchKey ( )
Returns
string

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

References $xapi_launch_key.

Referenced by getInsertUpdateFields().

711  : string
712  {
713  return $this->xapi_launch_key;
714  }
+ Here is the caller graph for this function:

◆ getXapiLaunchSecret()

ilLTIConsumeProvider::getXapiLaunchSecret ( )
Returns
string

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

References $xapi_launch_secret.

Referenced by getInsertUpdateFields().

727  : string
728  {
730  }
+ Here is the caller graph for this function:

◆ getXapiLaunchUrl()

ilLTIConsumeProvider::getXapiLaunchUrl ( )
Returns
string

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

References $xapi_launch_url.

Referenced by getInsertUpdateFields().

695  : string
696  {
697  return $this->xapi_launch_url;
698  }
+ Here is the caller graph for this function:

◆ hasProviderIcon()

ilLTIConsumeProvider::hasProviderIcon ( )
Returns
bool

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

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

◆ hasProviderIconUploadInput()

ilLTIConsumeProvider::hasProviderIconUploadInput ( )
Returns
bool

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

Referenced by save().

368  : bool
369  {
370  return $this->providerIconUploadInput instanceof ilImageFileInputGUI;
371  }
This class represents an image file property in a property form.
+ Here is the caller graph for this function:

◆ insert()

ilLTIConsumeProvider::insert ( )

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

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

Referenced by save().

953  {
954  global $DIC; /* @var \ILIAS\DI\Container $DIC */
955 
956  $this->setId($DIC->database()->nextId('lti_ext_provider'));
957 
958  $DIC->database()->insert('lti_ext_provider', $this->getInsertUpdateFields());
959  }
global $DIC
Definition: goto.php:24
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAcceptableAsGlobal()

ilLTIConsumeProvider::isAcceptableAsGlobal ( )

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

References getCreator(), and isGlobal().

1016  {
1017  return !$this->isGlobal() && (bool) $this->getCreator();
1018  }
+ Here is the call graph for this function:

◆ isExternalProvider()

ilLTIConsumeProvider::isExternalProvider ( )
Returns
bool

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

References $is_external_provider.

Referenced by getInsertUpdateFields().

486  : bool
487  {
489  }
+ Here is the caller graph for this function:

◆ isGlobal()

ilLTIConsumeProvider::isGlobal ( )
Returns
bool

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

References $is_global.

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

837  : bool
838  {
839  return $this->is_global;
840  }
+ Here is the caller graph for this function:

◆ isKeepLp()

ilLTIConsumeProvider::isKeepLp ( )
Returns
bool

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

References $keep_lp.

Referenced by getInsertUpdateFields().

566  : bool
567  {
568  return $this->keep_lp;
569  }
+ Here is the caller graph for this function:

◆ isProviderKeyCustomizable()

ilLTIConsumeProvider::isProviderKeyCustomizable ( )
Returns
bool

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

References $provider_key_customizable.

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

308  : bool
309  {
311  }
+ Here is the caller graph for this function:

◆ isResetableToUserDefined()

ilLTIConsumeProvider::isResetableToUserDefined ( )

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

References getCreator(), and isGlobal().

1021  {
1022  return $this->isGlobal() && (bool) $this->getCreator();
1023  }
+ Here is the call graph for this function:

◆ isValidCategory()

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

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

Referenced by ilLTIConsumeProviderFormGUI\initProvider().

447  {
448  return in_array($category, self::getValidCategories());
449  }
+ Here is the caller graph for this function:

◆ load()

ilLTIConsumeProvider::load ( )
Exceptions

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

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

Referenced by __construct().

904  {
905  global $DIC; /* @var \ILIAS\DI\Container $DIC */
906 
907  $query = "SELECT * FROM lti_ext_provider WHERE id = %s";
908  $res = $DIC->database()->queryF($query, array('integer'), array($this->getId()));
909 
910  while ($row = $DIC->database()->fetchAssoc($res)) {
911  $this->assignFromDbRow($row);
912  }
913  }
foreach($_POST as $key=> $value) $res
global $DIC
Definition: goto.php:24
$query
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilLTIConsumeProvider::save ( )
Exceptions

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

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

921  {
922  if ($this->getId()) {
923  if ($this->hasProviderIconUploadInput()) {
924  $this->getProviderIcon()->handleUploadInputSubission($this->getProviderIconUploadInput());
925  $this->setProviderIconFilename($this->getProviderIcon()->getFilename());
926  }
927 
928  $this->update();
929  } else {
930  $this->insert();
931 
932  if ($this->hasProviderIconUploadInput()) {
933  $this->setProviderIcon(new ilLTIConsumeProviderIcon($this->getId()));
934 
935  $this->getProviderIcon()->handleUploadInputSubission($this->getProviderIconUploadInput());
936  $this->setProviderIconFilename($this->getProviderIcon()->getFilename());
937 
938  $this->update();
939  }
940  }
941  }
setProviderIcon(ilLTIConsumeProviderIcon $providerIcon)
setProviderIconFilename(string $provider_icon_filename)
+ Here is the call graph for this function:

◆ setAcceptedBy()

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

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

References $accepted_by.

Referenced by assignFromDbRow().

830  {
831  $this->accepted_by = $accepted_by;
832  }
+ Here is the caller graph for this function:

◆ setAlwaysLearner()

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

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

References $always_learner.

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

656  {
657  $this->always_learner = $always_learner;
658  }
+ Here is the caller graph for this function:

◆ setAvailability()

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

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

References $availability.

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

205  {
206  $this->availability = $availability;
207  }
+ Here is the caller graph for this function:

◆ setCategory()

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

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

References $category.

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

463  {
464  $this->category = $category;
465  }
+ Here is the caller graph for this function:

◆ setCreator()

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

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

References $creator.

Referenced by assignFromDbRow().

814  {
815  $this->creator = $creator;
816  }
+ Here is the caller graph for this function:

◆ setCustomParams()

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

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

References $custom_params.

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

768  {
769  $this->custom_params = $custom_params;
770  }
+ Here is the caller graph for this function:

◆ setDescription()

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

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

References $description.

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

189  {
190  $this->description = $description;
191  }
+ Here is the caller graph for this function:

◆ setHasOutcome()

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

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

References $has_outcome.

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

527  {
528  $this->has_outcome = $has_outcome;
529  }
+ Here is the caller graph for this function:

◆ setId()

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

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

References $id.

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

157  {
158  $this->id = $id;
159  }
+ Here is the caller graph for this function:

◆ setIncludeUserPicture()

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

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

References $include_user_picture.

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

624  {
625  $this->include_user_picture = $include_user_picture;
626  }
+ Here is the caller graph for this function:

◆ setIsExternalProvider()

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

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

References $is_external_provider.

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

495  {
496  $this->is_external_provider = $is_external_provider;
497  }
+ Here is the caller graph for this function:

◆ setIsGlobal()

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

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

References $is_global.

Referenced by assignFromDbRow().

846  {
847  $this->is_global = $is_global;
848  }
+ Here is the caller graph for this function:

◆ setKeepLp()

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

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

References $keep_lp.

Referenced by assignFromDbRow().

575  {
576  $this->keep_lp = $keep_lp;
577  }
+ Here is the caller graph for this function:

◆ setKeywords()

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

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

References $keywords.

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

798  {
799  $this->keywords = $keywords;
800  }
+ Here is the caller graph for this function:

◆ setLaunchMethod()

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

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

References $launch_method.

Referenced by assignFromDbRow().

511  {
512  $this->launch_method = $launch_method;
513  }
+ Here is the caller graph for this function:

◆ setLogLevel()

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

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

References $log_level.

Referenced by assignFromDbRow().

253  {
254  $this->log_level = $log_level;
255  }
+ Here is the caller graph for this function:

◆ setMasteryScore()

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

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

References $mastery_score.

Referenced by assignFromDbRow().

543  {
544  $this->mastery_score = $mastery_score;
545  }
+ Here is the caller graph for this function:

◆ setMasteryScorePercent()

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

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

Referenced by ilLTIConsumeProviderFormGUI\initProvider().

559  {
560  $this->mastery_score = $mastery_score_percent / 100;
561  }
+ Here is the caller graph for this function:

◆ setPrivacyCommentDefault()

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

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

References $privacy_comment_default.

Referenced by assignFromDbRow().

640  {
641  $this->privacy_comment_default = $privacy_comment_default;
642  }
+ Here is the caller graph for this function:

◆ setPrivacyIdent()

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

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

References $privacy_ident.

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

592  {
593  $this->privacy_ident = $privacy_ident;
594  }
+ Here is the caller graph for this function:

◆ setPrivacyName()

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

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

References $privacy_name.

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

608  {
609  $this->privacy_name = $privacy_name;
610  }
+ Here is the caller graph for this function:

◆ setProviderIcon()

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

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

References $providerIcon.

Referenced by assignFromDbRow(), and save().

361  {
362  $this->providerIcon = $providerIcon;
363  }
+ Here is the caller graph for this function:

◆ setProviderIconFilename()

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

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

References $provider_icon_filename.

Referenced by assignFromDbRow(), and save().

333  {
334  $this->provider_icon_filename = $provider_icon_filename;
335  }
+ Here is the caller graph for this function:

◆ setProviderIconUploadInput()

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

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

References $providerIconUploadInput.

Referenced by ilLTIConsumeProviderFormGUI\initProvider().

385  {
386  $this->providerIconUploadInput = $providerIconUploadInput;
387  }
+ Here is the caller graph for this function:

◆ setProviderKey()

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

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

References $provider_key.

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

285  {
286  $this->provider_key = $provider_key;
287  }
+ Here is the caller graph for this function:

◆ setProviderKeyCustomizable()

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

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

References $provider_key_customizable.

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

317  {
318  $this->provider_key_customizable = $provider_key_customizable;
319  }
+ Here is the caller graph for this function:

◆ setProviderSecret()

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

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

References $provider_secret.

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

301  {
302  $this->provider_secret = $provider_secret;
303  }
+ Here is the caller graph for this function:

◆ setProviderUrl()

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

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

References $provider_url.

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

269  {
270  $this->provider_url = $provider_url;
271  }
+ Here is the caller graph for this function:

◆ setProviderXml()

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

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

References $provider_xml.

Referenced by assignFromDbRow().

479  {
480  $this->provider_xml = $provider_xml;
481  }
+ Here is the caller graph for this function:

◆ setRemarks()

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

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

References $remarks.

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

221  {
222  $this->remarks = $remarks;
223  }
+ Here is the caller graph for this function:

◆ setTimeToDelete()

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

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

References $time_to_delete.

Referenced by assignFromDbRow().

237  {
238  $this->time_to_delete = $time_to_delete;
239  }
+ Here is the caller graph for this function:

◆ setTitle()

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

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

References $title.

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

173  {
174  $this->title = $title;
175  }
+ Here is the caller graph for this function:

◆ setUseProviderId()

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

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

References $use_provider_id.

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

672  {
673  $this->use_provider_id = $use_provider_id;
674  }
+ Here is the caller graph for this function:

◆ setUseXapi()

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

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

References $use_xapi.

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

688  {
689  $this->use_xapi = $use_xapi;
690  }
+ Here is the caller graph for this function:

◆ setXapiActivityId()

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

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

References $xapi_activity_id.

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

752  {
753  $this->xapi_activity_id = $xapi_activity_id;
754  }
+ Here is the caller graph for this function:

◆ setXapiLaunchKey()

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

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

References $xapi_launch_key.

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

720  {
721  $this->xapi_launch_key = $xapi_launch_key;
722  }
+ Here is the caller graph for this function:

◆ setXapiLaunchSecret()

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

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

References $xapi_launch_secret.

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

736  {
737  $this->xapi_launch_secret = $xapi_launch_secret;
738  }
+ Here is the caller graph for this function:

◆ setXapiLaunchUrl()

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

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

References $xapi_launch_url.

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

704  {
705  $this->xapi_launch_url = $xapi_launch_url;
706  }
+ Here is the caller graph for this function:

◆ update()

ilLTIConsumeProvider::update ( )

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

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

Referenced by save().

944  {
945  global $DIC; /* @var \ILIAS\DI\Container $DIC */
946 
947  $DIC->database()->update('lti_ext_provider', $this->getInsertUpdateFields(), array(
948  'id' => array('integer', $this->getId()),
949  ));
950  }
global $DIC
Definition: goto.php:24
+ 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 119 of file class.ilLTIConsumeProvider.php.

Referenced by getAcceptedBy(), and setAcceptedBy().

◆ $always_learner

ilLTIConsumeProvider::$always_learner = false
protected

Definition at line 99 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 117 of file class.ilLTIConsumeProvider.php.

Referenced by getCreator(), and setCreator().

◆ $custom_params

ilLTIConsumeProvider::$custom_params = ''
protected

Definition at line 113 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 95 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 121 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 115 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 84 of file class.ilLTIConsumeProvider.php.

Referenced by getPrivacyIdent(), and setPrivacyIdent().

◆ $privacy_name

ilLTIConsumeProvider::$privacy_name = self::PRIVACY_NAME_NONE
protected

Definition at line 90 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 101 of file class.ilLTIConsumeProvider.php.

Referenced by getUseProviderId(), and setUseProviderId().

◆ $use_xapi

ilLTIConsumeProvider::$use_xapi = false
protected

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

Referenced by getUseXapi(), and setUseXapi().

◆ $xapi_activity_id

ilLTIConsumeProvider::$xapi_activity_id = ''
protected

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

Referenced by getXapiActivityId(), and setXapiActivityId().

◆ $xapi_launch_key

ilLTIConsumeProvider::$xapi_launch_key = ''
protected

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

Referenced by getXapiLaunchKey(), and setXapiLaunchKey().

◆ $xapi_launch_secret

ilLTIConsumeProvider::$xapi_launch_secret = ''
protected

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

Referenced by getXapiLaunchSecret(), and setXapiLaunchSecret().

◆ $xapi_launch_url

ilLTIConsumeProvider::$xapi_launch_url = ''
protected

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

Referenced by getXapiLaunchUrl(), and setXapiLaunchUrl().

◆ AVAILABILITY_CREATE

◆ AVAILABILITY_EXISTING

◆ AVAILABILITY_NONE

◆ CATEGORY_ASSESSMENT

const ilLTIConsumeProvider::CATEGORY_ASSESSMENT = 'assessment'

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

◆ CATEGORY_COMMUNICATION

const ilLTIConsumeProvider::CATEGORY_COMMUNICATION = 'communication'

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

◆ CATEGORY_CONTENT

const ilLTIConsumeProvider::CATEGORY_CONTENT = 'content'

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

◆ CATEGORY_FEEDBACK

const ilLTIConsumeProvider::CATEGORY_FEEDBACK = 'feedback'

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

◆ CATEGORY_ORGANISATION

const ilLTIConsumeProvider::CATEGORY_ORGANISATION = 'organisation'

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

◆ 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_SHA256URL

const ilLTIConsumeProvider::PRIVACY_IDENT_IL_UUID_SHA256URL = 6

Definition at line 83 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 86 of file class.ilLTIConsumeProvider.php.

Referenced by ilLTIConsumeProviderFormGUI\initForm().


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