ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLTIConsumerAdministrationGUI Class Reference
+ Collaboration diagram for ilLTIConsumerAdministrationGUI:

Public Member Functions

 __construct (bool $hasWritePermission=false)
 
 executeCommand ()
 

Data Fields

const REDIRECTION_CMD_PARAMETER = 'redirectCmd'
 
const CMD_SHOW_GLOBAL_PROVIDER = 'showGlobalProvider'
 
const CMD_SHOW_GLOBAL_PROVIDER_FORM = 'showGlobalProviderForm'
 
const CMD_SAVE_GLOBAL_PROVIDER_FORM = 'saveGlobalProviderForm'
 
const CMD_SHOW_GLOBAL_PROVIDER_IMPORT = 'showGlobalProviderImport'
 
const CMD_SAVE_GLOBAL_PROVIDER_IMPORT = 'saveGlobalProviderImport'
 
const CMD_SHOW_USER_PROVIDER = 'showUserProvider'
 
const CMD_SHOW_USER_PROVIDER_FORM = 'showUserProviderForm'
 
const CMD_SAVE_USER_PROVIDER_FORM = 'saveUserProviderForm'
 
const CMD_ACCEPT_PROVIDER_AS_GLOBAL = 'acceptProviderAsGlobal'
 
const CMD_ACCEPT_PROVIDER_AS_GLOBAL_MULTI = 'acceptProviderAsGlobalMulti'
 
const CMD_RESET_PROVIDER_TO_USER_SCOPE = 'resetProviderToUserScope'
 
const CMD_RESET_PROVIDER_TO_USER_SCOPE_MULTI = 'resetProviderToUserScopeMulti'
 
const CMD_DELETE_GLOBAL_PROVIDER = 'deleteGlobalProvider'
 
const CMD_DELETE_GLOBAL_PROVIDER_MULTI = 'deleteGlobalProviderMulti'
 
const CMD_DELETE_USER_PROVIDER = 'deleteUserProvider'
 
const CMD_DELETE_USER_PROVIDER_MULTI = 'deleteUserProviderMulti'
 
const CMD_PERFORM_DELETE_PROVIDERS = 'performDeleteProviders'
 
const CMD_SHOW_SETTINGS = 'showSettings'
 
const CMD_SAVE_SETTINGS = 'saveSettings'
 
const CMD_ROLE_AUTOCOMPLETE = 'roleAutocomplete'
 
const CMD_SHOW_USAGES = 'showUsages'
 
const ALLOWED_FILE_EXT = ['jpg', 'jpeg', 'png', 'gif', 'ico', 'svg']
 

Protected Member Functions

 initSubTabs ()
 
 showGlobalProviderCmd ()
 
 showGlobalProviderFormCmd (?ilLTIConsumeProviderFormGUI $form=null)
 
 saveGlobalProviderFormCmd ()
 
 showGlobalProviderImportCmd (ilPropertyFormGUI $form=null)
 
 saveGlobalProviderImportCmd ()
 
 buildProviderImportForm (string $saveCommand, string $cancelCommand)
 
 performProviderImport (string $providerXml)
 
 showUserProviderCmd ()
 
 showUserProviderFormCmd (?ilLTIConsumeProviderFormGUI $form=null)
 
 saveUserProviderFormCmd ()
 
 acceptProviderAsGlobalMultiCmd ()
 
 acceptProviderAsGlobalCmd ()
 
 performAcceptProvidersAsGlobal (array $providers)
 
 resetProviderToUserScopeMultiCmd ()
 
 resetProviderToUserScopeCmd ()
 
 performResetProvidersToUserScope (array $providers)
 
 deleteGlobalProviderMultiCmd ()
 
 deleteGlobalProviderCmd ()
 
 deleteUserProviderMultiCmd ()
 
 deleteUserProviderCmd ()
 
 validateProviderDeletionSelection (array $providers)
 
 confirmDeleteProviders (array $providers, string $cancelCommand)
 
 performDeleteProvidersCmd ()
 
 buildProviderTable (ilLTIConsumerAdministrationGUI $parentGui, string $parentCmd)
 
 showUsagesCmd ()
 
 buildProviderForm (ilLTIConsumeProvider $provider, string $saveCmd, string $cancelCmd)
 
 fetchProvider ()
 
 fetchProviderMulti ()
 
 showSettingsCmd (?ilPropertyFormGUI $form=null)
 
 saveSettingsCmd ()
 
 buildSettingsForm ()
 
 getProviderListForIds (array $providerIds)
 

Private Member Functions

 prepareProvider ()
 
 getInput ($key)
 
 checkIconFileExtension (string $ext)
 
 checkIconFileVirus (string $ico)
 

Private Attributes

array $_importedXmlData = []
 
ilGlobalTemplateInterface $main_tpl
 
bool $hasWritePermission
 

Detailed Description

Definition at line 32 of file class.ilLTIConsumerAdministrationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilLTIConsumerAdministrationGUI::__construct ( bool  $hasWritePermission = false)

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

71 {
72 global $DIC;
73 $this->hasWritePermission = $hasWritePermission;
74 $this->main_tpl = $DIC->ui()->mainTemplate(); /* @var \ILIAS\DI\Container $DIC */
75
76 $DIC->language()->loadLanguageModule("rep");
77 //$this->performProviderImport($this->xml2());
78 }
global $DIC
Definition: shib_login.php:26

References $DIC, and $hasWritePermission.

Member Function Documentation

◆ acceptProviderAsGlobalCmd()

ilLTIConsumerAdministrationGUI::acceptProviderAsGlobalCmd ( )
protected
Exceptions
ilCtrlException

Definition at line 544 of file class.ilLTIConsumerAdministrationGUI.php.

544 : void
545 {
546 global $DIC; /* @var \ILIAS\DI\Container $DIC */
547
548 $provider = $this->fetchProvider();
549
550 if ($provider->isAcceptableAsGlobal()) {
552 }
553
554 $this->main_tpl->setOnScreenMessage('success', $DIC->language()->txt('lti_success_accept_as_global'), true);
555 $DIC->ctrl()->redirect($this, self::CMD_SHOW_USER_PROVIDER);
556 }
$provider
Definition: ltitoken.php:80

References $DIC, $provider, fetchProvider(), and performAcceptProvidersAsGlobal().

+ Here is the call graph for this function:

◆ acceptProviderAsGlobalMultiCmd()

ilLTIConsumerAdministrationGUI::acceptProviderAsGlobalMultiCmd ( )
protected
Exceptions
ilCtrlException

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

