ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilDclSelectionFieldModel Class Reference

Class ilDclSelectionFieldModel. More...

+ Inheritance diagram for ilDclSelectionFieldModel:
+ Collaboration diagram for ilDclSelectionFieldModel:

Public Member Functions

 getValidFieldProperties ()
 
 getRecordQueryFilterObject ($filter_value="", ilDclBaseFieldModel $sort_field=null)
 Returns a query-object for building the record-loader-sql-query. More...
 
 isMulti ()
 
 storePropertiesFromForm (ilPropertyFormGUI $form)
 called when saving the 'edit field' form More...
 
 fillPropertiesForm (ilPropertyFormGUI &$form)
 
 setProperty ($key, $value)
 
 reorderExistingValues ()
 sorts record field values by the new order More...
 
 getProperty ($key)
 
 getRecordQuerySortObject ($direction="asc", $sort_by_status=false)
 
 cloneProperties (ilDclBaseFieldModel $originalField)
 
 doDelete ()
 
 isConfirmationRequired (ilPropertyFormGUI $form)
 
 getConfirmationGUI (ilPropertyFormGUI $form)
 
- Public Member Functions inherited from ilDclBaseFieldModel
 __construct ($a_id=0)
 
 setId ($a_id)
 Set field id. More...
 
 getId ()
 Get field id. More...
 
 setTableId ($a_id)
 Set table id. More...
 
 getTableId ()
 Get table id. More...
 
 setTitle ($a_title)
 Set title. More...
 
 getTitle ()
 Get title. More...
 
 setDescription ($a_desc)
 Set description. More...
 
 getDescription ()
 Get description. More...
 
 setDatatypeId ($a_id)
 Set datatype id. More...
 
 getDatatypeId ()
 Get datatype_id. More...
 
 setRequired ($a_required)
 Set Required. More...
 
 getRequired ()
 Get Required Required. More...
 
 isUnique ()
 
 setUnique ($unique)
 
 getDatatype ()
 
 getDatatypeTitle ()
 
 getStorageLocation ()
 Get storage location for the model. More...
 
 getExportable ()
 
 toArray ()
 
 isStandardField ()
 
 doRead ()
 Read field. More...
 
 buildFromDBRecord ($rec)
 Builds model from db record. More...
 
 doCreate ()
 Create new field. More...
 
 doUpdate ()
 Update field. More...
 
 updateProperties ()
 Update properties of this field in Database. More...
 
 doDelete ()
 Remove field and properties. More...
 
 getFieldSettings ()
 
 getOrder ()
 
 setOrder ($order)
 
 hasProperty ($key)
 Checks if a certain property for a field is set. More...
 
 getProperty ($key)
 Returns a certain property of a field. More...
 
 getPropertyInstance ($key)
 Return ActiveRecord of property. More...
 
 setProperty ($key, $value)
 Set a property for a field (does not save) More...
 
 getValidFieldProperties ()
 Returns all valid properties for a field-type. More...
 
 setLocked ($locked)
 
 getLocked ()
 
 checkValidityFromForm (ilPropertyFormGUI &$form, $record_id=null)
 
 checkValidity ($value, $record_id=null)
 Check if input is valid. More...
 
 cloneStructure ($original_id)
 
 afterClone ($records)
 
 cloneProperties (ilDclBaseFieldModel $originalField)
 
 setExportable ($exportable)
 
 allowFilterInListView ()
 
 getRecordQuerySortObject ($direction="asc", $sort_by_status=false)
 Returns a query-object for building the record-loader-sql-query. More...
 
 getRecordQueryFilterObject ($filter_value="", ilDclBaseFieldModel $sort_field=null)
 Returns a query-object for building the record-loader-sql-query. More...
 
 getSortField ()
 Returns the sort-field id. More...
 
 hasNumericSorting ()
 Set to true, when the sorting should be handled numerical. More...
 
 checkFieldCreationInput (ilPropertyFormGUI $form)
 Checks input of specific fields befor saving. More...
 
 getStorageLocationOverride ()
 
 setStorageLocationOverride ($storage_location_override)
 
 fillHeaderExcel (ilExcel $worksheet, &$row, &$col)
 
 checkTitlesForImport (array &$titles, array &$import_fields)
 
 storePropertiesFromForm (ilPropertyFormGUI $form)
 called when saving the 'edit field' form More...
 
 fillPropertiesForm (ilPropertyFormGUI &$form)
 called to fill the 'edit field' form More...
 
 isConfirmationRequired (ilPropertyFormGUI $form)
 called by ilDclFieldEditGUI when updating field properties if you overwrite this method, remember to also overwrite getConfirmationGUI More...
 
 getConfirmationGUI (ilPropertyFormGUI $form)
 called by ilDclFieldEditGUI if isConfirmationRequired returns true More...
 

