ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 14 of file class.ilDclPluginFieldRepresentation.php.

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

15  {
16  $opt = parent::buildFieldCreationInput($dcl, $mode);
17 
18  // only show, when element is created
19  if (get_called_class() == 'ilDclPluginFieldRepresentation') {
21  $options = array();
22  foreach ($plugins as $plugin_name) {
24  $options[$plugin_data->getPluginName()] = $plugin_data->getPluginName();
25  }
26 
27  if (count($options) > 0) {
28  $plugin_selection = new ilSelectInputGUI($this->lng->txt('dcl_plugin_hooks'), 'prop_' . ilDclBaseFieldModel::PROP_PLUGIN_HOOK_NAME);
29  $plugin_selection->setOptions($options);
30  $opt->addSubItem($plugin_selection);
31  if ($mode == "edit") {
32  $plugin_selection->setDisabled(true);
33  } else {
34  }
35  } else {
36  $plugin_selection = new ilNonEditableValueGUI($this->lng->txt('dcl_plugin_no_hooks_available'), 'prop_' . ilDclBaseFieldModel::PROP_PLUGIN_HOOK_NAME);
37  $opt->addSubItem($plugin_selection);
38  }
39  }
40 
41  return $opt;
42  }
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.
Create styles array
The data for the language used.
This class represents a non editable value in a property form.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
Definition: as_login.php:20
+ Here is the call graph for this function:

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