517 : void
518 {
519 global $DIC; /* @var \ILIAS\DI\Container $DIC */
520
521 $providers = $this->fetchProviderMulti();
522
523 if (!count($providers)) {
524 $this->main_tpl->setOnScreenMessage('failure', $DIC->language()->txt('lti_no_provider_selected'), true);
525 $DIC->ctrl()->redirect($this, self::CMD_SHOW_USER_PROVIDER);
526 }
527
528 foreach ($providers as $provider) {
529 if (!$provider->isAcceptableAsGlobal()) {
530 $this->main_tpl->setOnScreenMessage('failure', $DIC->language()->txt('lti_at_least_one_not_acceptable_as_global'), true);
531 $DIC->ctrl()->redirect($this, self::CMD_SHOW_USER_PROVIDER);
532 }
533 }
534
535 $this->performAcceptProvidersAsGlobal($providers);
536
537 $this->main_tpl->setOnScreenMessage('success', $DIC->language()->txt('lti_success_accept_as_global_multi'), true);
538 $DIC->ctrl()->redirect($this, self::CMD_SHOW_USER_PROVIDER);
539 }

References $DIC, $provider, fetchProviderMulti(), and performAcceptProvidersAsGlobal().

+ Here is the call graph for this function:

◆ buildProviderForm()

ilLTIConsumerAdministrationGUI::buildProviderForm ( ilLTIConsumeProvider  $provider,
string  $saveCmd,
string  $cancelCmd 
)
protected
Exceptions
ilCtrlException

Definition at line 819 of file class.ilLTIConsumerAdministrationGUI.php.

820 {
821 global $DIC; /* @var \ILIAS\DI\Container $DIC */
822
824 $form->setAdminContext(true);
825 $form->initForm($DIC->ctrl()->getFormAction($this), $saveCmd, $cancelCmd);
826
827 return $form;
828 }

References $DIC, and $provider.

Referenced by saveGlobalProviderFormCmd(), saveUserProviderFormCmd(), showGlobalProviderFormCmd(), and showUserProviderFormCmd().

+ Here is the caller graph for this function:

◆ buildProviderImportForm()

ilLTIConsumerAdministrationGUI::buildProviderImportForm ( string  $saveCommand,
string  $cancelCommand 
)
protected
Exceptions
ilCtrlException

Definition at line 280 of file class.ilLTIConsumerAdministrationGUI.php.

281 {
282 global $DIC; /* @var \ILIAS\DI\Container $DIC */
283
284 $form = new ilPropertyFormGUI();
285
286 $form->setTitle($DIC->language()->txt('form_import_provider'));
287
288 $form->setFormAction($DIC->ctrl()->getFormAction($this));
289
290 $form->addCommandButton($saveCommand, $DIC->language()->txt('import'));
291 $form->addCommandButton($cancelCommand, $DIC->language()->txt('cancel'));
292
293 $provXmlUpload = new ilFileInputGUI($DIC->language()->txt('field_provider_xml'), 'provider_xml');
294 $provXmlUpload->setInfo($DIC->language()->txt('field_provider_xml_info'));
295 $provXmlUpload->setRequired(true);
296 $provXmlUpload->setSuffixes(['xml']);
297 $form->addItem($provXmlUpload);
298
299 return $form;
300 }
This class represents a file property in a property form.
This class represents a property form user interface.

References $DIC.

Referenced by saveGlobalProviderImportCmd(), and showGlobalProviderImportCmd().

+ Here is the caller graph for this function:

◆ buildProviderTable()

ilLTIConsumerAdministrationGUI::buildProviderTable ( ilLTIConsumerAdministrationGUI  $parentGui,
string  $parentCmd 
)
protected

Definition at line 792 of file class.ilLTIConsumerAdministrationGUI.php.

793 {
795 $parentGui,
796 $parentCmd
797 );
798 }

Referenced by showGlobalProviderCmd(), and showUserProviderCmd().

+ Here is the caller graph for this function:

◆ buildSettingsForm()

ilLTIConsumerAdministrationGUI::buildSettingsForm ( )
protected
Exceptions
ilCtrlException

Definition at line 922 of file class.ilLTIConsumerAdministrationGUI.php.

923 {
924 global $DIC; /* @var \ILIAS\DI\Container $DIC */
925
926 $form = new ilPropertyFormGUI();
927
928 $form->setFormAction($DIC->ctrl()->getFormAction($this));
929 $form->addCommandButton(self::CMD_SAVE_SETTINGS, $DIC->language()->txt('save'));
930 $form->setTitle($DIC->language()->txt('lti_global_settings_form'));
931
932 return $form;
933 }

References $DIC.

Referenced by saveSettingsCmd(), and showSettingsCmd().

+ Here is the caller graph for this function:

◆ checkIconFileExtension()

ilLTIConsumerAdministrationGUI::checkIconFileExtension ( string  $ext)
private

Definition at line 410 of file class.ilLTIConsumerAdministrationGUI.php.

410 : bool
411 {
412 // todo - check?
413 return false !== ($check = array_search($ext, self::ALLOWED_FILE_EXT)) ? true : false;
414 }
$check
Definition: buildRTE.php:81

References $check.

◆ checkIconFileVirus()

ilLTIConsumerAdministrationGUI::checkIconFileVirus ( string  $ico)
private

Definition at line 416 of file class.ilLTIConsumerAdministrationGUI.php.

416 : bool
417 {
419 if (!$virusScan) {
420 return false;
421 }
422 return $virusScan->scanBuffer($ico);
423 // return false === (bool)$virusScan->scanBuffer($ico) ? false : true;
424 }

References ilVirusScannerFactory\_getInstance().

+ Here is the call graph for this function:

◆ confirmDeleteProviders()

ilLTIConsumerAdministrationGUI::confirmDeleteProviders ( array  $providers,
string  $cancelCommand 
)
protected
Exceptions
ilCtrlException

Definition at line 740 of file class.ilLTIConsumerAdministrationGUI.php.

