ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilDclDatetimeFieldRepresentation.php
Go to the documentation of this file.
1<?php
9{
10 public function getInputField(ilPropertyFormGUI $form, $record_id = 0)
11 {
12 $input = new ilDateTimeInputGUI($this->getField()->getTitle(), 'field_' . $this->getField()->getId());
13 $input->setStartYear(date("Y") - 100);
14 $this->setupInputField($input, $this->getField());
15 return $input;
16 }
17
19 {
20 $input = $table->addFilterItemByMetaType("filter_" . $this->getField()->getId(), ilTable2GUI::FILTER_DATE_RANGE, false, $this->getField()->getId());
21 $input->setSubmitFormOnEnter(true);
22 $input->setStartYear(date("Y") - 100);
23
24 $this->setupFilterInputField($input);
25
26 return $this->getFilterInputFieldValue($input);
27 }
28
29
30 public function passThroughFilter(ilDclBaseRecordModel $record, $filter)
31 {
32 $value = $record->getRecordFieldValue($this->getField()->getId());
33 if ((!$filter['from'] || $value >= $filter['from']) && (!$filter['to'] || $value <= $filter['to'])) {
34 return true;
35 }
36 return false;
37 }
38}
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
An exception for terminatinating execution or to throw for unit testing.
This class represents a date/time property in a property form.
Class ilDclBaseFieldRepresentation.
setupInputField(ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
Sets basic settings on field-input.
setupFilterInputField(ilFormPropertyGUI $input)
Set basic settings for filter-input-gui.
Class ilDclBaseRecordModel.
getRecordFieldValue($field_id)
Get Field Value.
getInputField(ilPropertyFormGUI $form, $record_id=0)
Returns field-input.
addFilterInputFieldToTable(ilTable2GUI $table)
Add filter input to TableGUI.
passThroughFilter(ilDclBaseRecordModel $record, $filter)
Checks if a filter affects a record.
This class represents a property form user interface.
Class ilTable2GUI.
if(empty($password)) $table
Definition: pwgen.php:24
if(isset($_POST['submit'])) $form