ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilDclDateSelectionRecordFieldModel Class Reference
+ Inheritance diagram for ilDclDateSelectionRecordFieldModel:
+ Collaboration diagram for ilDclDateSelectionRecordFieldModel:

Public Member Functions

 parseExportValue ($value)
 
- Public Member Functions inherited from ilDclSelectionRecordFieldModel
 getValue ()
 
 parseExportValue ($value)
 
 getValueFromExcel (ilExcel $excel, int $row, int $col)
 
- 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, bool $omit_parsing=false)
 Set value for record field. More...
 
 setValueFromForm (ilPropertyFormGUI $form)
 
 getFormulaValue ()
 
 parseExportValue ($value)
 Function to parse incoming data from form input value $value. More...
 
 getValueFromExcel (ilExcel $excel, int $row, int $col)
 
 parseValue ($value)
 Function to parse incoming data from form input value $value. More...
 
 getExportValue ()
 
 fillExcelExport (ilExcel $worksheet, int &$row, int &$col)
 
 getPlainText ()
 
 getSortingValue (bool $link=true)
 
 addHiddenItemsToConfirmation (ilConfirmationGUI $confirmation)
 
 parseSortingValue ($value, bool $link=true)
 Returns sortable value for the specific field-types. More...
 
 cloneStructure (ilDclBaseRecordFieldModel $old_record_field)
 
 afterClone ()
 
 getField ()
 
 getId ()
 
 getRecord ()
 
 getRecordRepresentation ()
 
 setRecordRepresentation (ilDclBaseRecordRepresentation $record_representation)
 
 getFieldRepresentation ()
 
 setFieldRepresentation (ilDclBaseFieldRepresentation $field_representation)
 

Data Fields

const PROP_SELECTION_TYPE = 'date_selection_type'
 
const PROP_SELECTION_OPTIONS = 'date_selection_options'
 
- Data Fields inherited from ilDclSelectionRecordFieldModel
const PROP_SELECTION_TYPE = ''
 
const PROP_SELECTION_OPTIONS = ''
 

Additional Inherited Members

- Protected Member Functions inherited from ilDclSelectionRecordFieldModel
 getMultipleValuesFromString (string $stringValues)
 Copied from reference field and slightly adjusted. More...
 
- Protected Member Functions inherited from ilDclBaseRecordFieldModel
 doRead ()
 Read object data from database. More...
 
 loadValue ()
 Load the value. More...
 
- Protected Attributes inherited from ilDclBaseRecordFieldModel
int $id = null
 
ilDclBaseFieldModel $field
 
ilDclBaseRecordModel $record
 
ilDclBaseRecordRepresentation $record_representation = null
 
ilDclBaseFieldRepresentation $field_representation = null
 
 $value
 
ilObjUser $user
 
ilCtrl $ctrl
 
ilDBInterface $db
 
ilLanguage $lng
 
ILIAS HTTP Services $http
 
ILIAS Refinery Factory $refinery
 

Detailed Description

Definition at line 21 of file class.ilDclDateSelectionRecordFieldModel.php.

Member Function Documentation

◆ parseExportValue()

ilDclDateSelectionRecordFieldModel::parseExportValue (   $value)

Definition at line 26 of file class.ilDclDateSelectionRecordFieldModel.php.

References ilDclBaseRecordFieldModel\$value, ilDclBaseRecordFieldModel\getField(), ilDclBaseRecordFieldModel\getId(), ilDclSelectionOption\getValues(), and IL_CAL_DATE.

26  : string
27  {
28  $dates = [];
29  foreach (ilDclSelectionOption::getValues((int) $this->getField()->getId(), $value) as $value) {
30  $date = new ilDate($value, IL_CAL_DATE);
31  $dates[] = $date->get(IL_CAL_DATE);
32  }
33  return implode("; ", $dates);
34  }
static getValues(int $field_id, $opt_ids)
const IL_CAL_DATE
+ Here is the call graph for this function:

Field Documentation

◆ PROP_SELECTION_OPTIONS

const ilDclDateSelectionRecordFieldModel::PROP_SELECTION_OPTIONS = 'date_selection_options'

Definition at line 24 of file class.ilDclDateSelectionRecordFieldModel.php.

◆ PROP_SELECTION_TYPE

const ilDclDateSelectionRecordFieldModel::PROP_SELECTION_TYPE = 'date_selection_type'

Definition at line 23 of file class.ilDclDateSelectionRecordFieldModel.php.


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