ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilWikiExportOptionHTMLWithComments Class Reference
+ Inheritance diagram for ilWikiExportOptionHTMLWithComments:
+ Collaboration diagram for ilWikiExportOptionHTMLWithComments:

Public Member Functions

 init (Container $DIC)
 
 getExportType ()
 
 getExportOptionId ()
 
 getSupportedRepositoryObjectTypes ()
 
 getLabel ()
 
 isObjectSupported (ObjectId $object_id)
 
- 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
 
- Protected Attributes inherited from ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler
ilCtrl $ctrl
 
ilDataFactory $data_factory
 

Detailed Description

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

Member Function Documentation

◆ getExportOptionId()

ilWikiExportOptionHTMLWithComments::getExportOptionId ( )

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

46  : string
47  {
48  return 'wiki_exp_option_html_with_comments';
49  }

◆ getExportType()

ilWikiExportOptionHTMLWithComments::getExportType ( )

Definition at line 41 of file class.ilWikiExportOptionHTMLWithComments.php.

41  : string
42  {
43  return 'html_comments';
44  }

◆ getLabel()

ilWikiExportOptionHTMLWithComments::getLabel ( )

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

References ILIAS\Repository\lng().

56  : string
57  {
58  $this->lng->loadLanguageModule('exp');
59  return $this->lng->txt("exp_format_dropdown-html") . " (" . $this->lng->txt("wiki_incl_comments") . ")";
60  }
+ Here is the call graph for this function:

◆ getSupportedRepositoryObjectTypes()

ilWikiExportOptionHTMLWithComments::getSupportedRepositoryObjectTypes ( )

Definition at line 51 of file class.ilWikiExportOptionHTMLWithComments.php.

51  : array
52  {
53  return ['wiki'];
54  }

◆ init()

ilWikiExportOptionHTMLWithComments::init ( Container  $DIC)

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

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

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

◆ isObjectSupported()

ilWikiExportOptionHTMLWithComments::isObjectSupported ( ObjectId  $object_id)

Definition at line 62 of file class.ilWikiExportOptionHTMLWithComments.php.

References $context, ilObject\_exists(), ilExportGUI\CMD_LIST_EXPORT_FILES, ILIAS\Repository\ctrl(), and ILIAS\Data\ObjectId\toInt().

62  : bool
63  {
64  try {
65  return (
66  ilObjWiki::_exists($object_id->toInt()) and
67  (new ilObjWiki($object_id->toInt(), false))->isCommentsExportPossible()
68  );
69  } catch (ilObjectTypeMismatchException $exception) {
70  return false;
71  }
72  }
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilLanguage ilWikiExportOptionHTMLWithComments::$lng
protected

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


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