740 : void
741 {
742 global $DIC; /* @var \ILIAS\DI\Container $DIC */
743
744 $confirmationGUI = new ilConfirmationGUI();
745
746 $confirmationGUI->setFormAction($DIC->ctrl()->getFormAction($this));
747 $confirmationGUI->setCancel($DIC->language()->txt('cancel'), $cancelCommand);
748 $confirmationGUI->setConfirm($DIC->language()->txt('confirm'), self::CMD_PERFORM_DELETE_PROVIDERS);
749
750 $confirmationGUI->setHeaderText($DIC->language()->txt('lti_confirm_delete_providers'));
751
752 foreach ($providers as $provider) {
753 /* @var ilLTIConsumeProvider $provider */
754
755 if ($provider->getProviderIcon()->exists()) {
756 $providerIcon = $provider->getProviderIcon()->getAbsoluteFilePath();
757 } else {
758 $providerIcon = ilObject::_getIcon(0, "small", "lti");
759 }
760
761 $confirmationGUI->addItem(
762 'provider_ids[]',
763 (string) $provider->getId(),
764 htmlspecialchars($provider->getTitle()),
765 $providerIcon
766 );
767 }
768
769 $DIC->ui()->mainTemplate()->setContent($confirmationGUI->getHTML());
770 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.

References $DIC, $provider, and ilObject\_getIcon().

Referenced by deleteGlobalProviderCmd(), deleteGlobalProviderMultiCmd(), deleteUserProviderCmd(), and deleteUserProviderMultiCmd().

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

◆ deleteGlobalProviderCmd()

ilLTIConsumerAdministrationGUI::deleteGlobalProviderCmd ( )
protected
Exceptions
ilCtrlException

Definition at line 657 of file class.ilLTIConsumerAdministrationGUI.php.

657 : void
658 {
659 global $DIC; /* @var \ILIAS\DI\Container $DIC */
660
661 $DIC->tabs()->activateSubTab('global_provider');
662
663 $DIC->ctrl()->setParameter($this, self::REDIRECTION_CMD_PARAMETER, self::CMD_SHOW_GLOBAL_PROVIDER);
664
665 $provider = $this->fetchProvider();
666 $providers = [$provider->getId() => $provider];
667
668 if (!$this->validateProviderDeletionSelection($providers)) {
669 $DIC->ctrl()->redirect($this, self::CMD_SHOW_GLOBAL_PROVIDER);
670 }
671
672 $this->confirmDeleteProviders($providers, self::CMD_SHOW_GLOBAL_PROVIDER);
673 }
confirmDeleteProviders(array $providers, string $cancelCommand)

References $DIC, $provider, confirmDeleteProviders(), fetchProvider(), and validateProviderDeletionSelection().

+ Here is the call graph for this function:

◆ deleteGlobalProviderMultiCmd()

ilLTIConsumerAdministrationGUI::deleteGlobalProviderMultiCmd ( )
protected
Exceptions
ilCtrlException

Definition at line 637 of file class.ilLTIConsumerAdministrationGUI.php.

637 : void
638 {
639 global $DIC; /* @var \ILIAS\DI\Container $DIC */
640
641 $DIC->tabs()->activateSubTab('global_provider');
642
643 $DIC->ctrl()->setParameter($this, self::REDIRECTION_CMD_PARAMETER, self::CMD_SHOW_GLOBAL_PROVIDER);
644
645 $providers = $this->fetchProviderMulti();
646
647 if (!$this->validateProviderDeletionSelection($providers)) {
648 $DIC->ctrl()->redirect($this, self::CMD_SHOW_GLOBAL_PROVIDER);
649 }
650
651 $this->confirmDeleteProviders($providers, self::CMD_SHOW_GLOBAL_PROVIDER);
652 }

References $DIC, confirmDeleteProviders(), fetchProviderMulti(), and validateProviderDeletionSelection().

+ Here is the call graph for this function:

◆ deleteUserProviderCmd()

ilLTIConsumerAdministrationGUI::deleteUserProviderCmd ( )
protected
Exceptions
ilCtrlException

Definition at line 698 of file class.ilLTIConsumerAdministrationGUI.php.

698 : void
699 {
700 global $DIC; /* @var \ILIAS\DI\Container $DIC */
701
702 $DIC->tabs()->activateSubTab('global_provider');
703
704 $DIC->ctrl()->setParameter($this, self::REDIRECTION_CMD_PARAMETER, self::CMD_SHOW_USER_PROVIDER);
705
706 $provider = $this->fetchProvider();
707 $providers = [$provider->getId() => $provider];
708
709 if (!$this->validateProviderDeletionSelection($providers)) {
710 $DIC->ctrl()->redirect($this, self::CMD_SHOW_USER_PROVIDER);
711 }
712
713 $this->confirmDeleteProviders($providers, self::CMD_SHOW_USER_PROVIDER);
714 }

References $DIC, $provider, confirmDeleteProviders(), fetchProvider(), and validateProviderDeletionSelection().

+ Here is the call graph for this function:

◆ deleteUserProviderMultiCmd()

ilLTIConsumerAdministrationGUI::deleteUserProviderMultiCmd ( )
protected
Exceptions
ilCtrlException

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

678 : void
679 {
680 global $DIC; /* @var \ILIAS\DI\Container $DIC */
681
682 $DIC->tabs()->activateSubTab('user_provider');
683
684 $DIC->ctrl()->setParameter($this, self::REDIRECTION_CMD_PARAMETER, self::CMD_SHOW_USER_PROVIDER);
685
686 $providers = $this->fetchProviderMulti();
687
688 if (!$this->validateProviderDeletionSelection($providers)) {
689 $DIC->ctrl()->redirect($this, self::CMD_SHOW_USER_PROVIDER);
690 }
691
692 $this->confirmDeleteProviders($providers, self::CMD_SHOW_USER_PROVIDER);
693 }

References $DIC, confirmDeleteProviders(), fetchProviderMulti(), and validateProviderDeletionSelection().

+ Here is the call graph for this function:

◆ executeCommand()

ilLTIConsumerAdministrationGUI::executeCommand ( )

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

112 : void
113 {
114 global $DIC; /* @var \ILIAS\DI\Container $DIC */
115
116 $this->initSubTabs();
117
118 switch ($DIC->ctrl()->getNextClass()) {
119 default:
120
121 $cmd = $DIC->ctrl()->getCmd(self::CMD_SHOW_GLOBAL_PROVIDER) . 'Cmd';
122 $this->{$cmd}();
123 }
124 }

References $DIC, and initSubTabs().

+ Here is the call graph for this function:

◆ fetchProvider()

ilLTIConsumerAdministrationGUI::fetchProvider ( )
protected
Exceptions

ILIAS\Filesystem\Exception\IOException

Definition at line 833 of file class.ilLTIConsumerAdministrationGUI.php.

834 {
835 global $DIC;
836
837 if ($DIC->http()->wrapper()->query()->has('provider_id')) {
839 (int) $DIC->http()->wrapper()->query()->retrieve('provider_id', $DIC->refinery()->kindlyTo()->int())
840 );
841 } else {
843 }
844 return $provider;
845 }

References $DIC, and $provider.

Referenced by acceptProviderAsGlobalCmd(), deleteGlobalProviderCmd(), deleteUserProviderCmd(), resetProviderToUserScopeCmd(), saveGlobalProviderFormCmd(), and saveUserProviderFormCmd().

+ Here is the caller graph for this function:

◆ fetchProviderMulti()

ilLTIConsumerAdministrationGUI::fetchProviderMulti ( )
protected
Returns
ilLTIConsumeProvider[]
Exceptions

