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

Class ilDclPluginFieldRepresentation. More...

+ Inheritance diagram for ilDclPluginFieldRepresentation:
+ Collaboration diagram for ilDclPluginFieldRepresentation:

Protected Member Functions

 buildFieldCreationInput (ilObjDataCollection $dcl, $mode='create')
 
- Protected Member Functions inherited from ilDclBaseFieldRepresentation
 setupFilterInputField (ilFormPropertyGUI $input)
 Set basic settings for filter-input-gui. More...
 
 setupInputField (ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
 Sets basic settings on field-input. More...
 
 getFilterInputFieldValue ( $input)
 
 buildFieldCreationInput (ilObjDataCollection $dcl, $mode='create')
 Build the creation-input-field. More...
 

Additional Inherited Members

- Public Member Functions inherited from ilDclBaseFieldRepresentation
 __construct (ilDclBaseFieldModel $field)
 
 addFilterInputFieldToTable (ilTable2GUI $table)
 Add filter input to TableGUI. More...
 
 passThroughFilter (ilDclBaseRecordModel $record, $filter)
 Checks if a filter affects a record. More...
 
 parseSortingValue ($value, $link=true)
 
 getInputField (ilPropertyFormGUI $form, $record_id=0)
 Returns field-input. More...
 
 addFieldCreationForm ($form, ilObjDataCollection $dcl, $mode="create")
 Adds the options for the field-types to the field-creation form. More...
 
 getPropertyInputFieldId ($property)
 Return post-var for property-fields. More...
 
 getField ()
 Return BaseFieldModel. More...
 
- Protected Attributes inherited from ilDclBaseFieldRepresentation
 $field
 
 $lng
 
 $ctrl
 

Detailed Description

Member Function Documentation

◆ buildFieldCreationInput()

ilDclPluginFieldRepresentation::buildFieldCreationInput ( ilObjDataCollection  $dcl,
  $mode = 'create' 
)
protected

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

References PHPMailer\PHPMailer\$options, ilSubEnabledFormPropertyGUI\addSubItem(), ilDclFieldTypePlugin\COMPONENT_NAME, ilPluginAdmin\getActivePluginsForSlot(), ilPluginAdmin\getPluginObject(), IL_COMP_MODULE, ilDclBaseFieldModel\PROP_PLUGIN_HOOK_NAME, ilSelectInputGUI\setOptions(), and ilDclFieldTypePlugin\SLOT_ID.

16  {
17  $opt = parent::buildFieldCreationInput($dcl, $mode);
18 
19  // only show, when element is created
20  if (get_called_class() == 'ilDclPluginFieldRepresentation') {
22  $options = array();
23  foreach ($plugins as $plugin_name) {
25  $options[$plugin_data->getPluginName()] = $plugin_data->getPluginName();
26  }
27 
28  if (count($options) > 0) {
29  $plugin_selection = new ilSelectInputGUI($this->lng->txt('dcl_plugin_hooks'), 'prop_' . ilDclBaseFieldModel::PROP_PLUGIN_HOOK_NAME);
30  $plugin_selection->setOptions($options);
31  $opt->addSubItem($plugin_selection);
32  if ($mode == "edit") {
33  $plugin_selection->setDisabled(true);
34  } else {
35  }
36  } else {
37  $plugin_selection = new ilNonEditableValueGUI($this->lng->txt('dcl_plugin_no_hooks_available'), 'prop_' . ilDclBaseFieldModel::PROP_PLUGIN_HOOK_NAME);
38  $opt->addSubItem($plugin_selection);
39  }
40  }
41 
42  return $opt;
43  }
This class represents a selection list property in a property form.
static getActivePluginsForSlot($a_ctype, $a_cname, $a_slot_id)
Get all active plugins for a slot.
const IL_COMP_MODULE
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get Plugin Object.
setOptions($a_options)
Set Options.
This class represents a non editable value in a property form.
+ Here is the call graph for this function:

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