ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
5 
15 {
16  public function parseValue($value)
17  {
18  return $value;
19  }
20 
21 
25  public function getValueFromExcel($excel, $row, $col)
26  {
27  assert($excel instanceof ilExcel);
28 
29  $value = parent::getValueFromExcel($excel, $row, $col);
30 
31  return date('Y-m-d', strtotime($value));
32  }
33 
34 
42  public function parseExportValue($value)
43  {
44  return substr($value, 0, 10);
45  }
46 
47 
57  public function parseSortingValue($value, $link = true)
58  {
59  return strtotime($value);
60  }
61 }
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
parseSortingValue($value, $link=true)
Returns sortable value for the specific field-types.
parseExportValue($value)
Function to parse incoming data from form input value $value.