ILIAS\Filesystem\Exception\IOException

Definition at line 851 of file class.ilLTIConsumerAdministrationGUI.php.

851 : array
852 {
853 global $DIC;
854 $providers = [];
855
856 $refinery = $DIC->refinery()->kindlyTo()->listOf(
857 $DIC->refinery()->kindlyTo()->int()
858 );
859
860 if ($DIC->http()->wrapper()->post()->has('provider_ids')) {
861 $provider_ids = $DIC->http()->wrapper()->post()->retrieve('provider_ids', $refinery);
862 } elseif ($DIC->http()->wrapper()->query()->has('provider_ids')) {
863 $raw = $DIC->http()->wrapper()->query()->retrieve(
864 'provider_ids',
865 $DIC->refinery()->kindlyTo()->string()
866 );
867
868 if (str_contains($raw, ',')) {
869 $provider_ids = array_map('intval', explode(',', $raw));
870 } else {
871 $provider_ids = [(int) $raw];
872 }
873 } else {
874 return $providers;
875 }
876
877 foreach ($provider_ids as $providerId) {
878 $providers[(int) $providerId] = new ilLTIConsumeProvider((int) $providerId);
879 }
880
881 return $providers;
882 }
if(empty($clientId)) $providerId
Definition: ltitoken.php:79

References $DIC, $providerId, ILIAS\UI\examples\Layout\Page\Standard\$refinery, and ILIAS\Repository\int().

Referenced by acceptProviderAsGlobalMultiCmd(), deleteGlobalProviderMultiCmd(), deleteUserProviderMultiCmd(), performDeleteProvidersCmd(), and resetProviderToUserScopeMultiCmd().

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

◆ getInput()

ilLTIConsumerAdministrationGUI::getInput (   $key)
private
Parameters
mixed$key
Returns
string

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

360 : string
361 {
362 if (!is_bool($this->_importedXmlData[$key])) {
363 $this->_importedXmlData[$key] = trim($this->_importedXmlData[$key]);
364 }
365 return $this->_importedXmlData[$key];
366 }

Referenced by prepareProvider().

+ Here is the caller graph for this function:

◆ getProviderListForIds()

ilLTIConsumerAdministrationGUI::getProviderListForIds ( array  $providerIds)
protected

Definition at line 935 of file class.ilLTIConsumerAdministrationGUI.php.

936 {
937 $providerList = new ilLTIConsumeProviderList();
938 $providerList->setIdsFilter($providerIds);
939 $providerList->load();
940 $providerList->loadUsages();
941 return $providerList;
942 }

Referenced by validateProviderDeletionSelection().

+ Here is the caller graph for this function:

◆ initSubTabs()

ilLTIConsumerAdministrationGUI::initSubTabs ( )
protected

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

80 : void
81 {
82 global $DIC; /* @var \ILIAS\DI\Container $DIC */
83
84 $DIC->tabs()->clearSubTabs();
85
86 $DIC->tabs()->addSubTab(
87 'global_provider',
88 $DIC->language()->txt('global_provider_subtab'),
89 $DIC->ctrl()->getLinkTarget($this, self::CMD_SHOW_GLOBAL_PROVIDER)
90 );
91
92 $DIC->tabs()->addSubTab(
93 'user_provider',
94 $DIC->language()->txt('user_provider_subtab'),
95 $DIC->ctrl()->getLinkTarget($this, self::CMD_SHOW_USER_PROVIDER)
96 );
97
98 /* currently no settings at all
99 $DIC->tabs()->addSubTab('settings',
100 $DIC->language()->txt('settings_subtab'),
101 $DIC->ctrl()->getLinkTarget($this, self::CMD_SHOW_SETTINGS)
102 );*/
103
104 // TODO: Implement Screen showing all Objects in Reporsitory
105 $DIC->tabs()->addSubTab(
106 'usage',
107 $DIC->language()->txt('usage_subtab'),
108 $DIC->ctrl()->getLinkTarget($this, 'showUsages')
109 );
110 }

References $DIC.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ performAcceptProvidersAsGlobal()

ilLTIConsumerAdministrationGUI::performAcceptProvidersAsGlobal ( array  $providers)
protected
Parameters
ilLTIConsumeProvider[]$providers
Exceptions

ILIAS\FileUpload\Exception\IllegalStateException

Exceptions

ILIAS\Filesystem\Exception\FileNotFoundException

Exceptions

ILIAS\Filesystem\Exception\IOException

Definition at line 564 of file class.ilLTIConsumerAdministrationGUI.php.

564 : void
565 {
566 global $DIC; /* @var \ILIAS\DI\Container $DIC */
567
568 foreach ($providers as $provider) {
569 $provider->setIsGlobal(true);
570 $provider->setAcceptedBy($DIC->user()->getId());
571 $provider->save();
572 }
573 }

References $DIC, and $provider.

Referenced by acceptProviderAsGlobalCmd(), and acceptProviderAsGlobalMultiCmd().

+ Here is the caller graph for this function:

◆ performDeleteProvidersCmd()

ilLTIConsumerAdministrationGUI::performDeleteProvidersCmd ( )
protected
Exceptions
ilCtrlException

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

775 : void
776 {
777 global $DIC; /* @var \ILIAS\DI\Container $DIC */
778
779 $providers = $this->fetchProviderMulti();
780
781 if ($this->validateProviderDeletionSelection($providers)) {
782 foreach ($providers as $provider) {
783 $provider->delete();
784 }
785
786 $this->main_tpl->setOnScreenMessage('success', $DIC->language()->txt('lti_success_delete_provider'), true);
787 }
788
789 $DIC->ctrl()->redirect($this, $DIC->http()->wrapper()->query()->retrieve(self::REDIRECTION_CMD_PARAMETER, $DIC->refinery()->kindlyTo()->string()));
790 }

References $DIC, $provider, fetchProviderMulti(), and validateProviderDeletionSelection().

+ Here is the call graph for this function:

◆ performProviderImport()

ilLTIConsumerAdministrationGUI::performProviderImport ( string  $providerXml)
protected
Exceptions

ILIAS\FileUpload\Exception\IllegalStateException

Exceptions

ILIAS\Filesystem\Exception\FileNotFoundException

Exceptions

ILIAS\Filesystem\Exception\IOException

TODO: parse xml and initialise provider object --> consider two kind xmls

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