Data Fields

const SELECTION_TYPE_SINGLE = 'selection_type_single'
 
const SELECTION_TYPE_MULTI = 'selection_type_multi'
 
const SELECTION_TYPE_COMBOBOX = 'selection_type_combobox'
 
const PROP_SELECTION_TYPE = ''
 
const PROP_SELECTION_OPTIONS = ''
 
- Data Fields inherited from ilDclBaseFieldModel
const PROP_LENGTH = "lenght"
 General properties. More...
 
const PROP_REGEX = "regex"
 
const PROP_REFERENCE = "table_id"
 
const PROP_URL = "url"
 
const PROP_TEXTAREA = "text_area"
 
const PROP_REFERENCE_LINK = "reference_link"
 
const PROP_WIDTH = "width"
 
const PROP_HEIGHT = "height"
 
const PROP_LEARNING_PROGRESS = "learning_progress"
 
const PROP_ILIAS_REFERENCE_LINK = "ILIAS_reference_link"
 
const PROP_N_REFERENCE = "multiple_selection"
 
const PROP_FORMULA_EXPRESSION = "expression"
 
const PROP_DISPLAY_COPY_LINK_ACTION_MENU = "display_action_menu"
 
const PROP_LINK_DETAIL_PAGE_TEXT = "link_detail_page"
 
const PROP_SUPPORTED_FILE_TYPES = "supported_file_types"
 
const PROP_PLUGIN_HOOK_NAME = "plugin_hook_name"
 
const PROP_TEXT_SELECTION_OPTIONS = "text_selection_options"
 
const PROP_TEXT_SELECTION_TYPE = "text_selection_type"
 
const PROP_DATE_SELECTION_OPTIONS = "date_selection_options"
 
const PROP_DATE_SELECTION_TYPE = "date_selection_type"
 
const EDIT_VIEW = 2
 
const EXPORTABLE_VIEW = 4
 

Protected Member Functions

 multiPropertyChanged ($is_multi_now)
 changes the values of all record fields, since the property "multi" has changed More...
 
- Protected Member Functions inherited from ilDclBaseFieldModel
 loadDatatype ()
 Load datatype for model. More...
 
 loadTableFieldSetting ()
 loadTableFieldSetting More...
 
 addToTableViews ()
 create ilDclTableViewFieldSettings for this field in each tableview More...
 
 updateTableFieldSetting ()
 update exportable and fieldorder More...
 
 loadProperties ()
 Get all properties of a field. More...
 
 normalizeValue ($value)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilDclBaseFieldModel
static _getTitleInvalidChars ($a_as_regex=true)
 All valid chars for filed titles. More...
 
static _getFieldIdByTitle ($title, $table_id)
 
- Protected Attributes inherited from ilDclBaseFieldModel
 $id
 
 $table_id
 
 $title
 
 $description
 
 $datatypeId
 
 $required
 
 $order
 
 $unique
 
 $locked
 
 $property = array()
 
 $exportable
 
 $datatype
 
 $storage_location_override = null
 

Detailed Description

Member Function Documentation

◆ cloneProperties()

ilDclSelectionFieldModel::cloneProperties ( ilDclBaseFieldModel  $originalField)

Definition at line 279 of file class.ilDclSelectionFieldModel.php.

References PHPMailer\PHPMailer\$options, ilDclSelectionOption\getAllForField(), and ilDclBaseFieldModel\getId().

280  {
281  parent::cloneProperties($originalField);
283  foreach ($options as $opt) {
284  $new_opt = new ilDclSelectionOption();
285  $new_opt->cloneOption($opt);
286  $new_opt->setFieldId($this->getId());
287  $new_opt->store();
288  }
289  }
Class ilDclSelectionOption.
+ Here is the call graph for this function:

◆ doDelete()

ilDclSelectionFieldModel::doDelete ( )

Definition at line 295 of file class.ilDclSelectionFieldModel.php.

References ilDclSelectionOption\getAllForField(), and ilDclBaseFieldModel\getId().

