ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilDclDatetimeRecordFieldModel.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
14 {
15  public function parseValue($value)
16  {
17  return $value;
18  }
19 
20 
24  public function getValueFromExcel($excel, $row, $col)
25  {
26  assert($excel instanceof ilExcel);
27 
28  $value = parent::getValueFromExcel($excel, $row, $col);
29 
30  return date('Y-m-d', strtotime($value));
31  }
32 
33 
41  public function parseExportValue($value)
42  {
43  return substr($value, 0, 10);
44  }
45 
46 
56  public function parseSortingValue($value, $link = true)
57  {
58  return strtotime($value);
59  }
60 }
$row
parseSortingValue($value, $link=true)
Returns sortable value for the specific field-types.
parseExportValue($value)
Function to parse incoming data from form input value $value.