ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilDclDatetimeRecordRepresentation Class Reference
+ Inheritance diagram for ilDclDatetimeRecordRepresentation:
+ Collaboration diagram for ilDclDatetimeRecordRepresentation:

Public Member Functions

 getHTML (bool $link=true, array $options=[])
 Outputs html of a certain field. More...
 
 parseFormInput ($value)
 function parses stored value to the variable needed to fill into the form for editing. More...
 
- 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...
 

Protected Member Functions

 getUserDateFormat ()
 
- Protected Member Functions inherited from ilDclBaseRecordRepresentation
 getFormInput ()
 Gets the value from from the record field. More...
 

Additional Inherited Members

- 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.ilDclDatetimeRecordRepresentation.php.

Member Function Documentation

◆ getHTML()

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

Outputs html of a certain field.

Definition at line 28 of file class.ilDclDatetimeRecordRepresentation.php.

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

28  : string
29  {
30  $value = $this->getRecordField()->getValue();
31  if ($value == '0000-00-00 00:00:00' || !$value) {
32  return $this->lng->txt('no_date');
33  }
34 
35  return $this->formatDateFromString($value);
36  }
+ Here is the call graph for this function:

◆ getUserDateFormat()

ilDclDatetimeRecordRepresentation::getUserDateFormat ( )
protected

Definition at line 38 of file class.ilDclDatetimeRecordRepresentation.php.

References ILIAS\Repository\user().

38  : string
39  {
40  return (string) $this->user->getDateFormat();
41  }
+ Here is the call graph for this function:

◆ parseFormInput()

ilDclDatetimeRecordRepresentation::parseFormInput (   $value)

function parses stored value to the variable needed to fill into the form for editing.

Parameters
string | int$value

Definition at line 47 of file class.ilDclDatetimeRecordRepresentation.php.

References null.

47  : ?string
48  {
49  if (!$value || $value == "-") {
50  return null;
51  }
52 
53  return substr($value, 0, -9);
54  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

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