308 {
309 $doc = new DOMDocument();
310 $doc->loadXML($providerXml);
311 $xPath = new DOMXPath($doc);
312 $this->_importedXmlData = [
313 'title' => $xPath->query("//*[local-name() = 'title']")->item(0)->nodeValue,
314 'description' => null !== ($desc = $xPath->query("//*[local-name() = 'description']")->item(0)->nodeValue) ? $desc : '',
315 'provider_url' => $xPath->query("//*[local-name() = 'launch_url']")->item(0)->nodeValue,
316 'provider_icon' => $xPath->query("//*[local-name() = 'icon']")->item(0)->nodeValue,
317 'launch_method' => 'newWin',
318 ];
319
320 // DONE ?
326 return $this->prepareProvider();
327 }

References prepareProvider().

Referenced by saveGlobalProviderImportCmd().

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

◆ performResetProvidersToUserScope()

ilLTIConsumerAdministrationGUI::performResetProvidersToUserScope ( array  $providers)
protected
Parameters
ilLTIConsumeProvider[]$providers
Exceptions

ILIAS\FileUpload\Exception\IllegalStateException

Exceptions

ILIAS\Filesystem\Exception\FileNotFoundException

Exceptions

ILIAS\Filesystem\Exception\IOException

Definition at line 625 of file class.ilLTIConsumerAdministrationGUI.php.

625 : void
626 {
627 foreach ($providers as $provider) {
628 $provider->setIsGlobal(false);
629 $provider->setAcceptedBy(0);
630 $provider->save();
631 }
632 }

References $provider.

Referenced by resetProviderToUserScopeCmd(), and resetProviderToUserScopeMultiCmd().

+ Here is the caller graph for this function:

◆ prepareProvider()

ilLTIConsumerAdministrationGUI::prepareProvider ( )
private
Exceptions

ILIAS\FileUpload\Exception\IllegalStateException

Exceptions

ILIAS\Filesystem\Exception\FileNotFoundException

Exceptions

ILIAS\Filesystem\Exception\IOException

Definition at line 334 of file class.ilLTIConsumerAdministrationGUI.php.

335 {
337 $provider->setTitle($this->getInput('title'));
338 $provider->setDescription($this->getInput('description'));
339 if (null !== $this->getInput('provider_url')) {
340 $provider->setProviderUrl($this->getInput('provider_url'));
341 }
342 $provider->setIsGlobal(true);
343 $provider->save();
344
345 // PROVIDER ICON
346 $pId = $provider->getId();
347 if (null !== $pIconFileName = $this->getIconXml($this->getInput('provider_icon'), (string) $pId)) {
348 $provider->setProviderIconFilename($pIconFileName);
349 $provider->update();
350 $provider->update();
351 }
352
353 return $provider;
354 }

References $provider, and getInput().

Referenced by performProviderImport().

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

◆ resetProviderToUserScopeCmd()

ilLTIConsumerAdministrationGUI::resetProviderToUserScopeCmd ( )
protected
Exceptions
ilCtrlException

Definition at line 605 of file class.ilLTIConsumerAdministrationGUI.php.

605 : void
606 {
607 global $DIC; /* @var \ILIAS\DI\Container $DIC */
608
609 $provider = $this->fetchProvider();
610
611 if ($provider->isResetableToUserDefined()) {
613 }
614
615 $this->main_tpl->setOnScreenMessage('success', $DIC->language()->txt('lti_success_reset_to_usr_def'), true);
616 $DIC->ctrl()->redirect($this, self::CMD_SHOW_GLOBAL_PROVIDER);
617 }

References $DIC, $provider, fetchProvider(), and performResetProvidersToUserScope().

+ Here is the call graph for this function:

◆ resetProviderToUserScopeMultiCmd()

ilLTIConsumerAdministrationGUI::resetProviderToUserScopeMultiCmd ( )
protected
Exceptions
ilCtrlException

Definition at line 578 of file class.ilLTIConsumerAdministrationGUI.php.

578 : void
579 {
580 global $DIC; /* @var \ILIAS\DI\Container $DIC */
581
582 $providers = $this->fetchProviderMulti();
583
584 if (!count($providers)) {
585 $this->main_tpl->setOnScreenMessage('failure', $DIC->language()->txt('lti_no_provider_selected'), true);
586 $DIC->ctrl()->redirect($this, self::CMD_SHOW_GLOBAL_PROVIDER);
587 }
588
589 foreach ($providers as $provider) {
590 if (!$provider->isResetableToUserDefined()) {
591 $this->main_tpl->setOnScreenMessage('failure', $DIC->language()->txt('lti_at_least_one_not_resetable_to_usr_def'), true);
592 $DIC->ctrl()->redirect($this, self::CMD_SHOW_GLOBAL_PROVIDER);
593 }
594 }
595
596 $this->performResetProvidersToUserScope($providers);
597
598 $this->main_tpl->setOnScreenMessage('success', $DIC->language()->txt('lti_success_reset_to_usr_def_multi'), true);
599 $DIC->ctrl()->redirect($this, self::CMD_SHOW_GLOBAL_PROVIDER);
600 }

References $DIC, $provider, fetchProviderMulti(), and performResetProvidersToUserScope().

+ Here is the call graph for this function:

◆ saveGlobalProviderFormCmd()

ilLTIConsumerAdministrationGUI::saveGlobalProviderFormCmd ( )
protected

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

203 : void
204 {
205 global $DIC; /* @var \ILIAS\DI\Container $DIC */
206
207 $provider = $this->fetchProvider();
208
209 $form = $this->buildProviderForm(
210 $provider,
211 self::CMD_SAVE_GLOBAL_PROVIDER_FORM,
212 self::CMD_SHOW_GLOBAL_PROVIDER
213 );
214
215 if ($form->checkInput()) {
216 $form->initProvider($provider);
217
218 if (!$provider->getCreator()) {
219 $provider->setCreator($DIC->user()->getId());
220 }
221
222 $provider->setIsGlobal(true);
223 $provider->save();
224
225 $DIC->ctrl()->redirect($this, self::CMD_SHOW_GLOBAL_PROVIDER);
226 }
227
228 $this->showGlobalProviderFormCmd($form);
229 }
buildProviderForm(ilLTIConsumeProvider $provider, string $saveCmd, string $cancelCmd)
showGlobalProviderFormCmd(?ilLTIConsumeProviderFormGUI $form=null)

References $DIC, $provider, buildProviderForm(), fetchProvider(), and showGlobalProviderFormCmd().

+ Here is the call graph for this function:

◆ saveGlobalProviderImportCmd()

ilLTIConsumerAdministrationGUI::saveGlobalProviderImportCmd ( )
protected

Definition at line 247 of file class.ilLTIConsumerAdministrationGUI.php.

