ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ilLearningModuleExportOptionXML Class Reference
+ Inheritance diagram for ilLearningModuleExportOptionXML:
+ Collaboration diagram for ilLearningModuleExportOptionXML:

Public Member Functions

 init (Container $DIC)
 
 getExportType ()
 
 getExportOptionId ()
 
 getSupportedRepositoryObjectTypes ()
 
 isObjectSupported (ObjectId $object_id)
 
 isPublicAccessPossible ()
 
 getLabel ()
 
 onExportOptionSelected (\ILIAS\Export\ExportHandler\I\Consumer\Context\HandlerInterface $context)
 
- Public Member Functions inherited from ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler
 init (Container $DIC)
 
 onDeleteFiles (ilExportHandlerConsumerContextInterface $context, ilExportHandlerConsumerFileIdentifierCollectionInterface $file_identifiers)
 
 onDownloadFiles (ilExportHandlerConsumerContextInterface $context, ilExportHandlerConsumerFileIdentifierCollectionInterface $file_identifiers)
 
 onDownloadWithLink (ReferenceId $reference_id, ilExportHandlerConsumerFileIdentifierInterface $file_identifier)
 
 getFileSelection (ilExportHandlerConsumerContextInterface $context, ilExportHandlerConsumerFileIdentifierCollectionInterface $file_identifiers)
 
 getFiles (ilExportHandlerConsumerContextInterface $context)
 
- Public Member Functions inherited from ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicHandler
 __construct ()
 
 isObjectSupported (ObjectId $object_id)
 
 isPublicAccessPossible ()
 

Protected Attributes

ilLanguage $lng
 
ilDBInterface $db
 
- Protected Attributes inherited from ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler
ilCtrl $ctrl
 
ilDataFactory $data_factory
 

Detailed Description

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

Member Function Documentation

◆ getExportOptionId()

ilLearningModuleExportOptionXML::getExportOptionId ( )

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

44  : string
45  {
46  return 'lm_exp_option_xml';
47  }

◆ getExportType()

ilLearningModuleExportOptionXML::getExportType ( )

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

39  : string
40  {
41  return 'xml';
42  }

◆ getLabel()

ilLearningModuleExportOptionXML::getLabel ( )

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

References ILIAS\Repository\lng().

66  : string
67  {
68  $this->lng->loadLanguageModule('exp');
69  return $this->lng->txt("exp_format_dropdown-xml") . " (" . $this->lng->txt('cont_master_language_only_no_media') . ")";
70  }
+ Here is the call graph for this function:

◆ getSupportedRepositoryObjectTypes()

ilLearningModuleExportOptionXML::getSupportedRepositoryObjectTypes ( )

Definition at line 49 of file class.ilLearningModuleExportOptionXML.php.

49  : array
50  {
51  return ["lm"];
52  }

◆ init()

ilLearningModuleExportOptionXML::init ( Container  $DIC)

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

References ILIAS\DI\Container\database(), init(), ILIAS\DI\Container\language(), and ILIAS\Repository\lng().

32  : void
33  {
34  $this->lng = $DIC->language();
35  $this->db = $DIC->database();
36  parent::init($DIC);
37  }
database()
Get interface to the Database.
Definition: Container.php:42
language()
Get interface to the i18n service.
Definition: Container.php:95
+ Here is the call graph for this function:

◆ isObjectSupported()

ilLearningModuleExportOptionXML::isObjectSupported ( ObjectId  $object_id)

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

References ILIAS\Data\ObjectId\toInt().

56  : bool {
57  $ot = (new TranslationsRepository($this->db))->getFor($object_id->toInt());
58  return $ot->getContentTranslationActivated();
59  }
+ Here is the call graph for this function:

◆ isPublicAccessPossible()

ilLearningModuleExportOptionXML::isPublicAccessPossible ( )

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

61  : bool
62  {
63  return true;
64  }

◆ onExportOptionSelected()

ilLearningModuleExportOptionXML::onExportOptionSelected ( \ILIAS\Export\ExportHandler\I\Consumer\Context\HandlerInterface  $context)

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

References ILIAS\Repository\ctrl().

72  : void
73  {
74  $this->ctrl->redirectToURL($this->ctrl->getLinkTargetByClass(ilObjContentObjectGUI::class, "showExportOptionsXML"));
75  }
+ Here is the call graph for this function:

Field Documentation

◆ $db

ilDBInterface ilLearningModuleExportOptionXML::$db
protected

Definition at line 30 of file class.ilLearningModuleExportOptionXML.php.

◆ $lng

ilLanguage ilLearningModuleExportOptionXML::$lng
protected

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


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