ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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\Export\ExportHandler\I\Consumer\Context\HandlerInterface
Definition:
HandlerInterface.php:27
ilLanguage
$context
$context
Definition:
webdav.php:31
ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicLegacyHandler
Definition:
BasicLegacyHandler.php:38
ilBlogExportOptionHTMLWithComments\getSupportedRepositoryObjectTypes
getSupportedRepositoryObjectTypes()
Definition:
class.ilBlogExportOptionHTMLWithComments.php:53
ilBlogExportOptionHTMLWithComments
Definition:
class.ilBlogExportOptionHTMLWithComments.php:26
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:35
ilBlogExportOptionHTMLWithComments\onExportOptionSelected
onExportOptionSelected(ilExportHandlerConsumerContextInterface $context)
Definition:
class.ilBlogExportOptionHTMLWithComments.php:64
Container
ilBlogExportOptionHTMLWithComments\getLabel
getLabel()
Definition:
class.ilBlogExportOptionHTMLWithComments.php:58
ILIAS\Repository\ctrl
ctrl()
Definition:
trait.GlobalDICGUIServices.php:63
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
ilBlogExportOptionHTMLWithComments\isObjectSupported
isObjectSupported(ObjectId $object_id)
Definition:
class.ilBlogExportOptionHTMLWithComments.php:37
ilBlogExportOptionHTMLWithComments\init
init(Container $DIC)
Definition:
class.ilBlogExportOptionHTMLWithComments.php:30
$DIC
global $DIC
Definition:
shib_login.php:26
ilObjBlogAccess\isCommentsExportPossible
static isCommentsExportPossible(int $blog_id)
Definition:
class.ilObjBlogAccess.php:114
ILIAS\DI\Container\language
language()
Get interface to the i18n service.
Definition:
Container.php:95
ILIAS\Data\ObjectId
Definition:
ObjectId.php:32
ilBlogExportOptionHTMLWithComments\getExportOptionId
getExportOptionId()
Definition:
class.ilBlogExportOptionHTMLWithComments.php:48
ILIAS\Data\ObjectId\toInt
toInt()
Definition:
ObjectId.php:44
init
init()
Definition:
ilPRGCertificateHelper.php:29
ObjectId
ilBlogExportOptionHTMLWithComments\getExportType
getExportType()
Definition:
class.ilBlogExportOptionHTMLWithComments.php:43
ilBlogExportOptionHTMLWithComments\$lng
ilLanguage $lng
Definition:
class.ilBlogExportOptionHTMLWithComments.php:28
components
ILIAS
Blog
Export
class.ilBlogExportOptionHTMLWithComments.php
Generated on Sun Aug 31 2025 23:02:23 for ILIAS by
1.8.13 (using
Doxyfile
)