247 : void
248 {
249 global $DIC; /* @var \ILIAS\DI\Container $DIC */
250
251 $form = $this->buildProviderImportForm(
252 self::CMD_SAVE_GLOBAL_PROVIDER_IMPORT,
253 self::CMD_SHOW_GLOBAL_PROVIDER
254 );
255
256 if (!$form->checkInput()) {
257 $this->showGlobalProviderImportCmd($form);
258 return;
259 }
260
261 $fileData = (array) $DIC->http()->wrapper()->post()->retrieve('provider_xml', $DIC->refinery()->kindlyTo()->listOf($DIC->refinery()->kindlyTo()->string()));
262
263 if (!$fileData['tmp_name']) {
264 $this->showGlobalProviderImportCmd($form);
265 return;
266 }
267
268 $providerXml = file_get_contents($fileData['tmp_name']);
269
270 $provider = $this->performProviderImport($providerXml);
271
272 $this->main_tpl->setOnScreenMessage('success', $DIC->language()->txt('provider_import_success_msg'));
273 $DIC->ctrl()->setParameter($this, 'provider_id', $provider->getId());
274 $DIC->ctrl()->redirect($this, self::CMD_SHOW_GLOBAL_PROVIDER_FORM);
275 }
showGlobalProviderImportCmd(ilPropertyFormGUI $form=null)
buildProviderImportForm(string $saveCommand, string $cancelCommand)

References $DIC, $provider, buildProviderImportForm(), performProviderImport(), and showGlobalProviderImportCmd().

+ Here is the call graph for this function:

◆ saveSettingsCmd()

ilLTIConsumerAdministrationGUI::saveSettingsCmd ( )
protected

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

902 : void
903 {
904 // todo - check
905 global $DIC; /* @var \ILIAS\DI\Container $DIC */
906
907 return; // no settings at all currently
908
909 $form = $this->buildSettingsForm();
910
911 if (!$form->checkInput()) {
912 $this->showSettingsCmd($form);
913 return;
914 }
915
916 $DIC->ctrl()->redirect($this, self::CMD_SHOW_SETTINGS);
917 }

References $DIC, buildSettingsForm(), and showSettingsCmd().

+ Here is the call graph for this function:

◆ saveUserProviderFormCmd()

ilLTIConsumerAdministrationGUI::saveUserProviderFormCmd ( )
protected
Exceptions

ILIAS\FileUpload\Exception\IllegalStateException

Exceptions

ILIAS\Filesystem\Exception\FileNotFoundException

Exceptions

ILIAS\Filesystem\Exception\IOException

Exceptions
ilCtrlException

Definition at line 491 of file class.ilLTIConsumerAdministrationGUI.php.

491 : void
492 {
493 global $DIC; /* @var \ILIAS\DI\Container $DIC */
494
495 $provider = $this->fetchProvider();
496
497 $form = $this->buildProviderForm(
498 $provider,
499 self::CMD_SAVE_USER_PROVIDER_FORM,
500 self::CMD_SHOW_USER_PROVIDER
501 );
502
503 if ($form->checkInput()) {
504 $form->initProvider($provider);
505 $provider->setIsGlobal(false);
506 $provider->save();
507
508 $DIC->ctrl()->redirect($this, self::CMD_SHOW_USER_PROVIDER);
509 }
510
511 $this->showUserProviderFormCmd($form);
512 }
showUserProviderFormCmd(?ilLTIConsumeProviderFormGUI $form=null)

References $DIC, $provider, buildProviderForm(), fetchProvider(), and showUserProviderFormCmd().

+ Here is the call graph for this function:

◆ showGlobalProviderCmd()

ilLTIConsumerAdministrationGUI::showGlobalProviderCmd ( )
protected
Exceptions
ilCtrlException

Definition at line 129 of file class.ilLTIConsumerAdministrationGUI.php.

129 : void
130 {
131 global $DIC; /* @var \ILIAS\DI\Container $DIC */
132
133 $DIC->tabs()->activateSubTab('global_provider');
134
135 if ($this->hasWritePermission) {
136 $button = $DIC->ui()->factory()->button()->standard(
137 $DIC->language()->txt('lti_add_global_provider'),
138 $DIC->ctrl()->getLinkTarget($this, self::CMD_SHOW_GLOBAL_PROVIDER_FORM)
139 );
140
141 $DIC->toolbar()->addComponent($button);
142
143 $button = $DIC->ui()->factory()->button()->standard(
144 $DIC->language()->txt('lti_import_global_provider'),
145 $DIC->ctrl()->getLinkTarget($this, self::CMD_SHOW_GLOBAL_PROVIDER_IMPORT)
146 );
147
148 $DIC->toolbar()->addComponent($button);
149 }
150
151
152
153 $table = $this->buildProviderTable($this, self::CMD_SHOW_GLOBAL_PROVIDER);
154 $table->enableResetProviderToUserScope();
155
156 $filter = $table->getFilter();
157 $filter_params = $DIC->uiService()->filter()->getData($filter);
158
159 $providerList = new ilLTIConsumeProviderList();
160 $providerList->setScopeFilter(ilLTIConsumeProviderList::SCOPE_GLOBAL);
161 $providerList->setTitleFilter($filter_params['title'] ?? '');
162 $providerList->setKeywordFilter($filter_params['keywords'] ?? '');
163 $providerList->setHasOutcomeFilter(($filter_params['outcome'] ?? '') === '' ? null : $filter_params['outcome'] === 'yes');
164 $providerList->setIsExternalFilter(($filter_params['internal'] ?? '') === '' ? null : $filter_params['internal'] !== 'yes');
165 $providerList->setIsProviderKeyCustomizableFilter(($filter_params['with_key'] ?? '') === '' ? null : $filter_params['with_key'] === 'yes');
166 $providerList->setCategoryFilter($filter_params['category'] ?? '');
167
168 $providerList->load();
169
170 $table->setData($providerList->getTableData());
171
172 $DIC->ui()->mainTemplate()->setContent($DIC->ui()->renderer()->render($filter) . $table->getHTML($this->hasWritePermission));
173 }
buildProviderTable(ilLTIConsumerAdministrationGUI $parentGui, string $parentCmd)

References $DIC, buildProviderTable(), and ilLTIConsumeProviderList\SCOPE_GLOBAL.

+ Here is the call graph for this function:

◆ showGlobalProviderFormCmd()

ilLTIConsumerAdministrationGUI::showGlobalProviderFormCmd ( ?ilLTIConsumeProviderFormGUI  $form = null)
protected
Exceptions

ILIAS\Filesystem\Exception\IOException

Exceptions
ilCtrlException

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