296  {
297  foreach (ilDclSelectionOption::getAllForField($this->getId()) as $option) {
298  $option->delete();
299  }
300  parent::doDelete();
301  }
+ Here is the call graph for this function:

◆ fillPropertiesForm()

ilDclSelectionFieldModel::fillPropertiesForm ( ilPropertyFormGUI $form)
Parameters
ilPropertyFormGUI$form
Returns
bool

Definition at line 106 of file class.ilDclSelectionFieldModel.php.

References PHPMailer\PHPMailer\$options, $values, ilDclSelectionOption\getAllForField(), ilDclBaseFieldModel\getDatatypeId(), ilDclBaseFieldModel\getDescription(), ilDclBaseFieldModel\getId(), getProperty(), ilDclBaseFieldModel\getRequired(), ilDclBaseFieldModel\getTableId(), ilDclBaseFieldModel\getTitle(), getValidFieldProperties(), ilDclBaseFieldModel\isUnique(), and ilPropertyFormGUI\setValuesByArray().

107  {
108  $values = array(
109  'table_id' => $this->getTableId(),
110  'field_id' => $this->getId(),
111  'title' => $this->getTitle(),
112  'datatype' => $this->getDatatypeId(),
113  'description' => $this->getDescription(),
114  'required' => $this->getRequired(),
115  'unique' => $this->isUnique(),
116  );
117 
118  $properties = $this->getValidFieldProperties();
119  foreach ($properties as $prop) {
120  if ($prop == static::PROP_SELECTION_OPTIONS) {
122  $prop_values = array();
123  foreach ($options as $option) {
124  // the 'selection_value' is for a correct input
125  $prop_values[$option->getOptId()] = array('selection_value' => $option->getValue());
126  }
127 
128  $values['prop_' . $prop] = $prop_values;
129  } else {
130  $values['prop_' . $prop] = $this->getProperty($prop);
131  }
132  }
133 
134  $form->setValuesByArray($values);
135 
136  return true;
137  }
$values
getRequired()
Get Required Required.
getDescription()
Get description.
setValuesByArray($a_values, $a_restrict_to_value_keys=false)
Set form values from an array.
getDatatypeId()
Get datatype_id.
+ Here is the call graph for this function:

◆ getConfirmationGUI()

ilDclSelectionFieldModel::getConfirmationGUI ( ilPropertyFormGUI  $form)

Definition at line 318 of file class.ilDclSelectionFieldModel.php.

References $DIC, $key, ilDclFieldFactory\getFieldRepresentationInstance(), and ilPropertyFormGUI\getInput().

319  {
320  global $DIC;
321  $representation = ilDclFieldFactory::getFieldRepresentationInstance($this);
322  $prop_selection_options = $representation->getPropertyInputFieldId(static::PROP_SELECTION_OPTIONS);
323  $prop_selection_type = $representation->getPropertyInputFieldId(static::PROP_SELECTION_TYPE);
324 
325  $ilConfirmationGUI = parent::getConfirmationGUI($form);
326  $ilConfirmationGUI->setHeaderText($DIC->language()->txt('dcl_msg_mc_to_sc_confirmation'));
327  $ilConfirmationGUI->addHiddenItem($prop_selection_type, $form->getInput($prop_selection_type));
328  foreach ($form->getInput($prop_selection_options) as $key => $option) {
329  $ilConfirmationGUI->addHiddenItem($prop_selection_options . "[$key][selection_value]", $option['selection_value']);
330  }
331 
332  return $ilConfirmationGUI;
333  }
global $DIC
Definition: saml.php:7
static getFieldRepresentationInstance(ilDclBaseFieldModel $field)
Returns FieldRepresentation from BaseFieldModel.
getInput($a_post_var, $ensureValidation=true)
Returns the value of a HTTP-POST variable, identified by the passed id.
$key
Definition: croninfo.php:18
+ Here is the call graph for this function:

◆ getProperty()

ilDclSelectionFieldModel::getProperty (   $key)
Parameters
$key
Returns
ilDclSelectionOption[]|null

Definition at line 230 of file class.ilDclSelectionFieldModel.php.

References $key, ilDclSelectionOption\getAllForField(), and ilDclBaseFieldModel\getId().

Referenced by fillPropertiesForm(), isMulti(), and setProperty().

