ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
AMD field abstract base class. More...
Public Member Functions | |
__construct ($a_field_id=null) | |
Constructor. More... | |
getType () | |
Get type. More... | |
getTypeTitle () | |
Get type title (lang id) More... | |
getADTDefinition () | |
Get ADT definition instance. More... | |
getADT () | |
Get ADT instance. More... | |
getFieldId () | |
Get field_id. More... | |
setRecordId ($a_id) | |
Set record id. More... | |
getRecordId () | |
Get record id. More... | |
setImportId ($a_id_string) | |
Set import id. More... | |
getImportId () | |
Get import id. More... | |
setPosition ($a_pos) | |
Set position. More... | |
getPosition () | |
Get position. More... | |
setTitle ($a_title) | |
Get title. More... | |
getTitle () | |
Get title. More... | |
setDescription ($a_desc) | |
Set description. More... | |
getDescription () | |
Get description. More... | |
isSearchSupported () | |
Is search supported at all. More... | |
isFilterSupported () | |
Is search by filter supported. More... | |
setSearchable ($a_status) | |
Toggle searchable. More... | |
isSearchable () | |
Is searchable. More... | |
setRequired ($a_status) | |
Toggle required. More... | |
isRequired () | |
Is required field. More... | |
getFieldDefinitionForTableGUI () | |
Parse properties for table gui. More... | |
addToFieldDefinitionForm (ilPropertyFormGUI $a_form, ilAdvancedMDPermissionHelper $a_permissions) | |
Add input elements to definition form. More... | |
importCustomDefinitionFormPostValues (ilPropertyFormGUI $a_form) | |
Import custom post values from definition form. More... | |
importDefinitionFormPostValues (ilPropertyFormGUI $a_form, ilAdvancedMDPermissionHelper $a_permissions) | |
Import post values from definition form. More... | |
importDefinitionFormPostValuesNeedsConfirmation () | |
prepareCustomDefinitionFormConfirmation (ilPropertyFormGUI $a_form) | |
prepareDefinitionFormConfirmation (ilPropertyFormGUI $a_form) | |
generateImportId ($a_field_id) | |
Generate unique record id. More... | |
save ($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 ($a_key, $a_value) | |
Import property from XML. More... | |
getValueForXML (ilADT $element) | |
Parse ADT value for xml (export) More... | |
importValueFromXML ($a_cdata) | |
Import value from xml. More... | |
importFromECS ($a_ecs_type, $a_value, $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) | |
Get value for search persistence. More... | |
setSearchValueSerialized (ilADTSearchBridge $a_adt_search, $a_value) | |
Set value from search persistence. More... | |
searchSubObjects (ilADTSearchBridge $a_adt_search, $a_obj_id, $sub_obj_type) | |
searchObjects (ilADTSearchBridge $a_adt_search, ilQueryParser $a_parser, array $a_object_types, $a_locate, $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 ($a_new_record_id) | |
Clone field definition. More... | |
Static Public Member Functions | |
static | getInstance ($a_field_id, $a_type=null) |
Get definition instance by type. More... | |
static | getInstanceByTypeString ($a_type) |
Get instance by type string (used by import) More... | |
static | getInstancesByRecordId ($a_record_id, $a_only_searchable=false) |
Get definitions by record id. More... | |
static | getInstancesByObjType ($a_obj_type, $a_active_only=true) |
static | getInstanceByImportId ($a_import_id) |
Get definition instance by import id. More... | |
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 ($a_type) |
Is given type valid. More... | |
Data Fields | |
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_EXTERNAL_LINK = 9 |
const | TYPE_INTERNAL_LINK = 10 |
Protected Member Functions | |
init () | |
Init properties. More... | |
initADTDefinition () | |
Init adt instance. More... | |
setADT (ilADT $a_adt) | |
Set ADT instance. More... | |
setFieldId ($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, $a_disabled=false) | |
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 ($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... | |
Static Protected Member Functions | |
static | getTypeString ($a_type) |
Get type string. More... | |
Protected Attributes | |
$field_id | |
$record_id | |
$import_id | |
$position | |
$title | |
$description | |
$searchable | |
$required | |
$adt_def | |
$adt | |
AMD field abstract base class.
Definition at line 14 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::__construct | ( | $a_field_id = null | ) |
Constructor.
init | $a_field_id |
Definition at line 44 of file class.ilAdvancedMDFieldDefinition.php.
References init(), and read().
ilAdvancedMDFieldDefinition::_clone | ( | $a_new_record_id | ) |
Clone field definition.
type | $a_new_record_id |
Definition at line 1154 of file class.ilAdvancedMDFieldDefinition.php.
References array, getDescription(), getFieldDefinition(), getPosition(), getTitle(), isRequired(), and isSearchable().
|
protected |
Add custom input elements to definition form.
ilPropertyFormGUI | $a_form | |
bool | $a_disabled |
Definition at line 599 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by addToFieldDefinitionForm().
|
protected |
Add (type-specific) properties to xml export.
ilXmlWriter | $a_writer |
Definition at line 946 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by toXML().
ilAdvancedMDFieldDefinition::addToFieldDefinitionForm | ( | ilPropertyFormGUI | $a_form, |
ilAdvancedMDPermissionHelper | $a_permissions | ||
) |
Add input elements to definition form.
ilPropertyFormGUI | $a_form | |
ilAdvancedMDPermissionHelper | $a_form |
Definition at line 610 of file class.ilAdvancedMDFieldDefinition.php.
References $lng, $title, ilAdvancedMDPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, addCustomFieldToDefinitionForm(), ilPropertyFormGUI\addItem(), array, ilAdvancedMDPermissionHelper\CONTEXT_FIELD, getDescription(), getFieldId(), getTitle(), ilClaimingPermissionHelper\hasPermissions(), isSearchable(), isSearchSupported(), ilCheckboxInputGUI\setChecked(), ilTextAreaInputGUI\setValue(), ilAdvancedMDPermissionHelper\SUBACTION_FIELD_DESCRIPTION, ilAdvancedMDPermissionHelper\SUBACTION_FIELD_PROPERTIES, ilAdvancedMDPermissionHelper\SUBACTION_FIELD_SEARCHABLE, and ilAdvancedMDPermissionHelper\SUBACTION_FIELD_TITLE.
Referenced by ilAdvancedMDSettingsGUI\initFieldForm().
ilAdvancedMDFieldDefinition::delete | ( | ) |
Delete field entry.
Definition at line 896 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $query, ilAdvancedMDValues\_deleteByFieldId(), getADT(), and getFieldId().
ilAdvancedMDFieldDefinition::generateImportId | ( | $a_field_id | ) |
Generate unique record id.
int | $a_field_id |
Definition at line 772 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by save(), and toXML().
ilAdvancedMDFieldDefinition::getADT | ( | ) |
Get ADT instance.
Definition at line 341 of file class.ilAdvancedMDFieldDefinition.php.
References $adt, getADTDefinition(), and ilADTFactory\getInstance().
Referenced by delete(), ilAdvancedMDFieldDefinitionDate\importFromECS(), ilAdvancedMDFieldDefinitionDateTime\importFromECS(), ilAdvancedMDFieldDefinitionText\importFromECS(), ilAdvancedMDFieldDefinitionExternalLink\importValueFromXML(), ilAdvancedMDFieldDefinitionDate\importValueFromXML(), ilAdvancedMDFieldDefinitionDateTime\importValueFromXML(), ilAdvancedMDFieldDefinitionInternalLink\importValueFromXML(), ilAdvancedMDFieldDefinitionLocation\importValueFromXML(), ilAdvancedMDFieldDefinitionText\importValueFromXML(), ilAdvancedMDFieldDefinitionSelectMulti\importValueFromXML(), ilAdvancedMDFieldDefinitionInteger\importValueFromXML(), ilAdvancedMDFieldDefinitionSelect\importValueFromXML(), ilAdvancedMDFieldDefinitionInternalLink\searchObjects(), ilAdvancedMDFieldDefinitionText\searchObjects(), searchObjects(), and searchSubObjects().
ilAdvancedMDFieldDefinition::getADTDefinition | ( | ) |
Get ADT definition instance.
Definition at line 328 of file class.ilAdvancedMDFieldDefinition.php.
References $adt_def, and initADTDefinition().
Referenced by getADT(), ilAdvancedMDFieldDefinitionSelectMulti\importCustomDefinitionFormPostValues(), and ilAdvancedMDFieldDefinitionSelectMulti\update().
|
static |
Init ADTGroup for definitions.
array | $a_defs |
Definition at line 204 of file class.ilAdvancedMDFieldDefinition.php.
References $def, $factory, and ilADTFactory\getInstance().
Referenced by ilAdvancedMDValues\getADTGroup(), and ilAdvancedMDValues\queryForRecords().
|
protected |
Get all definition properties for DB.
Definition at line 782 of file class.ilAdvancedMDFieldDefinition.php.
References $def, array, getDescription(), getFieldDefinition(), getImportId(), getPosition(), getRecordId(), getTitle(), getType(), isRequired(), and isSearchable().
Referenced by save(), and update().
ilAdvancedMDFieldDefinition::getDescription | ( | ) |
Get description.
Definition at line 490 of file class.ilAdvancedMDFieldDefinition.php.
References $description.
Referenced by _clone(), addToFieldDefinitionForm(), getDBProperties(), and toXML().
|
protected |
Get (type-specific) field definition.
Definition at line 578 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by _clone(), and getDBProperties().
ilAdvancedMDFieldDefinition::getFieldDefinitionForTableGUI | ( | ) |
Parse properties for table gui.
Definition at line 588 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::getFieldId | ( | ) |
Get field_id.
Definition at line 381 of file class.ilAdvancedMDFieldDefinition.php.
References $field_id.
Referenced by addToFieldDefinitionForm(), ilAdvancedMDFieldDefinitionSelect\buildConfirmedObjects(), delete(), ilAdvancedMDFieldDefinitionSelectMulti\findBySingleValue(), ilAdvancedMDFieldDefinitionSelect\importCustomDefinitionFormPostValues(), ilAdvancedMDSettingsGUI\initFieldForm(), ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation(), save(), ilAdvancedMDFieldDefinitionInternalLink\searchObjects(), ilAdvancedMDFieldDefinitionText\searchObjects(), searchObjects(), searchSubObjects(), toXML(), ilAdvancedMDFieldDefinitionSelectMulti\update(), ilAdvancedMDFieldDefinitionSelect\update(), and update().
ilAdvancedMDFieldDefinition::getImportId | ( | ) |
Get import id.
Definition at line 424 of file class.ilAdvancedMDFieldDefinition.php.
References $import_id.
Referenced by getDBProperties(), and save().
|
static |
Get definition instance by type.
int | $a_field_id | |
int | $a_type |
Definition at line 57 of file class.ilAdvancedMDFieldDefinition.php.
References $a_type, and $ilDB.
Referenced by ilAdvancedMDSettingsGUI\confirmDeleteFields(), ilAdvancedMDSettingsGUI\createField(), ilAdvancedMDSettingsGUI\deleteFields(), ilAdvancedMDSettingsGUI\editField(), ilAdvancedMDSettingsGUI\editFields(), ilLuceneAdvancedSearchFields\getFormElement(), ilLuceneAdvancedSearchFields\parseFieldQuery(), ilLuceneAdvancedSearchFields\readSections(), ilAdvancedMDSettingsGUI\saveField(), ilAdvancedSearchGUI\searchAdvancedMD(), ilAdvancedMDRecordGUI\showECSStart(), and ilAdvancedMDSettingsGUI\updateField().
|
static |
Get definition instance by import id.
string | $a_import_id |
Definition at line 163 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $query, and $row.
Referenced by ilAdvancedMDParser\initValue().
|
static |
Get instance by type string (used by import)
string | $a_type |
Definition at line 84 of file class.ilAdvancedMDFieldDefinition.php.
References $a_type, and array.
Referenced by ilAdvancedMDRecordParser\initFieldObject().
|
static |
Definition at line 134 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $query, $res, $row, and array.
Referenced by ilECSSettingsGUI\exportMappings(), ilECSSettingsGUI\importMappings(), ilAdvancedMDSettingsGUI\initFormSubstitutions(), ilECSSettingsGUI\initMappingsForm(), ilAdvancedMDRecordGUI\parseAppointmentPresentation(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
|
static |
Get definitions by record id.
int | $a_record_id | |
bool | $a_only_searchable |
Definition at line 112 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $query, $row, and array.
Referenced by ilAdvancedMDRecord\_clone(), ilGlossaryTerm\_copyTerm(), ilAdvancedMDRecord\_delete(), ilAdvancedMDSettingsGUI\editFields(), ilAdvancedMDRecordTableGUI\fillRow(), ilPCAMDPageList\findPages(), ilObjBookingPool\getAdvancedMDFields(), ilGlossaryAdvMetaDataAdapter\getAllFields(), ilAdvancedMDValues\getDefinitions(), ilLuceneAdvancedSearchFields\getFields(), ilAdvancedMDRecordGUI\parseFilter(), ilAdvancedMDRecordGUI\parseSearch(), ilAdvancedMDValues\queryForRecords(), ilAdvancedMDRecord\toXML(), and ilAdvancedMDSettingsGUI\updateFields().
|
protected |
Get last position of record.
Definition at line 750 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, and getRecordId().
Referenced by save().
ilAdvancedMDFieldDefinition::getLuceneSearchString | ( | $a_value | ) |
Get search string in lucene syntax.
mixed | $a_value |
Definition at line 1133 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::getPosition | ( | ) |
Get position.
Definition at line 444 of file class.ilAdvancedMDFieldDefinition.php.
References $position.
Referenced by _clone(), getDBProperties(), and toXML().
ilAdvancedMDFieldDefinition::getRecordId | ( | ) |
Get record id.
Definition at line 401 of file class.ilAdvancedMDFieldDefinition.php.
References $record_id.
Referenced by getDBProperties(), and getLastPosition().
|
static |
Get searchable definition ids (performance is key)
Definition at line 181 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $query, $row, and array.
Referenced by ilAdvancedSearchGUI\setSubTabs().
ilAdvancedMDFieldDefinition::getSearchQueryParserValue | ( | ilADTSearchBridge | $a_adt_search | ) |
Get value for search query parser.
ilADTSearchBridge | $a_adt_search |
Definition at line 1015 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::getSearchValueSerialized | ( | ilADTSearchBridge | $a_adt_search | ) |
Get value for search persistence.
ilADTSearchBridge | $a_adt_search |
Definition at line 1026 of file class.ilAdvancedMDFieldDefinition.php.
References ilADTSearchBridge\getSerializedValue().
ilAdvancedMDFieldDefinition::getTitle | ( | ) |
Get title.
Definition at line 467 of file class.ilAdvancedMDFieldDefinition.php.
References $title.
Referenced by _clone(), addToFieldDefinitionForm(), getDBProperties(), and toXML().
|
abstract |
Get type.
Referenced by getDBProperties(), getTypeTitle(), isValidType(), searchObjects(), searchSubObjects(), and toXML().
|
staticprotected |
Get type string.
string | $a_type |
Definition at line 280 of file class.ilAdvancedMDFieldDefinition.php.
References $a_type, and array.
ilAdvancedMDFieldDefinition::getTypeTitle | ( | ) |
Get type title (lang id)
Definition at line 304 of file class.ilAdvancedMDFieldDefinition.php.
References getType(), and initADTDefinition().
Referenced by ilAdvancedMDSettingsGUI\initFieldForm().
|
static |
Get all valid types.
Definition at line 240 of file class.ilAdvancedMDFieldDefinition.php.
References array.
Referenced by ilAdvancedMDSettingsGUI\editFields().
|
abstract |
Parse ADT value for xml (export)
ilADT | $element |
Referenced by importXMLProperty().
|
protected |
Import from DB.
array | $a_data |
Definition at line 808 of file class.ilAdvancedMDFieldDefinition.php.
References importFieldDefinition(), setDescription(), setFieldId(), setImportId(), setPosition(), setRecordId(), setRequired(), setSearchable(), and setTitle().
ilAdvancedMDFieldDefinition::importCustomDefinitionFormPostValues | ( | ilPropertyFormGUI | $a_form | ) |
Import custom post values from definition form.
ilPropertyFormGUI | $a_form |
Definition at line 681 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by importDefinitionFormPostValues().
ilAdvancedMDFieldDefinition::importDefinitionFormPostValues | ( | ilPropertyFormGUI | $a_form, |
ilAdvancedMDPermissionHelper | $a_permissions | ||
) |
Import post values from definition form.
ilPropertyFormGUI | $a_form | |
ilAdvancedMDPermissionHelper | $a_permissions |
Definition at line 692 of file class.ilAdvancedMDFieldDefinition.php.
References ilAdvancedMDPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\CONTEXT_FIELD, ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), ilClaimingPermissionHelper\hasPermission(), importCustomDefinitionFormPostValues(), setDescription(), setSearchable(), setTitle(), and ilAdvancedMDPermissionHelper\SUBACTION_FIELD_PROPERTIES.
ilAdvancedMDFieldDefinition::importDefinitionFormPostValuesNeedsConfirmation | ( | ) |
Definition at line 714 of file class.ilAdvancedMDFieldDefinition.php.
|
protected |
Import (type-specific) field definition from DB.
array | $a_def |
Definition at line 569 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by import().
ilAdvancedMDFieldDefinition::importFromECS | ( | $a_ecs_type, | |
$a_value, | |||
$a_sub_id | |||
) |
Import meta data from ECS.
int | $a_ecs_type | |
mixed | $a_value | |
string | $a_sub_id |
Definition at line 984 of file class.ilAdvancedMDFieldDefinition.php.
|
abstract |
Import value from xml.
string | $a_cdata |
Referenced by importXMLProperty().
ilAdvancedMDFieldDefinition::importXMLProperty | ( | $a_key, | |
$a_value | |||
) |
Import property from XML.
string | $a_key | |
string | $a_value |
Definition at line 957 of file class.ilAdvancedMDFieldDefinition.php.
References getValueForXML(), and importValueFromXML().
|
protected |
Init properties.
Definition at line 224 of file class.ilAdvancedMDFieldDefinition.php.
References setRequired(), and setSearchable().
Referenced by __construct().
|
abstractprotected |
Init adt instance.
Referenced by getADTDefinition(), and getTypeTitle().
ilAdvancedMDFieldDefinition::isFilterSupported | ( | ) |
Is search by filter supported.
Definition at line 510 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::isRequired | ( | ) |
Is required field.
Definition at line 554 of file class.ilAdvancedMDFieldDefinition.php.
References $required.
Referenced by _clone(), and getDBProperties().
ilAdvancedMDFieldDefinition::isSearchable | ( | ) |
Is searchable.
Definition at line 534 of file class.ilAdvancedMDFieldDefinition.php.
References $searchable.
Referenced by _clone(), addToFieldDefinitionForm(), getDBProperties(), and toXML().
ilAdvancedMDFieldDefinition::isSearchSupported | ( | ) |
Is search supported at all.
Definition at line 500 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by addToFieldDefinitionForm(), and setSearchable().
|
static |
Is given type valid.
int | $a_type |
Definition at line 262 of file class.ilAdvancedMDFieldDefinition.php.
References $a_type, and getType().
|
protected |
Add object-data needed for global search to AMD search results.
array | $a_records | |
array | $a_object_types |
Definition at line 1049 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $res, $row, and array.
Referenced by ilAdvancedMDFieldDefinitionInternalLink\searchObjects(), and searchObjects().
ilAdvancedMDFieldDefinition::prepareCustomDefinitionFormConfirmation | ( | ilPropertyFormGUI | $a_form | ) |
Definition at line 719 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by prepareDefinitionFormConfirmation().
ilAdvancedMDFieldDefinition::prepareDefinitionFormConfirmation | ( | ilPropertyFormGUI | $a_form | ) |
Definition at line 724 of file class.ilAdvancedMDFieldDefinition.php.
References ilPropertyFormGUI\addItem(), ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), and prepareCustomDefinitionFormConfirmation().
ilAdvancedMDFieldDefinition::prepareElementForEditor | ( | ilADTFormBridge | $a_bridge | ) |
Prepare editor form elements.
ilADTFormBridge | $a_bridge |
Definition at line 999 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::prepareElementForSearch | ( | ilADTSearchBridge | $a_bridge | ) |
Prepare search form elements.
ilADTSearchBridge | $a_bridge |
Definition at line 1143 of file class.ilAdvancedMDFieldDefinition.php.
|
protected |
Read field definition.
Definition at line 827 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by __construct().
ilAdvancedMDFieldDefinition::save | ( | $a_keep_pos = false | ) |
Create new field entry.
Definition at line 847 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, array, generateImportId(), getDBProperties(), getFieldId(), getImportId(), getLastPosition(), setFieldId(), setImportId(), setPosition(), and update().
Referenced by update().
ilAdvancedMDFieldDefinition::searchObjects | ( | ilADTSearchBridge | $a_adt_search, |
ilQueryParser | $a_parser, | ||
array | $a_object_types, | ||
$a_locate, | |||
$a_search_type | |||
) |
Search objects.
ilADTSearchBridge | $a_adt_search | |
ilQueryParser | $a_parser | |
array | $a_object_types | |
string | $a_locate | |
string | $a_search_type |
Definition at line 1112 of file class.ilAdvancedMDFieldDefinition.php.
References array, ilADTActiveRecordByType\find(), getADT(), getFieldId(), ilADTSearchBridge\getSQLCondition(), getType(), parseSearchObjects(), and ilADTActiveRecordByType\SINGLE_COLUMN_NAME.
ilAdvancedMDFieldDefinition::searchSubObjects | ( | ilADTSearchBridge | $a_adt_search, |
$a_obj_id, | |||
$sub_obj_type | |||
) |
Definition at line 1074 of file class.ilAdvancedMDFieldDefinition.php.
References $res, array, ilADTActiveRecordByType\find(), getADT(), getFieldId(), ilADTSearchBridge\getSQLCondition(), getType(), and ilADTActiveRecordByType\SINGLE_COLUMN_NAME.
|
protected |
Set ADT instance.
ilADT | $a_adt |
Definition at line 355 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::setDescription | ( | $a_desc | ) |
Set description.
string | $a_desc |
Definition at line 477 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by import(), and importDefinitionFormPostValues().
|
protected |
Set field_id.
int | $a_id |
Definition at line 371 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by import(), and save().
ilAdvancedMDFieldDefinition::setImportId | ( | $a_id_string | ) |
Set import id.
string | $a_id_string |
Definition at line 411 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by import(), and save().
ilAdvancedMDFieldDefinition::setPosition | ( | $a_pos | ) |
Set position.
int | $a_pos |
Definition at line 434 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by import(), and save().
ilAdvancedMDFieldDefinition::setRecordId | ( | $a_id | ) |
Set record id.
int | $a_id |
Definition at line 391 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by import().
ilAdvancedMDFieldDefinition::setRequired | ( | $a_status | ) |
Toggle required.
bool | $a_status |
Definition at line 544 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by import(), and init().
ilAdvancedMDFieldDefinition::setSearchable | ( | $a_status | ) |
Toggle searchable.
bool | searchable |
Definition at line 520 of file class.ilAdvancedMDFieldDefinition.php.
References isSearchSupported().
Referenced by import(), importDefinitionFormPostValues(), and init().
ilAdvancedMDFieldDefinition::setSearchValueSerialized | ( | ilADTSearchBridge | $a_adt_search, |
$a_value | |||
) |
Set value from search persistence.
ilADTSearchBridge | $a_adt_search | |
string | $a_value |
Definition at line 1037 of file class.ilAdvancedMDFieldDefinition.php.
References ilADTSearchBridge\setSerializedValue().
ilAdvancedMDFieldDefinition::setTitle | ( | $a_title | ) |
Get title.
string | $a_title |
Definition at line 454 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by import(), and importDefinitionFormPostValues().
ilAdvancedMDFieldDefinition::toXML | ( | ilXmlWriter | $a_writer | ) |
To Xml.
This method writes only the subset Field Use class.ilAdvancedMDRecordXMLWriter to generate a complete xml presentation.
ilXmlWriter | $a_writer |
Definition at line 925 of file class.ilAdvancedMDFieldDefinition.php.
References addPropertiesToXML(), array, generateImportId(), getDescription(), getFieldId(), getPosition(), getTitle(), getType(), isSearchable(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilAdvancedMDFieldDefinition::update | ( | ) |
Update field entry.
Definition at line 878 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, array, getDBProperties(), getFieldId(), and save().
Referenced by save().
|
protected |
Definition at line 25 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getADT(), ilAdvancedMDFieldDefinitionExternalLink\importValueFromXML(), and ilAdvancedMDFieldDefinitionLocation\importValueFromXML().
|
protected |
Definition at line 24 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getADTDefinition().
|
protected |
Definition at line 21 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getDescription().
|
protected |
Definition at line 16 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getFieldId().
|
protected |
Definition at line 18 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getImportId().
|
protected |
Definition at line 19 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getPosition().
|
protected |
Definition at line 17 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getRecordId().
|
protected |
Definition at line 23 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by isRequired().
|
protected |
Definition at line 22 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by isSearchable().
|
protected |
Definition at line 20 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by addToFieldDefinitionForm(), getTitle(), and ilAdvancedMDFieldDefinitionSelect\prepareCustomDefinitionFormConfirmation().
const ilAdvancedMDFieldDefinition::TYPE_DATE = 3 |
Definition at line 29 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilTermListTableGUI\numericOrdering(), ilPresentationListTableGUI\numericOrdering(), and ilBookingObjectsTableGUI\numericOrdering().
const ilAdvancedMDFieldDefinition::TYPE_DATETIME = 4 |
Definition at line 30 of file class.ilAdvancedMDFieldDefinition.php.
const ilAdvancedMDFieldDefinition::TYPE_EXTERNAL_LINK = 9 |
Definition at line 35 of file class.ilAdvancedMDFieldDefinition.php.
const ilAdvancedMDFieldDefinition::TYPE_FLOAT = 6 |
Definition at line 32 of file class.ilAdvancedMDFieldDefinition.php.
const ilAdvancedMDFieldDefinition::TYPE_INTEGER = 5 |
Definition at line 31 of file class.ilAdvancedMDFieldDefinition.php.
const ilAdvancedMDFieldDefinition::TYPE_INTERNAL_LINK = 10 |
Definition at line 36 of file class.ilAdvancedMDFieldDefinition.php.
const ilAdvancedMDFieldDefinition::TYPE_LOCATION = 7 |
Definition at line 33 of file class.ilAdvancedMDFieldDefinition.php.
const ilAdvancedMDFieldDefinition::TYPE_SELECT = 1 |
Definition at line 27 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDRecordGUI\showECSStart().
const ilAdvancedMDFieldDefinition::TYPE_SELECT_MULTI = 8 |
Definition at line 34 of file class.ilAdvancedMDFieldDefinition.php.
const ilAdvancedMDFieldDefinition::TYPE_TEXT = 2 |
Definition at line 28 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDRecordGUI\showECSStart().