ILIAS
release_8 Revision v8.19
|
AMD field type text. More...
Public Member Functions | |
getType () | |
getADTGroup () | |
getTitles () | |
hasComplexOptions () | |
setMaxLength (?int $max_length) | |
getMaxLength () | |
setMulti (bool $a_value) | |
isMulti () | |
getFieldDefinitionForTableGUI (string $content_language) | |
importCustomDefinitionFormPostValues (ilPropertyFormGUI $a_form, string $language='') | |
Import custom post values from definition form. More... | |
importXMLProperty (string $a_key, string $a_value) | |
importValueFromXML (string $a_cdata) | |
importFromECS (string $a_ecs_type, $a_value, string $a_sub_id) | |
prepareElementForEditor (ilADTFormBridge $a_bridge) | |
getSearchQueryParserValue (ilADTSearchBridge $a_adt_search) | |
searchObjects (ilADTSearchBridge $a_adt_search, ilQueryParser $a_parser, array $a_object_types, string $a_locate, string $a_search_type) | |
![]() | |
setOptions (array $a_values=null) | |
getOptions () | |
getFieldDefinitionForTableGUI (string $content_language) | |
importCustomDefinitionFormPostValues (ilPropertyFormGUI $a_form, string $language='') | |
importXMLProperty (string $a_key, string $a_value) | |
getValueForXML (ilADT $element) | |
importValueFromXML (string $a_cdata) | |
getADTGroup () | |
getTitles () | |
hasComplexOptions () | |
getComplexOptionsOverview (object $a_parent_gui, string $a_parent_cmd) | |
exportOptionToTableGUI ($a_option, array &$a_item) | |
initOptionForm (ilPropertyFormGUI $a_form, $a_option_id) | |
updateComplexOption (ilPropertyFormGUI $a_form, $a_option_id) | |
![]() | |
__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 | XML_SEPARATOR_TRANSLATIONS = "~|~" |
const | XML_SEPARATOR_TRANSLATION = '~+~' |
const | KEY_MULTI = "multi" |
![]() | |
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 () | |
importFieldDefinition (array $a_def) | |
getFieldDefinition () | |
addCustomFieldToDefinitionForm (ilPropertyFormGUI $a_form, bool $a_disabled=false, string $language='') | |
Add input elements to definition form. More... | |
addPropertiesToXML (ilXmlWriter $a_writer) | |
parseSearchObjects (array $a_records, array $a_object_types) | |
![]() | |
initADTDefinition () | |
importFieldDefinition (array $a_def) | |
getFieldDefinition () | |
addCustomFieldToDefinitionForm (ilPropertyFormGUI $a_form, bool $a_disabled=false, string $language='') | |
addPropertiesToXML (ilXmlWriter $a_writer) | |
getADTForOption (string $a_option) | |
importComplexOptionFromForm (string $a_option, ilADT $a_adt) | |
findOptionById (string $a_id) | |
![]() | |
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 | |
int | $max_length = null |
bool | $multi = false |
![]() | |
$options = [] | |
$complex = [] | |
![]() | |
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 | 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 | getTypeString (int $a_type) |
Get type as string. More... | |
AMD field type text.
Definition at line 26 of file class.ilAdvancedMDFieldDefinitionText.php.
|
protected |
Add input elements to definition form.
ilPropertyFormGUI | $a_form | |
bool | $a_disabled | |
string | $language |
Definition at line 142 of file class.ilAdvancedMDFieldDefinitionText.php.
References $DIC, ilAdvancedMDFieldDefinition\$lng, ilPropertyFormGUI\addItem(), getMaxLength(), isMulti(), ilCheckboxInputGUI\setValue(), ilNumberInputGUI\setValue(), and ilLanguage\txt().
|
protected |
Definition at line 186 of file class.ilAdvancedMDFieldDefinitionText.php.
References getMaxLength(), isMulti(), and ilXmlWriter\xmlElement().
ilAdvancedMDFieldDefinitionText::getADTGroup | ( | ) |
Definition at line 44 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilAdvancedMDFieldDefinition\getADTDefinition().
|
protected |
Definition at line 110 of file class.ilAdvancedMDFieldDefinitionText.php.
References getMaxLength(), and isMulti().
ilAdvancedMDFieldDefinitionText::getFieldDefinitionForTableGUI | ( | string | $content_language | ) |
Definition at line 118 of file class.ilAdvancedMDFieldDefinitionText.php.
References $DIC, ilAdvancedMDFieldDefinition\$lng, $res, getMaxLength(), isMulti(), and ilLanguage\txt().
ilAdvancedMDFieldDefinitionText::getMaxLength | ( | ) |
Definition at line 84 of file class.ilAdvancedMDFieldDefinitionText.php.
References $max_length.
Referenced by addCustomFieldToDefinitionForm(), addPropertiesToXML(), getFieldDefinition(), getFieldDefinitionForTableGUI(), and initADTDefinition().
ilAdvancedMDFieldDefinitionText::getSearchQueryParserValue | ( | ilADTSearchBridge | $a_adt_search | ) |
Definition at line 277 of file class.ilAdvancedMDFieldDefinitionText.php.
ilAdvancedMDFieldDefinitionText::getTitles | ( | ) |
Definition at line 49 of file class.ilAdvancedMDFieldDefinitionText.php.
ilAdvancedMDFieldDefinitionText::getType | ( | ) |
Definition at line 39 of file class.ilAdvancedMDFieldDefinitionText.php.
Referenced by searchObjects().
ilAdvancedMDFieldDefinitionText::hasComplexOptions | ( | ) |
Definition at line 54 of file class.ilAdvancedMDFieldDefinitionText.php.
ilAdvancedMDFieldDefinitionText::importCustomDefinitionFormPostValues | ( | ilPropertyFormGUI | $a_form, |
string | $language = '' |
||
) |
Import custom post values from definition form.
ilPropertyFormGUI | $a_form | |
string | $language |
Definition at line 175 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilPropertyFormGUI\getInput(), setMaxLength(), and setMulti().
|
protected |
Definition at line 104 of file class.ilAdvancedMDFieldDefinitionText.php.
References setMaxLength(), and setMulti().
ilAdvancedMDFieldDefinitionText::importFromECS | ( | string | $a_ecs_type, |
$a_value, | |||
string | $a_sub_id | ||
) |
Definition at line 238 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilAdvancedMDFieldDefinition\getADT(), ILIAS\Repository\int(), ilECSUtils\TYPE_ARRAY, ilECSUtils\TYPE_INT, ilECSUtils\TYPE_STRING, and ilECSUtils\TYPE_TIMEPLACE.
ilAdvancedMDFieldDefinitionText::importValueFromXML | ( | string | $a_cdata | ) |
string | $a_cdata |
Definition at line 218 of file class.ilAdvancedMDFieldDefinitionText.php.
References $parts, ilAdvancedMDRecord\_getInstanceByRecordId(), and ilAdvancedMDFieldDefinition\getADT().
ilAdvancedMDFieldDefinitionText::importXMLProperty | ( | string | $a_key, |
string | $a_value | ||
) |
Definition at line 192 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilAdvancedMDFieldDefinitionGroupBased\getValueForXML(), setMaxLength(), and setMulti().
|
protected |
Exception |
Definition at line 63 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilADTFactory\getInstance(), ilAdvancedMDFieldTranslations\getInstanceByRecordId(), getMaxLength(), ilAdvancedMDFieldDefinition\getRecordId(), and ilADTFactory\TYPE_LOCALIZED_TEXT.
ilAdvancedMDFieldDefinitionText::isMulti | ( | ) |
Definition at line 94 of file class.ilAdvancedMDFieldDefinitionText.php.
References $multi.
Referenced by addCustomFieldToDefinitionForm(), addPropertiesToXML(), getFieldDefinition(), getFieldDefinitionForTableGUI(), and prepareElementForEditor().
|
protected |
Definition at line 282 of file class.ilAdvancedMDFieldDefinitionText.php.
References $DIC, $ilDB, and $res.
Referenced by searchObjects().
ilAdvancedMDFieldDefinitionText::prepareElementForEditor | ( | ilADTFormBridge | $a_bridge | ) |
Definition at line 268 of file class.ilAdvancedMDFieldDefinitionText.php.
References isMulti(), and ILIAS\Repository\logger().
ilAdvancedMDFieldDefinitionText::searchObjects | ( | ilADTSearchBridge | $a_adt_search, |
ilQueryParser | $a_parser, | ||
array | $a_object_types, | ||
string | $a_locate, | ||
string | $a_search_type | ||
) |
Definition at line 316 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilADTActiveRecordByType\find(), ilAdvancedMDFieldDefinition\getADT(), ilAdvancedMDFieldDefinition\getFieldId(), ilQueryParser\getQuotedWords(), ilADTSearchBridge\getSQLCondition(), getType(), parseSearchObjects(), ilADTActiveRecordByType\SINGLE_COLUMN_NAME, and ilADTTextSearchBridgeSingle\SQL_LIKE.
ilAdvancedMDFieldDefinitionText::setMaxLength | ( | ?int | $max_length | ) |
Definition at line 79 of file class.ilAdvancedMDFieldDefinitionText.php.
References $max_length.
Referenced by importCustomDefinitionFormPostValues(), importFieldDefinition(), and importXMLProperty().
ilAdvancedMDFieldDefinitionText::setMulti | ( | bool | $a_value | ) |
Definition at line 89 of file class.ilAdvancedMDFieldDefinitionText.php.
Referenced by importCustomDefinitionFormPostValues(), importFieldDefinition(), and importXMLProperty().
|
protected |
Definition at line 32 of file class.ilAdvancedMDFieldDefinitionText.php.
Referenced by getMaxLength(), and setMaxLength().
|
protected |
Definition at line 33 of file class.ilAdvancedMDFieldDefinitionText.php.
Referenced by isMulti().
const ilAdvancedMDFieldDefinitionText::KEY_MULTI = "multi" |
Definition at line 30 of file class.ilAdvancedMDFieldDefinitionText.php.
const ilAdvancedMDFieldDefinitionText::XML_SEPARATOR_TRANSLATION = '~+~' |
Definition at line 29 of file class.ilAdvancedMDFieldDefinitionText.php.
const ilAdvancedMDFieldDefinitionText::XML_SEPARATOR_TRANSLATIONS = "~|~" |
Definition at line 28 of file class.ilAdvancedMDFieldDefinitionText.php.