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

56 : string
57 {
58 $this->lng->loadLanguageModule('exp');
59 return $this->lng->txt("exp_format_dropdown-html") . " (" . $this->lng->txt("wiki_incl_comments") . ")";
60 }

References ILIAS\Repository\lng().

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

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

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

35 : void
36 {
37 $this->lng = $DIC->language();
39 }
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()

ilWikiExportOptionHTMLWithComments::isObjectSupported ( ObjectId  $object_id)

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

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

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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data

References ilObject\_exists(), and ILIAS\Data\ObjectId\toInt().

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