ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilDclDateRecordRepresentation Class Reference
+ Inheritance diagram for ilDclDateRecordRepresentation:
+ Collaboration diagram for ilDclDateRecordRepresentation:

Public Member Functions

 getHTML (bool $link=true, array $options=[])
 Outputs html of a certain field. More...
 
 parseFormInput ($value)
 
- Public Member Functions inherited from ilDclBaseRecordRepresentation
 __construct (ilDclBaseRecordFieldModel $record_field)
 
 getFormGUI (ilPropertyFormGUI $formGUI)
 
 parseFormInput ($value)
 function parses stored value to the variable needed to fill into the form for editing. More...
 
 fillFormInput (ilPropertyFormGUI $form)
 Fills the form with the value of a record. More...
 
 getHTML (bool $link=true, array $options=[])
 Outputs html of a certain field. More...
 
 getSingleHTML (?array $options=null, bool $link=true)
 Returns data for single record view. More...
 
 getConfirmationHTML ()
 Returns data for confirmation list When returning false, attribute is ignored in list. More...
 
 fillRow (ilTemplate $tpl)
 Fills row with record data. More...
 
 getRecordField ()
 Get Record Field. More...
 
 getField ()
 Getter shortcut for field. More...
 
 getRecord ()
 Getter shortcut for record. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ilDclBaseRecordRepresentation
 getFormInput ()
 Gets the value from from the record field. More...
 
- Protected Attributes inherited from ilDclBaseRecordRepresentation
ILIAS UI Factory $factory
 
ilDclBaseRecordFieldModel $record_field
 
ilLanguage $lng
 
ilAccess $access
 
ilCtrl $ctrl
 
ILIAS HTTP Services $http
 
ILIAS Refinery Factory $refinery
 
ILIAS UI Renderer $renderer
 
ilObjUser $user
 

Detailed Description

Definition at line 21 of file class.ilDclDateRecordRepresentation.php.

Member Function Documentation

◆ getHTML()

ilDclDateRecordRepresentation::getHTML ( bool  $link = true,
array  $options = [] 
)

Outputs html of a certain field.

Reimplemented from ilDclBaseRecordRepresentation.

Definition at line 23 of file class.ilDclDateRecordRepresentation.php.

23 : 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 }

References ilDclBaseRecordRepresentation\getRecordField(), ILIAS\Repository\lng(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ parseFormInput()

ilDclDateRecordRepresentation::parseFormInput (   $value)
Parameters
string$value

Reimplemented from ilDclBaseRecordRepresentation.

Definition at line 36 of file class.ilDclDateRecordRepresentation.php.

36 : ?string
37 {
38 return ($value === null) ? null : date(ilDclDateFieldModel::FORMAT, strtotime($value));
39 }

References ilDclDateFieldModel\FORMAT.


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