179 : void
180 {
181 global $DIC; /* @var \ILIAS\DI\Container $DIC */
182
183 $DIC->tabs()->activateSubTab('global_provider');
184
185 if ($form === null) {
186 if ($DIC->http()->wrapper()->query()->has('provider_id')) {
187 $DIC->ctrl()->saveParameter($this, 'provider_id');
188 $provider = new ilLTIConsumeProvider((int) $DIC->http()->wrapper()->query()->retrieve('provider_id', $DIC->refinery()->kindlyTo()->int()));
189 } else {
191 }
192
193 $form = $this->buildProviderForm(
194 $provider,
195 self::CMD_SAVE_GLOBAL_PROVIDER_FORM,
196 self::CMD_SHOW_GLOBAL_PROVIDER
197 );
198 }
199
200 $DIC->ui()->mainTemplate()->setContent($form->getHTML());
201 }

References $DIC, $provider, and buildProviderForm().

Referenced by saveGlobalProviderFormCmd().

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

◆ showGlobalProviderImportCmd()

ilLTIConsumerAdministrationGUI::showGlobalProviderImportCmd ( ilPropertyFormGUI  $form = null)
protected

Definition at line 231 of file class.ilLTIConsumerAdministrationGUI.php.

231 : void
232 {
233 global $DIC; /* @var \ILIAS\DI\Container $DIC */
234
235 $DIC->tabs()->activateSubTab('global_provider');
236
237 if ($form === null) {
238 $form = $this->buildProviderImportForm(
239 self::CMD_SAVE_GLOBAL_PROVIDER_IMPORT,
240 self::CMD_SHOW_GLOBAL_PROVIDER
241 );
242 }
243
244 $DIC->ui()->mainTemplate()->setContent($form->getHTML());
245 }

References $DIC, and buildProviderImportForm().

Referenced by saveGlobalProviderImportCmd().

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

◆ showSettingsCmd()

ilLTIConsumerAdministrationGUI::showSettingsCmd ( ?ilPropertyFormGUI  $form = null)
protected

Definition at line 886 of file class.ilLTIConsumerAdministrationGUI.php.

886 : void
887 {
888 // todo - check
889 global $DIC; /* @var \ILIAS\DI\Container $DIC */
890
891 return; // no settings at all currently
892
893 $DIC->tabs()->activateSubTab('settings');
894
895 if ($form === null) {
896 $form = $this->buildSettingsForm();
897 }
898
899 $DIC->ui()->mainTemplate()->setContent($form->getHTML());
900 }

References $DIC, and buildSettingsForm().

Referenced by saveSettingsCmd().

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

◆ showUsagesCmd()

ilLTIConsumerAdministrationGUI::showUsagesCmd ( )
protected

Definition at line 800 of file class.ilLTIConsumerAdministrationGUI.php.

800 : void
801 {
802 global $DIC;
803
804 $DIC->tabs()->activateSubTab('usage');
805
806 $providerList = new ilLTIConsumeProviderList();
807 $providerList->setScopeFilter(ilLTIConsumeProviderList::SCOPE_GLOBAL);
808 $providerList->load();
809
811 $table->setData($providerList->getTableDataUsedBy());
812
813 $DIC->ui()->mainTemplate()->setContent($table->getHTML());
814 }

References $DIC, and ilLTIConsumeProviderList\SCOPE_GLOBAL.

◆ showUserProviderCmd()

ilLTIConsumerAdministrationGUI::showUserProviderCmd ( )
protected
Exceptions
ilCtrlException

Definition at line 429 of file class.ilLTIConsumerAdministrationGUI.php.

429 : void
430 {
431 global $DIC; /* @var \ILIAS\DI\Container $DIC */
432
433 $DIC->tabs()->activateSubTab('user_provider');
434
435 $table = $this->buildProviderTable($this, self::CMD_SHOW_USER_PROVIDER);
436 $table->enableAcceptProviderAsGlobal();
437
438 $filter = $table->getFilter();
439 $filter_params = $DIC->uiService()->filter()->getData($filter);
440
441 $providerList = new ilLTIConsumeProviderList();
442 $providerList->setScopeFilter(ilLTIConsumeProviderList::SCOPE_USER);
443 $providerList->setTitleFilter($filter_params['title'] ?? '');
444 $providerList->setKeywordFilter($filter_params['keywords'] ?? '');
445 $providerList->setHasOutcomeFilter(($filter_params['outcome'] ?? '') === '' ? null : $filter_params['outcome'] === 'yes');
446 $providerList->setIsExternalFilter(($filter_params['internal'] ?? '') === '' ? null : $filter_params['internal'] !== 'yes');
447 $providerList->setIsProviderKeyCustomizableFilter(($filter_params['with_key'] ?? '') === '' ? null : $filter_params['with_key'] === 'yes');
448 $providerList->setCategoryFilter($filter_params['category'] ?? '');
449
450 $providerList->load();
451
452 $table->setData($providerList->getTableData());
453
454 $DIC->ui()->mainTemplate()->setContent($DIC->ui()->renderer()->render($filter) . $table->getHTML($this->hasWritePermission));
455 }

References $DIC, buildProviderTable(), and ilLTIConsumeProviderList\SCOPE_USER.

+ Here is the call graph for this function:

◆ showUserProviderFormCmd()

ilLTIConsumerAdministrationGUI::showUserProviderFormCmd ( ?ilLTIConsumeProviderFormGUI  $form = null)
protected
Exceptions

ILIAS\Filesystem\Exception\IOException

Exceptions
ilCtrlException

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

461 : void
462 {
463 global $DIC; /* @var \ILIAS\DI\Container $DIC */
464
465 $DIC->tabs()->activateSubTab('user_provider');
466
467 if ($form === null) {
468 if ($DIC->http()->wrapper()->query()->has('provider_id')) {
469 $DIC->ctrl()->saveParameter($this, 'provider_id');
470 $provider = new ilLTIConsumeProvider((int) $DIC->http()->wrapper()->query()->retrieve('provider_id', $DIC->refinery()->kindlyTo()->int()));
471 } else {
473 }
474
475 $form = $this->buildProviderForm(
476 $provider,
477 self::CMD_SAVE_USER_PROVIDER_FORM,
478 self::CMD_SHOW_USER_PROVIDER
479 );
480 }
481
482 $DIC->ui()->mainTemplate()->setContent($form->getHTML());
483 }

References $DIC, $provider, and buildProviderForm().

Referenced by saveUserProviderFormCmd().

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

◆ validateProviderDeletionSelection()

ilLTIConsumerAdministrationGUI::validateProviderDeletionSelection ( array  $providers)
protected

Definition at line 716 of file class.ilLTIConsumerAdministrationGUI.php.

