◆ addFilterInputFieldToTable()
      
        
          | ilDclSelectionFieldRepresentation::addFilterInputFieldToTable  | 
          ( | 
          ilTable2GUI  | 
          $table | ) | 
           | 
        
      
 
Definition at line 95 of file class.ilDclSelectionFieldRepresentation.php.
References ilTable2GUI\addFilterItemByMetaType(), buildOptionsInput(), ilTable2GUI\FILTER_SELECT, ilDclSelectionOption\getAllForField(), ilDclBaseFieldRepresentation\getField(), ilDclBaseFieldRepresentation\getFilterInputFieldValue(), ILIAS\Survey\Mode\getId(), ILIAS\Repository\lng(), and ilDclBaseFieldRepresentation\setupFilterInputField().
  105         $array = [
'' => $this->
lng->txt(
'dcl_all_entries')];
   106         foreach ($options as $opt) {
   107             $array[$opt->getOptId()] = $opt->getValue();
   110         $array[
'none'] = $this->
lng->txt(
'dcl_no_entry');
   112         $input->setOptions($array);
 
getFilterInputFieldValue(ilTableFilterItem $input)
 
addFilterItemByMetaType(string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
Add filter by standard type. 
 
static getAllForField(int $field_id)
 
setupFilterInputField(?ilTableFilterItem $input)
Set basic settings for filter-input-gui. 
 
getField()
Return BaseFieldModel. 
 
 
 
 
◆ buildFieldCreationInput()
  
  
      
        
          | ilDclSelectionFieldRepresentation::buildFieldCreationInput  | 
          ( | 
          ilObjDataCollection  | 
          $dcl,  | 
         
        
           | 
           | 
          string  | 
          $mode = 'create'  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
 
◆ buildOptionsInput()
  
  
      
        
          | ilDclSelectionFieldRepresentation::buildOptionsInput  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
abstractprotected   | 
  
 
 
◆ getInputField()
      
        
          | ilDclSelectionFieldRepresentation::getInputField  | 
          ( | 
          ilPropertyFormGUI  | 
          $form,  | 
        
        
           | 
           | 
          ?int  | 
          $record_id = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 59 of file class.ilDclSelectionFieldRepresentation.php.
References ILIAS\LTI\ToolProvider\$key, ilDclSelectionOption\getAllForField(), ilDclBaseFieldRepresentation\getField(), ILIAS\Survey\Mode\getId(), ILIAS\Repository\lng(), ilDclSelectionFieldModel\SELECTION_TYPE_COMBOBOX, ilDclSelectionFieldModel\SELECTION_TYPE_MULTI, ilDclSelectionFieldModel\SELECTION_TYPE_SINGLE, and ilDclBaseFieldRepresentation\setupInputField().
   63             $options[$opt->getOptId()] = $opt->getValue();
    65         switch ($this->
getField()->getProperty($this->field::PROP_SELECTION_TYPE)) {
    71                 $input->setWidth(100);
    72                 $input->setWidthUnit(
'%');
    73                 $input->setHeight(32 * min(5, max(1, count($options))));
    75                 $input->setOptions($options);
    79                 $input->setOptions([
"" => $this->
lng->txt(
'dcl_please_select')] + $options);
    84                 foreach ($options as 
$key => $opt) {
    87                 $input->setValue((
string) array_key_first($options));
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
const SELECTION_TYPE_SINGLE
 
const SELECTION_TYPE_MULTI
 
setupInputField(ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
Sets basic settings on field-input. 
 
const SELECTION_TYPE_COMBOBOX
 
static getAllForField(int $field_id)
 
getField()
Return BaseFieldModel. 
 
 
 
 
The documentation for this class was generated from the following file: