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 }
This class represents a property form user interface.
addFilterItemByMetaType($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=null)
Add filter by standard type.
This class represents a date/time property in a property form.
setupInputField(ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
Sets basic settings on field-input.
Class ilTable2GUI.
if(isset($_POST['submit'])) $form
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
setupFilterInputField(ilFormPropertyGUI $input)
Set basic settings for filter-input-gui.
Class ilDclBaseRecordModel.
getRecordFieldValue($field_id)
Get Field Value.
getInputField(ilPropertyFormGUI $form, $record_id=0)
if(empty($password)) $table
Definition: pwgen.php:24
passThroughFilter(ilDclBaseRecordModel $record, $filter)
Class ilDclBaseFieldRepresentation.