231  {
232  switch ($key) {
233  case static::PROP_SELECTION_OPTIONS:
235  break;
236  default:
237  return parent::getProperty($key);
238  }
239  }
$key
Definition: croninfo.php:18
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRecordQueryFilterObject()

ilDclSelectionFieldModel::getRecordQueryFilterObject (   $filter_value = "",
ilDclBaseFieldModel  $sort_field = null 
)

Returns a query-object for building the record-loader-sql-query.

Parameters
string$filter_value
Returns
null|ilDclRecordQueryObject

Definition at line 35 of file class.ilDclSelectionFieldModel.php.

References $DIC, $ilDB, ilDclBaseFieldModel\getId(), and isMulti().

36  {
37  global $DIC;
38  $ilDB = $DIC['ilDB'];
39 
40  $join_str
41  = " INNER JOIN il_dcl_record_field AS filter_record_field_{$this->getId()} ON (filter_record_field_{$this->getId()}.record_id = record.id AND filter_record_field_{$this->getId()}.field_id = "
42  . $ilDB->quote($this->getId(), 'integer') . ") ";
43 
44  if ($this->isMulti()) {
45  $join_str .= " INNER JOIN il_dcl_stloc{$this->getStorageLocation()}_value AS filter_stloc_{$this->getId()} ON (filter_stloc_{$this->getId()}.record_field_id = filter_record_field_{$this->getId()}.id AND (" .
46  "filter_stloc_{$this->getId()}.value = " . $ilDB->quote("[$filter_value]", 'text') . " OR " .
47  "filter_stloc_{$this->getId()}.value LIKE " . $ilDB->quote("%\"$filter_value\"%", 'text') . " OR " .
48  "filter_stloc_{$this->getId()}.value LIKE " . $ilDB->quote("%,$filter_value,%", 'text') . " OR " .
49  "filter_stloc_{$this->getId()}.value LIKE " . $ilDB->quote("%[$filter_value,%", 'text') . " OR " .
50  "filter_stloc_{$this->getId()}.value LIKE " . $ilDB->quote("%,$filter_value]%", 'text') .
51  ")) ";
52  } else {
53  $join_str .= " INNER JOIN il_dcl_stloc{$this->getStorageLocation()}_value AS filter_stloc_{$this->getId()} ON (filter_stloc_{$this->getId()}.record_field_id = filter_record_field_{$this->getId()}.id AND filter_stloc_{$this->getId()}.value = "
54  . $ilDB->quote($filter_value, 'integer') . ") ";
55  }
56 
57  $sql_obj = new ilDclRecordQueryObject();
58  $sql_obj->setJoinStatement($join_str);
59 
60  return $sql_obj;
61  }
Class ilDclRecordQueryObject.
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the call graph for this function:

◆ getRecordQuerySortObject()

ilDclSelectionFieldModel::getRecordQuerySortObject (   $direction = "asc",
  $sort_by_status = false 
)
Parameters
string$direction
bool$sort_by_status
Returns
ilDclRecordQueryObject

Definition at line 248 of file class.ilDclSelectionFieldModel.php.

References $DIC, $ilDB, ilDclBaseFieldModel\getId(), and isMulti().

249  {
250  global $DIC;
251  $ilDB = $DIC['ilDB'];
252 
253  if ($this->isMulti()) {
254  return null;
255  }
256 
257  $sql_obj = new ilDclRecordQueryObject();
258 
259  $select_str = "sel_opts_{$this->getId()}.value AS field_{$this->getId()}";
260  $join_str
261  = "LEFT JOIN il_dcl_record_field AS sort_record_field_{$this->getId()} ON (sort_record_field_{$this->getId()}.record_id = record.id AND sort_record_field_{$this->getId()}.field_id = "
262  . $ilDB->quote($this->getId(), 'integer') . ") ";
263  $join_str .= "LEFT JOIN il_dcl_stloc{$this->getStorageLocation()}_value AS sort_stloc_{$this->getId()} ON (sort_stloc_{$this->getId()}.record_field_id = sort_record_field_{$this->getId()}.id) ";
264  //if ($this->isMulti()) {
265  // $join_str .= "LEFT JOIN il_dcl_sel_opts as sel_opts_{$this->getId()} ON (sel_opts_{$this->getId()}.opt_id = sort_stloc_{$this->getId()}.value->'$[0]' AND sel_opts_{$this->getId()}.field_id = " . $ilDB->quote($this->getId(), 'integer') . ") ";
266  //} else {
267  $join_str .= "LEFT JOIN il_dcl_sel_opts as sel_opts_{$this->getId()} ON (sel_opts_{$this->getId()}.opt_id = sort_stloc_{$this->getId()}.value AND sel_opts_{$this->getId()}.field_id = "
268  . $ilDB->quote($this->getId(), 'integer') . ") ";
269  //}
270 
271  $sql_obj->setSelectStatement($select_str);
272  $sql_obj->setJoinStatement($join_str);
273  $sql_obj->setOrderStatement("field_{$this->getId()} {$direction}");
274 
275  return $sql_obj;
276  }
Class ilDclRecordQueryObject.
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the call graph for this function:

