|
ILIAS
release_8 Revision v8.24
|
AMD field type select. More...
Inheritance diagram for ilAdvancedMDFieldDefinitionSelect:
Collaboration diagram for ilAdvancedMDFieldDefinitionSelect:Public Member Functions | |
| __construct (?int $a_field_id=null, string $language='') | |
| getType () | |
| Get type. More... | |
| getSearchQueryParserValue (ilADTSearchBridge $a_adt_search) | |
| Get value for search query parser. More... | |
| setOptions (array $a_values=null) | |
| getOptions () | |
| getOptionTranslations () | |
| getOptionTranslation (string $language) | |
| setOptionTranslations (array $translations) | |
| setOptionTranslationsForLanguage (array $translations, string $language) | |
| getFieldDefinitionForTableGUI (string $content_language) | |
| Parse properties for table gui. More... | |
| importCustomDefinitionFormPostValues (ilPropertyFormGUI $a_form, string $language='') | |
| Import custom post values from definition form. More... | |
| importDefinitionFormPostValuesNeedsConfirmation () | |
| prepareCustomDefinitionFormConfirmation (ilPropertyFormGUI $a_form) | |
| delete () | |
| Delete field entry. More... | |
| save (bool $a_keep_pos=false) | |
| Create new field entry. More... | |
| update () | |
| Update field entry. More... | |
| importXMLProperty (string $a_key, string $a_value) | |
| Import property from XML. More... | |
| getValueForXML (ilADT $element) | |
| Parse ADT value for xml (export) More... | |
| importValueFromXML (string $a_cdata) | |
| Import value from xml. More... | |
| prepareElementForEditor (ilADTFormBridge $a_bridge) | |
| Prepare editor form elements. More... | |
Public Member Functions inherited from ilAdvancedMDFieldDefinition | |
| __construct (?int $a_field_id=null, string $language='') | |
| getType () | |
| Get type. More... | |
| useDefaultLanguageMode (string $language) | |
| Check if default language mode has to be used: no language given or language equals default language. More... | |
| getTypeTitle () | |
| getADTDefinition () | |
| Get ADT definition instance. More... | |
| getADT () | |
| getFieldId () | |
| Get field_id. More... | |
| setRecordId (int $a_id) | |
| Set record id. More... | |
| getRecordId () | |
| Get record id. More... | |
| setImportId (string $a_id_string) | |
| Set import id. More... | |
| getImportId () | |
| Get import id. More... | |
| setPosition (int $a_pos) | |
| Set position. More... | |
| getPosition () | |
| Get position. More... | |
| setTitle (string $a_title) | |
| Get title. More... | |
| getTitle () | |
| Get title. More... | |
| setDescription (string $a_desc) | |
| Set description. More... | |
| getDescription () | |
| Get description. More... | |
| isSearchSupported () | |
| Is search supported at all. More... | |
| isFilterSupported () | |
| Is search by filter supported. More... | |
| setSearchable (bool $a_status) | |
| Toggle searchable. More... | |
| isSearchable () | |
| Is searchable. More... | |
| setRequired (bool $a_status) | |
| Toggle required. More... | |
| isRequired () | |
| Is required field. More... | |
| getFieldDefinitionForTableGUI (string $content_language) | |
| Parse properties for table gui. More... | |
| addToFieldDefinitionForm (ilPropertyFormGUI $a_form, ilAdvancedMDPermissionHelper $a_permissions, string $language='') | |
| Add input elements to definition form. More... | |
| importCustomDefinitionFormPostValues (ilPropertyFormGUI $a_form, string $language='') | |
| Import custom post values from definition form. More... | |
| importDefinitionFormPostValues (ilPropertyFormGUI $a_form, ilAdvancedMDPermissionHelper $a_permissions, string $active_language) | |
| Import post values from definition form. More... | |
| importDefinitionFormPostValuesNeedsConfirmation () | |
| prepareCustomDefinitionFormConfirmation (ilPropertyFormGUI $a_form) | |
| prepareDefinitionFormConfirmation (ilPropertyFormGUI $a_form) | |
| generateImportId (int $a_field_id) | |
| Generate unique record id. More... | |
| save (bool $a_keep_pos=false) | |
| Create new field entry. More... | |
| update () | |
| Update field entry. More... | |
| delete () | |
| Delete field entry. More... | |
| toXML (ilXmlWriter $a_writer) | |
| To Xml. More... | |
| importXMLProperty (string $a_key, string $a_value) | |
| Import property from XML. More... | |
| getValueForXML (ilADT $element) | |
| Parse ADT value for xml (export) More... | |
| importValueFromXML (string $a_cdata) | |
| Import value from xml. More... | |
| importFromECS (string $a_ecs_type, $a_value, string $a_sub_id) | |
| Import meta data from ECS. More... | |
| prepareElementForEditor (ilADTFormBridge $a_bridge) | |
| Prepare editor form elements. More... | |
| getSearchQueryParserValue (ilADTSearchBridge $a_adt_search) | |
| Get value for search query parser. More... | |
| getSearchValueSerialized (ilADTSearchBridge $a_adt_search) | |
| setSearchValueSerialized (ilADTSearchBridge $a_adt_search, $a_value) | |
| Set value from search persistence. More... | |
| searchSubObjects (ilADTSearchBridge $a_adt_search, int $a_obj_id, string $sub_obj_type) | |
| searchObjects (ilADTSearchBridge $a_adt_search, ilQueryParser $a_parser, array $a_object_types, string $a_locate, string $a_search_type) | |
| Search objects. More... | |
| getLuceneSearchString ($a_value) | |
| Get search string in lucene syntax. More... | |
| prepareElementForSearch (ilADTSearchBridge $a_bridge) | |
| Prepare search form elements. More... | |
| _clone (int $a_new_record_id) | |
| Clone field definition. More... | |
| hasComplexOptions () | |
| getComplexOptionsOverview (object $a_parent_gui, string $parent_cmd) | |
Data Fields | |
| const | REMOVE_ACTION_ID = "-iladvmdrm-" |
Data Fields inherited from ilAdvancedMDFieldDefinition | |
| const | TYPE_SELECT = 1 |
| const | TYPE_TEXT = 2 |
| const | TYPE_DATE = 3 |
| const | TYPE_DATETIME = 4 |
| const | TYPE_INTEGER = 5 |
| const | TYPE_FLOAT = 6 |
| const | TYPE_LOCATION = 7 |
| const | TYPE_SELECT_MULTI = 8 |
| const | TYPE_ADDRESS = 99 |
| const | TYPE_EXTERNAL_LINK = 9 |
| const | TYPE_INTERNAL_LINK = 10 |
Protected Member Functions | |
| initADTDefinition () | |
| Init adt instance. More... | |
| importFieldDefinition (array $a_def) | |
| Import (type-specific) field definition from DB. More... | |
| getFieldDefinition () | |
| Get (type-specific) field definition. More... | |
| addCustomFieldToDefinitionForm (ilPropertyFormGUI $a_form, bool $a_disabled=false, string $language='') | |
| Add custom input elements to definition form. More... | |
| addCreateOptionsFieldsToDefinitionForm (ilPropertyFormGUI $a_form, bool $a_disabled) | |
| addEditOptionsFieldsToDefinitionForm (array $options, ilPropertyFormGUI $a_form, bool $a_disabled) | |
| addCustomFieldToDefinitionFormInTranslationMode (ilPropertyFormGUI $form, bool $disabled, string $language='') | |
| buildConfirmedObjects (ilPropertyFormGUI $a_form) | |
| Process custom post values from definition form. More... | |
| importNewSelectOptions (bool $multi, ilPropertyFormGUI $a_form, string $language='') | |
| findBySingleValue (ilADTSearchBridge $a_search, $a_value) | |
| importTranslatedFormPostValues (ilPropertyFormGUI $form, string $language) | |
| deleteOptionTranslations () | |
| updateOptionTranslations () | |
| saveOptionTranslations () | |
| addPropertiesToXML (ilXmlWriter $a_writer) | |
| Add (type-specific) properties to xml export. More... | |
| translateLegacyImportValueFromXML (string $value) | |
| On import from <7 options are not given by index but by their label. More... | |
| import (array $a_data) | |
| Import from DB. More... | |
Protected Member Functions inherited from ilAdvancedMDFieldDefinition | |
| init () | |
| initADTDefinition () | |
| Init adt instance. More... | |
| setADT (ilADT $a_adt) | |
| Set ADT instance. More... | |
| setFieldId (int $a_id) | |
| Set field_id. More... | |
| importFieldDefinition (array $a_def) | |
| Import (type-specific) field definition from DB. More... | |
| getFieldDefinition () | |
| Get (type-specific) field definition. More... | |
| addCustomFieldToDefinitionForm (ilPropertyFormGUI $a_form, bool $a_disabled=false, string $language='') | |
| Add custom input elements to definition form. More... | |
| getLastPosition () | |
| Get last position of record. More... | |
| getDBProperties () | |
| Get all definition properties for DB. More... | |
| import (array $a_data) | |
| Import from DB. More... | |
| read (?int $a_field_id) | |
| Read field definition. More... | |
| addPropertiesToXML (ilXmlWriter $a_writer) | |
| Add (type-specific) properties to xml export. More... | |
| parseSearchObjects (array $a_records, array $a_object_types) | |
| Add object-data needed for global search to AMD search results. More... | |
Protected Attributes | |
| array | $options = null |
| array | $confirm_objects = [] |
| array | $confirm_objects_values = [] |
| array | $confirmed_objects = null |
| array | $old_options = null |
| array | $option_translations = [] |
Protected Attributes inherited from ilAdvancedMDFieldDefinition | |
| int | $field_id = null |
| int | $record_id = 0 |
| string | $import_id = '' |
| int | $position = 0 |
| string | $title = '' |
| string | $description = '' |
| bool | $searchable = false |
| bool | $required = false |
| ilADTDefinition | $adt_def = null |
| ilADT | $adt = null |
| string | $language = '' |
| ilDBInterface | $db |
| ilLanguage | $lng |
| ilLogger | $logger |
| GlobalHttpState | $http |
| RefineryFactory | $refinery |
Additional Inherited Members | |
Static Public Member Functions inherited from ilAdvancedMDFieldDefinition | |
| static | getInstance (?int $a_field_id, ?int $a_type=null, string $language='') |
| static | exists (int $a_field_id) |
| static | getInstanceByTypeString (string $a_type) |
| Get instance by type string (used by import) More... | |
| static | getInstancesByRecordId ( $a_record_id, $a_only_searchable=false, string $language='') |
| Get definitions by record id. More... | |
| static | getInstancesByObjType ($a_obj_type, $a_active_only=true) |
| static | getInstanceByImportId (string $a_import_id) |
| static | getSearchableDefinitionIds () |
| Get searchable definition ids (performance is key) More... | |
| static | getADTGroupForDefinitions (array $a_defs) |
| Init ADTGroup for definitions. More... | |
| static | getValidTypes () |
| Get all valid types. More... | |
| static | isValidType (int $a_type) |
Static Protected Member Functions inherited from ilAdvancedMDFieldDefinition | |
| static | getTypeString (int $a_type) |
| Get type as string. More... | |
AMD field type select.
Definition at line 26 of file class.ilAdvancedMDFieldDefinitionSelect.php.
| ilAdvancedMDFieldDefinitionSelect::__construct | ( | ?int | $a_field_id = null, |
| string | $language = '' |
||
| ) |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 37 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References ilAdvancedMDFieldDefinition\$language, and ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:
|
protected |
Definition at line 155 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Add custom input elements to definition form.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 135 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References ilAdvancedMDFieldDefinition\$language, and addCustomFieldToDefinitionFormInTranslationMode().
Here is the call graph for this function:
|
protected |
Definition at line 247 of file class.ilAdvancedMDFieldDefinitionSelect.php.
Referenced by addCustomFieldToDefinitionForm().
Here is the caller graph for this function:
|
protected |
Definition at line 168 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Add (type-specific) properties to xml export.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 800 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References ilXmlWriter\xmlElement().
Here is the call graph for this function:
|
protected |
Process custom post values from definition form.
Definition at line 281 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References $parts, $res, and ilPropertyFormGUI\getInput().
Here is the call graph for this function:| ilAdvancedMDFieldDefinitionSelect::delete | ( | ) |
Delete field entry.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 663 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Definition at line 675 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References $query, and ilDBConstants\T_INTEGER.
|
protected |
| ilADTEnumSearchBridgeMulti | $a_search | |
| $a_value |
Definition at line 490 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References $res, ilADTActiveRecordByType\find(), and ilADTSearchBridge\getSQLCondition().
Here is the call graph for this function:
|
protected |
Get (type-specific) field definition.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 114 of file class.ilAdvancedMDFieldDefinitionSelect.php.
| ilAdvancedMDFieldDefinitionSelect::getFieldDefinitionForTableGUI | ( | string | $content_language | ) |
Parse properties for table gui.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 119 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References $DIC, ilAdvancedMDFieldDefinition\$lng, $options, getOptions(), getOptionTranslation(), and ilLanguage\txt().
Here is the call graph for this function:| ilAdvancedMDFieldDefinitionSelect::getOptions | ( | ) |
Definition at line 80 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References $options.
Referenced by getFieldDefinitionForTableGUI(), initADTDefinition(), and ilAdvancedMDFieldDefinitionSelectMulti\initADTDefinition().
Here is the caller graph for this function:| ilAdvancedMDFieldDefinitionSelect::getOptionTranslation | ( | string | $language | ) |
Definition at line 90 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References ilAdvancedMDFieldDefinition\$language, and getOptionTranslations().
Referenced by getFieldDefinitionForTableGUI().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAdvancedMDFieldDefinitionSelect::getOptionTranslations | ( | ) |
Definition at line 85 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References $option_translations.
Referenced by getOptionTranslation(), initADTDefinition(), and ilAdvancedMDFieldDefinitionSelectMulti\initADTDefinition().
Here is the caller graph for this function:| ilAdvancedMDFieldDefinitionSelect::getSearchQueryParserValue | ( | ilADTSearchBridge | $a_adt_search | ) |
Get value for search query parser.
| ilADTSearchBridge | $a_adt_search |
Reimplemented from ilAdvancedMDFieldDefinition.
Reimplemented in ilAdvancedMDFieldDefinitionSelectMulti.
Definition at line 47 of file class.ilAdvancedMDFieldDefinitionSelect.php.
| ilAdvancedMDFieldDefinitionSelect::getType | ( | ) |
Get type.
Reimplemented from ilAdvancedMDFieldDefinition.
Reimplemented in ilAdvancedMDFieldDefinitionSelectMulti.
Definition at line 42 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References ilAdvancedMDFieldDefinition\TYPE_SELECT.
| ilAdvancedMDFieldDefinitionSelect::getValueForXML | ( | ilADT | $element | ) |
Parse ADT value for xml (export)
Reimplemented from ilAdvancedMDFieldDefinition.
Reimplemented in ilAdvancedMDFieldDefinitionSelectMulti.
Definition at line 821 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Import from DB.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 859 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References $query, $res, ilAdvancedMDRecord\_getInstanceByRecordId(), ilDBConstants\FETCHMODE_OBJECT, ILIAS\LTI\ToolProvider\getRecordId(), ILIAS\Repository\int(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:| ilAdvancedMDFieldDefinitionSelect::importCustomDefinitionFormPostValues | ( | ilPropertyFormGUI | $a_form, |
| string | $language = '' |
||
| ) |
Import custom post values from definition form.
Reimplemented from ilAdvancedMDFieldDefinition.
Reimplemented in ilAdvancedMDFieldDefinitionSelectMulti.
Definition at line 335 of file class.ilAdvancedMDFieldDefinitionSelect.php.
| ilAdvancedMDFieldDefinitionSelect::importDefinitionFormPostValuesNeedsConfirmation | ( | ) |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 522 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Import (type-specific) field definition from DB.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 108 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References setOptions().
Here is the call graph for this function:
|
protected |
Definition at line 340 of file class.ilAdvancedMDFieldDefinitionSelect.php.
Referenced by ilAdvancedMDFieldDefinitionSelectMulti\importCustomDefinitionFormPostValues().
Here is the caller graph for this function:
|
protected |
Definition at line 510 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References ilPropertyFormGUI\getInput().
Here is the call graph for this function:| ilAdvancedMDFieldDefinitionSelect::importValueFromXML | ( | string | $a_cdata | ) |
Import value from xml.
| string | $a_cdata |
Reimplemented from ilAdvancedMDFieldDefinition.
Reimplemented in ilAdvancedMDFieldDefinitionSelectMulti.
Definition at line 826 of file class.ilAdvancedMDFieldDefinitionSelect.php.
| ilAdvancedMDFieldDefinitionSelect::importXMLProperty | ( | string | $a_key, |
| string | $a_value | ||
| ) |
Import property from XML.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 812 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Init adt instance.
Reimplemented from ilAdvancedMDFieldDefinition.
Reimplemented in ilAdvancedMDFieldDefinitionSelectMulti.
Definition at line 52 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References ilAdvancedMDFieldDefinition\$language, $options, ilADTFactory\getInstance(), getOptions(), getOptionTranslations(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().
Here is the call graph for this function:| ilAdvancedMDFieldDefinitionSelect::prepareCustomDefinitionFormConfirmation | ( | ilPropertyFormGUI | $a_form | ) |
@noinspection PhpUndefinedMethodInspection
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 526 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References ILIAS\LTI\ToolProvider\$details, $DIC, $lng, $type, ilObject\_lookupTitle(), ilObject\_lookupType(), ilPropertyFormGUI\addItem(), ilPropertyFormGUI\getItemByPostVar(), ILIAS\FileDelivery\http(), and ILIAS\Repository\int().
Here is the call graph for this function:| ilAdvancedMDFieldDefinitionSelect::prepareElementForEditor | ( | ilADTFormBridge | $a_bridge | ) |
Prepare editor form elements.
Reimplemented from ilAdvancedMDFieldDefinition.
Reimplemented in ilAdvancedMDFieldDefinitionSelectMulti.
Definition at line 852 of file class.ilAdvancedMDFieldDefinitionSelect.php.
| ilAdvancedMDFieldDefinitionSelect::save | ( | bool | $a_keep_pos = false | ) |
Create new field entry.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 669 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Definition at line 688 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References $query, ilAdvancedMDRecord\_getInstanceByRecordId(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Here is the call graph for this function:| ilAdvancedMDFieldDefinitionSelect::setOptions | ( | array | $a_values = null | ) |
Definition at line 66 of file class.ilAdvancedMDFieldDefinitionSelect.php.
Referenced by importFieldDefinition().
Here is the caller graph for this function:| ilAdvancedMDFieldDefinitionSelect::setOptionTranslations | ( | array | $translations | ) |
Definition at line 98 of file class.ilAdvancedMDFieldDefinitionSelect.php.
| ilAdvancedMDFieldDefinitionSelect::setOptionTranslationsForLanguage | ( | array | $translations, |
| string | $language | ||
| ) |
Definition at line 103 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References ilAdvancedMDFieldDefinition\$language.
|
protected |
On import from <7 options are not given by index but by their label.
There is nothing in the XML by which one could tell apart legacy and standard imports, so we have to make a best guess here (32410).
Might fail for enums where the labels are integers. See also ilAdvancedMDFieldDefinitionGroupBased::importValueFromXML.
Definition at line 841 of file class.ilAdvancedMDFieldDefinitionSelect.php.
Referenced by ilAdvancedMDFieldDefinitionSelectMulti\importValueFromXML().
Here is the caller graph for this function:| ilAdvancedMDFieldDefinitionSelect::update | ( | ) |
Update field entry.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 713 of file class.ilAdvancedMDFieldDefinitionSelect.php.
References $parts, ilADTActiveRecordByType\create(), ilADTActiveRecordByType\deleteByPrimary(), ilADTFactory\getInstance(), ilADTFactory\initActiveRecordByType(), ilPCAMDPageList\migrateField(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:
|
protected |
Definition at line 682 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Definition at line 31 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Definition at line 32 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Definition at line 33 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Definition at line 34 of file class.ilAdvancedMDFieldDefinitionSelect.php.
|
protected |
Definition at line 36 of file class.ilAdvancedMDFieldDefinitionSelect.php.
Referenced by getOptionTranslations().
|
protected |
Definition at line 30 of file class.ilAdvancedMDFieldDefinitionSelect.php.
Referenced by getFieldDefinitionForTableGUI(), getOptions(), initADTDefinition(), and ilAdvancedMDFieldDefinitionSelectMulti\initADTDefinition().
| const ilAdvancedMDFieldDefinitionSelect::REMOVE_ACTION_ID = "-iladvmdrm-" |
Definition at line 28 of file class.ilAdvancedMDFieldDefinitionSelect.php.