ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.ilBlogExportOptionHTMLWithComments.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler
as ilBasicLegacyExportOption;
22
use
ILIAS\Export\ExportHandler\I\Consumer\Context\HandlerInterface
as ilExportHandlerConsumerContextInterface;
23
use
ILIAS\DI\Container
;
24
use
ILIAS\Data\ObjectId
;
25
26
class
ilBlogExportOptionHTMLWithComments
extends
ilBasicLegacyExportOption
27
{
28
protected
ilLanguage
$lng
;
29
30
public
function
init
(
31
Container
$DIC
32
): void {
33
$this->
lng
=
$DIC
->
language
();
34
parent::init
(
$DIC
);
35
}
36
37
public
function
isObjectSupported
(
38
ObjectId
$object_id
39
): bool {
40
return
ilObjBlogAccess
::isCommentsExportPossible($object_id->toInt());
41
}
42
43
public
function
getExportType
(): string
44
{
45
return
'html_comments'
;
46
}
47
48
public
function
getExportOptionId
(): string
49
{
50
return
'blog_exp_option_html_with_comments'
;
51
}
52
53
public
function
getSupportedRepositoryObjectTypes
(): array
54
{
55
return
[
'blog'
];
56
}
57
58
public
function
getLabel
(): string
59
{
60
$this->
lng
->loadLanguageModule(
'exp'
);
61
return
$this->
lng
->txt(
"exp_format_dropdown-html"
) .
" ("
. $this->
lng
->txt(
"blog_incl_comments"
) .
")"
;
62
}
63
64
public
function
onExportOptionSelected
(
65
ilExportHandlerConsumerContextInterface
$context
66
): void {
67
$this->
ctrl
->redirectByClass(
ilObjBlogGUI
::class,
"createExportFileWithComments"
);
68
}
69
}
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:36
ILIAS\Data\ObjectId
Definition:
ObjectId.php:33
ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler
Definition:
BasicLegacyHandler.php:39
ilBlogExportOptionHTMLWithComments
Definition:
class.ilBlogExportOptionHTMLWithComments.php:27
ilBlogExportOptionHTMLWithComments\getLabel
getLabel()
Definition:
class.ilBlogExportOptionHTMLWithComments.php:58
ilBlogExportOptionHTMLWithComments\getExportType
getExportType()
Definition:
class.ilBlogExportOptionHTMLWithComments.php:43
ilBlogExportOptionHTMLWithComments\$lng
ilLanguage $lng
Definition:
class.ilBlogExportOptionHTMLWithComments.php:28
ilBlogExportOptionHTMLWithComments\getSupportedRepositoryObjectTypes
getSupportedRepositoryObjectTypes()
Definition:
class.ilBlogExportOptionHTMLWithComments.php:53
ilBlogExportOptionHTMLWithComments\getExportOptionId
getExportOptionId()
Definition:
class.ilBlogExportOptionHTMLWithComments.php:48
ilBlogExportOptionHTMLWithComments\onExportOptionSelected
onExportOptionSelected(ilExportHandlerConsumerContextInterface $context)
Definition:
class.ilBlogExportOptionHTMLWithComments.php:64
ilBlogExportOptionHTMLWithComments\init
init(Container $DIC)
Definition:
class.ilBlogExportOptionHTMLWithComments.php:30
ilBlogExportOptionHTMLWithComments\isObjectSupported
isObjectSupported(ObjectId $object_id)
Definition:
class.ilBlogExportOptionHTMLWithComments.php:37
ilLanguage
language handling
Definition:
class.ilLanguage.php:43
ilObjBlogAccess
Class ilObjBlogAccess.
Definition:
class.ilObjBlogAccess.php:26
ilObjBlogGUI
@ilCtrl_Calls ilObjBlogGUI: ilBlogPostingGUI, ilWorkspaceAccessGUI @ilCtrl_Calls ilObjBlogGUI: ilInfo...
Definition:
class.ilObjBlogGUI.php:43
return
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
delivery_method.php:21
init
init()
Definition:
ilPRGCertificateHelper.php:29
ILIAS\Export\ExportHandler\I\Consumer\Context\HandlerInterface
Definition:
HandlerInterface.php:28
ILIAS\Repository\ctrl
ctrl()
Definition:
trait.GlobalDICGUIServices.php:63
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
ILIAS\UI\examples\Symbol\Glyph\Language\language
language()
Definition:
language.php:41
$DIC
global $DIC
Definition:
shib_login.php:26
$context
$context
Definition:
webdav.php:31
components
ILIAS
Blog
Export
class.ilBlogExportOptionHTMLWithComments.php
Generated on Sat Oct 18 2025 23:02:39 for ILIAS by
1.9.4 (using
Doxyfile
)