◆ getValidFieldProperties()

ilDclSelectionFieldModel::getValidFieldProperties ( )

Definition at line 22 of file class.ilDclSelectionFieldModel.php.

Referenced by fillPropertiesForm(), and storePropertiesFromForm().

23  {
24  return array(static::PROP_SELECTION_OPTIONS, static::PROP_SELECTION_TYPE);
25  }
+ Here is the caller graph for this function:

◆ isConfirmationRequired()

ilDclSelectionFieldModel::isConfirmationRequired ( ilPropertyFormGUI  $form)

Definition at line 307 of file class.ilDclSelectionFieldModel.php.

References ilPropertyFormGUI\getInput(), and isMulti().

308  {
309  $will_be_multi = ($form->getInput('prop_' . static::PROP_SELECTION_TYPE) == self::SELECTION_TYPE_MULTI);
310 
311  return $this->isMulti() && !$will_be_multi;
312  }
getInput($a_post_var, $ensureValidation=true)
Returns the value of a HTTP-POST variable, identified by the passed id.
+ Here is the call graph for this function:

◆ isMulti()

ilDclSelectionFieldModel::isMulti ( )

Definition at line 64 of file class.ilDclSelectionFieldModel.php.

References getProperty().

Referenced by getRecordQueryFilterObject(), getRecordQuerySortObject(), isConfirmationRequired(), and setProperty().

65  {
66  return ($this->getProperty(static::PROP_SELECTION_TYPE) == self::SELECTION_TYPE_MULTI);
67  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ multiPropertyChanged()

ilDclSelectionFieldModel::multiPropertyChanged (   $is_multi_now)
protected

changes the values of all record fields, since the property "multi" has changed

Parameters
$is_multi_now

Definition at line 206 of file class.ilDclSelectionFieldModel.php.

References ilDclBaseFieldModel\getId(), ilDclCache\getTableCache(), and ilDclBaseFieldModel\getTableId().

Referenced by setProperty().

207  {
208  foreach (ilDclCache::getTableCache($this->getTableId())->getRecords() as $record) {
209  $record_field = $record->getRecordField($this->getId());
210  $record_field_value = $record_field->getValue();
211 
212  if ($record_field_value && !is_array($record_field_value) && $is_multi_now) {
213  $record_field->setValue(array($record_field_value));
214  $record_field->doUpdate();
215  } else {
216  if (is_array($record_field_value) && !$is_multi_now) {
217  $record_field->setValue(array_shift($record_field_value));
218  $record_field->doUpdate();
219  }
220  }
221  }
222  }
static getTableCache($table_id=0)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reorderExistingValues()

ilDclSelectionFieldModel::reorderExistingValues ( )

sorts record field values by the new order

Definition at line 178 of file class.ilDclSelectionFieldModel.php.

References PHPMailer\PHPMailer\$options, ilDclSelectionOption\getAllForField(), ilDclBaseFieldModel\getId(), ilDclCache\getTableCache(), and ilDclBaseFieldModel\getTableId().

Referenced by setProperty().

179  {
181  // loop each record(-field)
182  foreach (ilDclCache::getTableCache($this->getTableId())->getRecords() as $record) {
183  $record_field = $record->getRecordField($this->getId());
184  $record_field_value = $record_field->getValue();
185 
186  if (is_array($record_field_value) && count($record_field_value) > 1) {
187  $sorted_array = array();
188  // $options has the right order, so loop those
189  foreach ($options as $option) {
190  if (in_array($option->getOptId(), $record_field_value)) {
191  $sorted_array[] = $option->getOptId();
192  }
193  }
194  $record_field->setValue($sorted_array);
195  $record_field->doUpdate();
196  }
197  }
198  }
static getTableCache($table_id=0)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setProperty()

ilDclSelectionFieldModel::setProperty (   $key,
  $value 
)
Parameters
$key
$value

Definition at line 144 of file class.ilDclSelectionFieldModel.php.

References ilDclBaseFieldModel\$id, $key, ilDclSelectionOption\flushOptions(), ilDclBaseFieldModel\getId(), getProperty(), isMulti(), multiPropertyChanged(), and reorderExistingValues().

Referenced by storePropertiesFromForm().

145  {
146  $is_update = $this->getProperty($key);
147  switch ($key) {
148  case static::PROP_SELECTION_OPTIONS:
149 
151  $sorting = 1;
152  foreach ($value as $id => $val) {
153  ilDclSelectionOption::storeOption($this->getId(), $id, $sorting, $val);
154  $sorting++;
155  }
156  // if the field is not being created reorder the options in the existing record fields
157  if ($is_update) {
158  $this->reorderExistingValues();
159  }
160  break;
161  case static::PROP_SELECTION_TYPE:
162  $will_be_multi = ($value == self::SELECTION_TYPE_MULTI);
163  // if the "Multi" property has changed, adjust the record field values
164  if ($is_update && ($this->isMulti() && !$will_be_multi || !$this->isMulti() && $will_be_multi)) {
165  $this->multiPropertyChanged($will_be_multi);
166  }
167  parent::setProperty($key, $value)->store();
168  break;
169  default:
170  parent::setProperty($key, $value)->store();
171  }
172  }
multiPropertyChanged($is_multi_now)
changes the values of all record fields, since the property "multi" has changed
$key
Definition: croninfo.php:18
reorderExistingValues()
sorts record field values by the new order
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ storePropertiesFromForm()

ilDclSelectionFieldModel::storePropertiesFromForm ( ilPropertyFormGUI  $form)

called when saving the 'edit field' form

Parameters
ilPropertyFormGUI$form

Definition at line 75 of file class.ilDclSelectionFieldModel.php.

References ilDclBaseFieldModel\$property, ilDclFieldFactory\getFieldRepresentationInstance(), ilPropertyFormGUI\getInput(), ilDclBaseFieldModel\getPropertyInstance(), getValidFieldProperties(), and setProperty().

76  {
78 
79  $field_props = $this->getValidFieldProperties();
80  foreach ($field_props as $property) {
81  $value = $form->getInput($representation->getPropertyInputFieldId($property));
82 
83  // break down the multidimensional array from the multi input
84  // e.g.: { [0] => { [0] => 'x' }, [1] => { [1] => 'y' } } TO { [0] => 'x', [1] => 'y' }
85  if (is_array($value)) {
86  foreach ($value as $k => $v) {
87  if (is_array($v)) {
88  $value[$k] = array_shift($v);
89  }
90  }
91  }
92 
93  // save non empty values and set them to null, when they already exist. Do not override plugin-hook when already set.
94  if (!empty($value) || ($this->getPropertyInstance($property) != null && $property != self::PROP_PLUGIN_HOOK_NAME)) {
95  $this->setProperty($property, $value);
96  }
97  }
98  }
static getFieldRepresentationInstance(ilDclBaseFieldModel $field)
Returns FieldRepresentation from BaseFieldModel.
getPropertyInstance($key)
Return ActiveRecord of property.
getInput($a_post_var, $ensureValidation=true)
Returns the value of a HTTP-POST variable, identified by the passed id.
+ Here is the call graph for this function:

Field Documentation

◆ PROP_SELECTION_OPTIONS

const ilDclSelectionFieldModel::PROP_SELECTION_OPTIONS = ''

Definition at line 16 of file class.ilDclSelectionFieldModel.php.

◆ PROP_SELECTION_TYPE

const ilDclSelectionFieldModel::PROP_SELECTION_TYPE = ''

Definition at line 15 of file class.ilDclSelectionFieldModel.php.

◆ SELECTION_TYPE_COMBOBOX

const ilDclSelectionFieldModel::SELECTION_TYPE_COMBOBOX = 'selection_type_combobox'

◆ SELECTION_TYPE_MULTI

const ilDclSelectionFieldModel::SELECTION_TYPE_MULTI = 'selection_type_multi'

◆ SELECTION_TYPE_SINGLE

const ilDclSelectionFieldModel::SELECTION_TYPE_SINGLE = 'selection_type_single'

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