ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilDclDatetimeRecordFieldModel Class Reference

Class ilDclBaseFieldModel. More...

+ Inheritance diagram for ilDclDatetimeRecordFieldModel:
+ Collaboration diagram for ilDclDatetimeRecordFieldModel:

Public Member Functions

 parseValue ($value)
 
 getValueFromExcel ($excel, $row, $col)
 
 parseExportValue ($value)
 Function to parse incoming data from form input value $value. More...
 
 parseSortingValue ($value, $link=true)
 Returns sortable value for the specific field-types. More...
 
- Public Member Functions inherited from ilDclBaseRecordFieldModel
 __construct (ilDclBaseRecordModel $record, ilDclBaseFieldModel $field)
 
 doCreate ()
 Creates an Id and a database entry. More...
 
 doUpdate ()
 Update object in database. More...
 
 delete ()
 Delete record field in database. More...
 
 getValue ()
 
 getValueForRepresentation ()
 
 serializeData ($value)
 Serialize data before storing to db. More...
 
 deserializeData ($value)
 Deserialize data before applying to field. More...
 
 setValue ($value, $omit_parsing=false)
 Set value for record field. More...
 
 setValueFromForm ($form)
 
 parseExportValue ($value)
 Function to parse incoming data from form input value $value. More...
 
 getValueFromExcel ($excel, $row, $col)
 
 parseValue ($value)
 Function to parse incoming data from form input value $value. More...
 
 getExportValue ()
 
 fillExcelExport (ilExcel $worksheet, &$row, &$col)
 
 getPlainText ()
 
 getSortingValue ($link=true)
 
 addHiddenItemsToConfirmation (ilConfirmationGUI &$confirmation)
 
 parseSortingValue ($value, $link=true)
 Returns sortable value for the specific field-types. More...
 
 cloneStructure (ilDclBaseRecordFieldModel $old_record_field)
 
 afterClone ()
 
 getField ()
 
 getId ()
 
 getRecord ()
 
 getRecordRepresentation ()
 
 setRecordRepresentation ($record_representation)
 
 getFieldRepresentation ()
 
 setFieldRepresentation ($field_representation)
 

Additional Inherited Members

- Protected Member Functions inherited from ilDclBaseRecordFieldModel
 doRead ()
 Read object data from database. More...
 
 loadValue ()
 Load the value. More...
 
- Protected Attributes inherited from ilDclBaseRecordFieldModel
 $id
 
 $field
 
 $record
 
 $record_representation
 
 $field_representation
 
 $value
 
 $user
 
 $ctrl
 
 $db
 
 $lng
 

Detailed Description

Member Function Documentation

◆ getValueFromExcel()

ilDclDatetimeRecordFieldModel::getValueFromExcel (   $excel,
  $row,
  $col 
)

Definition at line 25 of file class.ilDclDatetimeRecordFieldModel.php.

References $row, ilDclBaseRecordFieldModel\$value, and date.

26  {
27  assert($excel instanceof ilExcel);
28 
29  $value = parent::getValueFromExcel($excel, $row, $col);
30 
31  return date('Y-m-d', strtotime($value));
32  }
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())

◆ parseExportValue()

ilDclDatetimeRecordFieldModel::parseExportValue (   $value)

Function to parse incoming data from form input value $value.

returns the string/number/etc. to store in the database.

Parameters
mixed$value
Returns
mixed

Definition at line 42 of file class.ilDclDatetimeRecordFieldModel.php.

References ilDclBaseRecordFieldModel\$value.

43  {
44  return substr($value, 0, 10);
45  }

◆ parseSortingValue()

ilDclDatetimeRecordFieldModel::parseSortingValue (   $value,
  $link = true 
)

Returns sortable value for the specific field-types.

Parameters
$value
ilDclBaseRecordFieldModel$record_field
bool | true$link
Returns
int|string

Definition at line 57 of file class.ilDclDatetimeRecordFieldModel.php.

References ilDclBaseRecordFieldModel\$value.

58  {
59  return strtotime($value);
60  }

◆ parseValue()

ilDclDatetimeRecordFieldModel::parseValue (   $value)

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