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

Public Member Functions

 getHTML (bool $link=true, array $options=[])
 
 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 = [] 
)

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

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

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ parseFormInput()

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

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

References ilDclDateFieldModel\FORMAT, and null.

36  : ?string
37  {
38  return ($value === null) ? null : date(ilDclDateFieldModel::FORMAT, strtotime($value));
39  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

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