ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.ilDclDateRecordRepresentation.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilDclDateRecordRepresentation
extends
ilDclBaseRecordRepresentation
22
{
23
public
function
getHTML
(
bool
$link =
true
, array $options = []): string
24
{
25
$value = $this->
getRecordField
()->getValue();
26
if
($value ==
null
) {
27
return
$this->
lng
->txt(
'no_date'
);
28
}
29
30
return
date($this->
user
->getDateFormat()->toString(), strtotime($value));
31
}
32
36
public
function
parseFormInput
($value): ?string
37
{
38
return
($value ===
null
) ? null : date(
ilDclDateFieldModel::FORMAT
, strtotime($value));
39
}
40
}
ilDclBaseRecordRepresentation
Definition:
class.ilDclBaseRecordRepresentation.php:22
ilDclBaseRecordRepresentation\getRecordField
getRecordField()
Get Record Field.
Definition:
class.ilDclBaseRecordRepresentation.php:123
ilDclDateFieldModel\FORMAT
const string FORMAT
Definition:
class.ilDclDateFieldModel.php:23
ilDclDateRecordRepresentation
Definition:
class.ilDclDateRecordRepresentation.php:22
ilDclDateRecordRepresentation\parseFormInput
parseFormInput($value)
Definition:
class.ilDclDateRecordRepresentation.php:36
ilDclDateRecordRepresentation\getHTML
getHTML(bool $link=true, array $options=[])
Outputs html of a certain field.
Definition:
class.ilDclDateRecordRepresentation.php:23
ILIAS\Repository\user
user()
Definition:
trait.GlobalDICDomainServices.php:66
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
components
ILIAS
DataCollection
classes
Fields
Date
class.ilDclDateRecordRepresentation.php
Generated on Sat Oct 18 2025 23:02:56 for ILIAS by
1.9.4 (using
Doxyfile
)