ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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 }

References ILIAS\Repository\lng().

+ 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)

Reimplemented from ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler.

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

32 : void
33 {
34 $this->lng = $DIC->language();
35 $this->db = $DIC->database();
37 }
language()
Get interface to the i18n service.
Definition: Container.php:95
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

◆ isObjectSupported()

ilLearningModuleExportOptionXML::isObjectSupported ( ObjectId  $object_id)

Reimplemented from ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicHandler.

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

56 : bool {
57 $ot = (new TranslationsRepository($this->db))->getFor($object_id->toInt());
58 return $ot->getContentTranslationActivated();
59 }

◆ isPublicAccessPossible()

ilLearningModuleExportOptionXML::isPublicAccessPossible ( )

Reimplemented from ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicHandler.

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.

72 : void
73 {
74 $this->ctrl->redirectToURL($this->ctrl->getLinkTargetByClass(ilObjContentObjectGUI::class, "showExportOptionsXML"));
75 }

References ILIAS\Repository\ctrl().

+ 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: