ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDclSelectionRecordRepresentation Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilDclSelectionRecordRepresentation:
+ Collaboration diagram for ilDclSelectionRecordRepresentation:

Public Member Functions

 getHTML (bool $link=true, array $options=[])
 
- Public Member Functions inherited from ilDclBaseRecordRepresentation
 __construct (ilDclBaseRecordFieldModel $record_field)
 
 getFormGUI (ilPropertyFormGUI $formGUI)
 
 parseFormInput ($value)
 function parses stored value to the variable needed to fill into the form for editing. More...
 
 fillFormInput (ilPropertyFormGUI $form)
 Fills the form with the value of a record. More...
 
 getHTML (bool $link=true, array $options=[])
 Outputs html of a certain field. More...
 
 getSingleHTML (?array $options=null, bool $link=true)
 Returns data for single record view. More...
 
 getConfirmationHTML ()
 Returns data for confirmation list When returning false, attribute is ignored in list. More...
 
 fillRow (ilTemplate $tpl)
 Fills row with record data. More...
 
 getRecordField ()
 Get Record Field. More...
 
 getField ()
 Getter shortcut for field. More...
 
 getRecord ()
 Getter shortcut for record. More...
 

Data Fields

const PROP_SELECTION_TYPE = ''
 
const PROP_SELECTION_OPTIONS = ''
 

Additional Inherited Members

- Protected Member Functions inherited from ilDclBaseRecordRepresentation
 getFormInput ()
 Gets the value from from the record field. More...
 
- Protected Attributes inherited from ilDclBaseRecordRepresentation
ilDclBaseRecordFieldModel $record_field
 
ilLanguage $lng
 
ilAccess $access
 
ilCtrl $ctrl
 
ILIAS HTTP Services $http
 
ILIAS Refinery Factory $refinery
 
ILIAS UI Renderer $renderer
 
ilObjUser $user
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 19 of file class.ilDclSelectionRecordRepresentation.php.

Member Function Documentation

◆ getHTML()

ilDclSelectionRecordRepresentation::getHTML ( bool  $link = true,
array  $options = [] 
)

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

References ilDclBaseRecordRepresentation\getField(), ILIAS\Survey\Mode\getId(), ilDclBaseRecordRepresentation\getRecordField(), and ilDclSelectionOption\getValues().

25  : string
26  {
27  $record_field_value = $this->getRecordField()->getValue();
28  $values = ilDclSelectionOption::getValues($this->getField()->getId(), $record_field_value);
29 
30  return is_array($values) ? implode('<br>', $values) : $values;
31  }
static getValues(int $field_id, $opt_ids)
+ Here is the call graph for this function:

Field Documentation

◆ PROP_SELECTION_OPTIONS

const ilDclSelectionRecordRepresentation::PROP_SELECTION_OPTIONS = ''

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

◆ PROP_SELECTION_TYPE

const ilDclSelectionRecordRepresentation::PROP_SELECTION_TYPE = ''

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


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