716 : bool
717 {
718 global $DIC; /* @var \ILIAS\DI\Container $DIC */
719
720 if (!count($providers)) {
721 $this->main_tpl->setOnScreenMessage('failure', $DIC->language()->txt('lti_no_provider_selected'), true);
722 return false;
723 }
724
725 $providerList = $this->getProviderListForIds(array_keys($providers));
726
727 foreach ($providers as $provider) {
728 if ($providerList->hasUsages($provider->getId())) {
729 $this->main_tpl->setOnScreenMessage('failure', $DIC->language()->txt('lti_at_least_one_prov_has_usages'), true);
730 return false;
731 }
732 }
733
734 return true;
735 }

References $DIC, $provider, and getProviderListForIds().

Referenced by deleteGlobalProviderCmd(), deleteGlobalProviderMultiCmd(), deleteUserProviderCmd(), deleteUserProviderMultiCmd(), and performDeleteProvidersCmd().

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

Field Documentation

◆ $_importedXmlData

array ilLTIConsumerAdministrationGUI::$_importedXmlData = []
private

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

◆ $hasWritePermission

bool ilLTIConsumerAdministrationGUI::$hasWritePermission
private

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

Referenced by __construct().

◆ $main_tpl

ilGlobalTemplateInterface ilLTIConsumerAdministrationGUI::$main_tpl
private

Definition at line 66 of file class.ilLTIConsumerAdministrationGUI.php.

◆ ALLOWED_FILE_EXT

const ilLTIConsumerAdministrationGUI::ALLOWED_FILE_EXT = ['jpg', 'jpeg', 'png', 'gif', 'ico', 'svg']

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

◆ CMD_ACCEPT_PROVIDER_AS_GLOBAL

const ilLTIConsumerAdministrationGUI::CMD_ACCEPT_PROVIDER_AS_GLOBAL = 'acceptProviderAsGlobal'

◆ CMD_ACCEPT_PROVIDER_AS_GLOBAL_MULTI

const ilLTIConsumerAdministrationGUI::CMD_ACCEPT_PROVIDER_AS_GLOBAL_MULTI = 'acceptProviderAsGlobalMulti'

◆ CMD_DELETE_GLOBAL_PROVIDER

const ilLTIConsumerAdministrationGUI::CMD_DELETE_GLOBAL_PROVIDER = 'deleteGlobalProvider'

◆ CMD_DELETE_GLOBAL_PROVIDER_MULTI

const ilLTIConsumerAdministrationGUI::CMD_DELETE_GLOBAL_PROVIDER_MULTI = 'deleteGlobalProviderMulti'

◆ CMD_DELETE_USER_PROVIDER

const ilLTIConsumerAdministrationGUI::CMD_DELETE_USER_PROVIDER = 'deleteUserProvider'

◆ CMD_DELETE_USER_PROVIDER_MULTI

const ilLTIConsumerAdministrationGUI::CMD_DELETE_USER_PROVIDER_MULTI = 'deleteUserProviderMulti'

◆ CMD_PERFORM_DELETE_PROVIDERS

const ilLTIConsumerAdministrationGUI::CMD_PERFORM_DELETE_PROVIDERS = 'performDeleteProviders'

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

◆ CMD_RESET_PROVIDER_TO_USER_SCOPE

const ilLTIConsumerAdministrationGUI::CMD_RESET_PROVIDER_TO_USER_SCOPE = 'resetProviderToUserScope'

◆ CMD_RESET_PROVIDER_TO_USER_SCOPE_MULTI

const ilLTIConsumerAdministrationGUI::CMD_RESET_PROVIDER_TO_USER_SCOPE_MULTI = 'resetProviderToUserScopeMulti'

◆ CMD_ROLE_AUTOCOMPLETE

const ilLTIConsumerAdministrationGUI::CMD_ROLE_AUTOCOMPLETE = 'roleAutocomplete'

Definition at line 59 of file class.ilLTIConsumerAdministrationGUI.php.

◆ CMD_SAVE_GLOBAL_PROVIDER_FORM

const ilLTIConsumerAdministrationGUI::CMD_SAVE_GLOBAL_PROVIDER_FORM = 'saveGlobalProviderForm'

Definition at line 38 of file class.ilLTIConsumerAdministrationGUI.php.

◆ CMD_SAVE_GLOBAL_PROVIDER_IMPORT

const ilLTIConsumerAdministrationGUI::CMD_SAVE_GLOBAL_PROVIDER_IMPORT = 'saveGlobalProviderImport'

Definition at line 40 of file class.ilLTIConsumerAdministrationGUI.php.

◆ CMD_SAVE_SETTINGS

const ilLTIConsumerAdministrationGUI::CMD_SAVE_SETTINGS = 'saveSettings'

Definition at line 58 of file class.ilLTIConsumerAdministrationGUI.php.

◆ CMD_SAVE_USER_PROVIDER_FORM

const ilLTIConsumerAdministrationGUI::CMD_SAVE_USER_PROVIDER_FORM = 'saveUserProviderForm'

Definition at line 44 of file class.ilLTIConsumerAdministrationGUI.php.

◆ CMD_SHOW_GLOBAL_PROVIDER

const ilLTIConsumerAdministrationGUI::CMD_SHOW_GLOBAL_PROVIDER = 'showGlobalProvider'

Definition at line 36 of file class.ilLTIConsumerAdministrationGUI.php.

◆ CMD_SHOW_GLOBAL_PROVIDER_FORM

const ilLTIConsumerAdministrationGUI::CMD_SHOW_GLOBAL_PROVIDER_FORM = 'showGlobalProviderForm'

◆ CMD_SHOW_GLOBAL_PROVIDER_IMPORT

const ilLTIConsumerAdministrationGUI::CMD_SHOW_GLOBAL_PROVIDER_IMPORT = 'showGlobalProviderImport'

Definition at line 39 of file class.ilLTIConsumerAdministrationGUI.php.

◆ CMD_SHOW_SETTINGS

const ilLTIConsumerAdministrationGUI::CMD_SHOW_SETTINGS = 'showSettings'

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

◆ CMD_SHOW_USAGES

const ilLTIConsumerAdministrationGUI::CMD_SHOW_USAGES = 'showUsages'

Definition at line 61 of file class.ilLTIConsumerAdministrationGUI.php.

◆ CMD_SHOW_USER_PROVIDER

const ilLTIConsumerAdministrationGUI::CMD_SHOW_USER_PROVIDER = 'showUserProvider'

Definition at line 42 of file class.ilLTIConsumerAdministrationGUI.php.

◆ CMD_SHOW_USER_PROVIDER_FORM

const ilLTIConsumerAdministrationGUI::CMD_SHOW_USER_PROVIDER_FORM = 'showUserProviderForm'

◆ REDIRECTION_CMD_PARAMETER

const ilLTIConsumerAdministrationGUI::REDIRECTION_CMD_PARAMETER = 'redirectCmd'

Definition at line 34 of file class.ilLTIConsumerAdministrationGUI.php.


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