ILIAS
Release_5_0_x_branch Revision 61816
|
AMD field abstract base class. More...
Public Member Functions | |
__construct ($a_field_id=null) | |
Constructor. | |
getType () | |
Get type. | |
getTypeTitle () | |
Get type title (lang id) | |
getADTDefinition () | |
Get ADT definition instance. | |
getADT () | |
Get ADT instance. | |
getFieldId () | |
Get field_id. | |
setRecordId ($a_id) | |
Set record id. | |
getRecordId () | |
Get record id. | |
setImportId ($a_id_string) | |
Set import id. | |
getImportId () | |
Get import id. | |
setPosition ($a_pos) | |
Set position. | |
getPosition () | |
Get position. | |
setTitle ($a_title) | |
Get title. | |
getTitle () | |
Get title. | |
setDescription ($a_desc) | |
Set description. | |
getDescription () | |
Get description. | |
setSearchable ($a_status) | |
Toggle searchable. | |
isSearchable () | |
Is searchable. | |
setRequired ($a_status) | |
Toggle required. | |
isRequired () | |
Is required field. | |
getFieldDefinitionForTableGUI () | |
Parse properties for table gui. | |
addToFieldDefinitionForm (ilPropertyFormGUI $a_form, ilAdvancedMDPermissionHelper $a_permissions) | |
Add input elements to definition form. | |
importCustomDefinitionFormPostValues (ilPropertyFormGUI $a_form) | |
Import custom post values from definition form. | |
importDefinitionFormPostValues (ilPropertyFormGUI $a_form, ilAdvancedMDPermissionHelper $a_permissions) | |
Import post values from definition form. | |
importDefinitionFormPostValuesNeedsConfirmation () | |
prepareCustomDefinitionFormConfirmation (ilPropertyFormGUI $a_form) | |
prepareDefinitionFormConfirmation (ilPropertyFormGUI $a_form) | |
save () | |
Create new field entry. | |
update () | |
Update field entry. | |
delete () | |
Delete field entry. | |
toXML (ilXmlWriter $a_writer) | |
To Xml. | |
importXMLProperty ($a_key, $a_value) | |
Import property from XML. | |
getValueForXML (ilADT $element) | |
Parse ADT value for xml (export) | |
importValueFromXML ($a_cdata) | |
Import value from xml. | |
importFromECS ($a_ecs_type, $a_value, $a_sub_id) | |
Import meta data from ECS. | |
prepareElementForEditor (ilADTFormBridge $a_bridge) | |
Prepare editor form elements. | |
getSearchQueryParserValue (ilADTSearchBridge $a_adt_search) | |
Get value for search query parser. | |
getSearchValueSerialized (ilADTSearchBridge $a_adt_search) | |
Get value for search persistence. | |
setSearchValueSerialized (ilADTSearchBridge $a_adt_search, $a_value) | |
Set value from search persistence. | |
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. | |
getLuceneSearchString ($a_value) | |
Get search string in lucene syntax. | |
prepareElementForSearch (ilADTSearchBridge $a_bridge) | |
Prepare search form elements. |
Static Public Member Functions | |
static | getInstance ($a_field_id, $a_type=null) |
Get definition instance by type. | |
static | getInstanceByTypeString ($a_type) |
Get instance by type string (used by import) | |
static | getInstancesByRecordId ($a_record_id, $a_only_searchable=false) |
Get definitions by record id. | |
static | getInstancesByObjType ($a_obj_type, $a_active_only=true) |
static | getInstanceByImportId ($a_import_id) |
Get definition instance by import id. | |
static | getSearchableDefinitionIds () |
Get searchable definition ids (performance is key) | |
static | getADTGroupForDefinitions (array $a_defs) |
Init ADTGroup for definitions. | |
static | getValidTypes () |
Get all valid types. | |
static | isValidType ($a_type) |
Is given type valid. |
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 |
Protected Member Functions | |
init () | |
Init properties. | |
initADTDefinition () | |
Init adt instance. | |
setADT (ilADT $a_adt) | |
Set ADT instance. | |
setFieldId ($a_id) | |
Set field_id. | |
importFieldDefinition (array $a_def) | |
Import (type-specific) field definition from DB. | |
getFieldDefinition () | |
Get (type-specific) field definition. | |
addCustomFieldToDefinitionForm (ilPropertyFormGUI $a_form, $a_disabled=false) | |
Add custom input elements to definition form. | |
getLastPosition () | |
Get last position of record. | |
generateImportId ($a_field_id) | |
Generate unique record id. | |
getDBProperties () | |
Get all definition properties for DB. | |
import (array $a_data) | |
Import from DB. | |
read ($a_field_id) | |
Read field definition. | |
addPropertiesToXML (ilXmlWriter $a_writer) | |
Add (type-specific) properties to xml export. | |
parseSearchObjects (array $a_records, array $a_object_types) | |
Add object-data needed for global search to AMD search results. |
Static Protected Member Functions | |
static | getTypeString ($a_type) |
Get type string. |
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 | ) |
|
protected |
Add custom input elements to definition form.
ilPropertyFormGUI | $a_form | |
bool | $a_disabled |
Reimplemented in ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionText, ilAdvancedMDFieldDefinitionSelect, and ilAdvancedMDFieldDefinitionFloat.
Definition at line 579 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by addToFieldDefinitionForm().
|
protected |
Add (type-specific) properties to xml export.
ilXmlWriter | $a_writer |
Reimplemented in ilAdvancedMDFieldDefinitionSelect, ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionText, and ilAdvancedMDFieldDefinitionFloat.
Definition at line 933 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 590 of file class.ilAdvancedMDFieldDefinition.php.
References $lng, $title, ilAdvancedMDPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, addCustomFieldToDefinitionForm(), ilPropertyFormGUI\addItem(), ilAdvancedMDPermissionHelper\CONTEXT_FIELD, getDescription(), getFieldId(), getTitle(), ilClaimingPermissionHelper\hasPermissions(), isSearchable(), 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 882 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $query, ilAdvancedMDValues\_deleteByFieldId(), getADT(), and getFieldId().
|
protected |
Generate unique record id.
int | $a_field_id |
Definition at line 756 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by save(), and toXML().
ilAdvancedMDFieldDefinition::getADT | ( | ) |
Get ADT instance.
Definition at line 339 of file class.ilAdvancedMDFieldDefinition.php.
References $adt, getADTDefinition(), and getInstance().
Referenced by delete(), ilAdvancedMDFieldDefinitionDate\importValueFromXML(), ilAdvancedMDFieldDefinitionDateTime\importValueFromXML(), ilAdvancedMDFieldDefinitionLocation\importValueFromXML(), ilAdvancedMDFieldDefinitionText\importValueFromXML(), ilAdvancedMDFieldDefinitionSelectMulti\importValueFromXML(), ilAdvancedMDFieldDefinitionInteger\importValueFromXML(), ilAdvancedMDFieldDefinitionSelect\importValueFromXML(), searchObjects(), and searchSubObjects().
ilAdvancedMDFieldDefinition::getADTDefinition | ( | ) |
Get ADT definition instance.
Definition at line 325 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 209 of file class.ilAdvancedMDFieldDefinition.php.
References getInstance().
Referenced by ilAdvancedMDValues\getADTGroup(), and ilAdvancedMDValues\queryForRecords().
|
protected |
Get all definition properties for DB.
Definition at line 766 of file class.ilAdvancedMDFieldDefinition.php.
References getDescription(), getFieldDefinition(), getImportId(), getPosition(), getRecordId(), getTitle(), getType(), isRequired(), and isSearchable().
Referenced by save(), and update().
ilAdvancedMDFieldDefinition::getDescription | ( | ) |
Get description.
Definition at line 493 of file class.ilAdvancedMDFieldDefinition.php.
References $description.
Referenced by addToFieldDefinitionForm(), getDBProperties(), and toXML().
|
protected |
Get (type-specific) field definition.
Reimplemented in ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionText, ilAdvancedMDFieldDefinitionSelect, and ilAdvancedMDFieldDefinitionFloat.
Definition at line 558 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getDBProperties().
ilAdvancedMDFieldDefinition::getFieldDefinitionForTableGUI | ( | ) |
Parse properties for table gui.
Reimplemented in ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionText, ilAdvancedMDFieldDefinitionSelect, and ilAdvancedMDFieldDefinitionFloat.
Definition at line 568 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(), save(), searchObjects(), searchSubObjects(), toXML(), ilAdvancedMDFieldDefinitionSelectMulti\update(), ilAdvancedMDFieldDefinitionSelect\update(), and update().
ilAdvancedMDFieldDefinition::getImportId | ( | ) |
Get import id.
Definition at line 425 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 55 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB.
Referenced by ilAdvancedMDSettingsGUI\confirmDeleteFields(), ilAdvancedMDSettingsGUI\createField(), ilAdvancedMDSettingsGUI\deleteFields(), ilAdvancedMDSettingsGUI\editField(), ilAdvancedMDSettingsGUI\editFields(), getADT(), getADTGroupForDefinitions(), getInstanceByImportId(), getInstanceByTypeString(), getInstancesByObjType(), getInstancesByRecordId(), ilAdvancedMDFieldDefinitionSelectMulti\importCustomDefinitionFormPostValues(), ilAdvancedMDFieldDefinitionDateTime\initADTDefinition(), ilAdvancedMDFieldDefinitionLocation\initADTDefinition(), ilAdvancedMDFieldDefinitionDate\initADTDefinition(), ilAdvancedMDFieldDefinitionSelectMulti\initADTDefinition(), ilAdvancedMDFieldDefinitionInteger\initADTDefinition(), ilAdvancedMDFieldDefinitionText\initADTDefinition(), ilAdvancedMDFieldDefinitionSelect\initADTDefinition(), ilAdvancedMDFieldDefinitionFloat\initADTDefinition(), ilAdvancedMDSettingsGUI\saveField(), ilAdvancedSearchGUI\searchAdvancedMD(), ilAdvancedMDRecordGUI\showECSStart(), ilAdvancedMDFieldDefinitionSelectMulti\update(), and ilAdvancedMDSettingsGUI\updateField().
|
static |
Get definition instance by import id.
string | $a_import_id |
Definition at line 166 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $query, $row, and getInstance().
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 getInstance().
Referenced by ilAdvancedMDRecordParser\initFieldObject().
|
static |
Definition at line 135 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $query, $res, $row, and getInstance().
Referenced by ilECSSettingsGUI\exportMappings(), ilECSSettingsGUI\importMappings(), ilAdvancedMDSettingsGUI\initFormSubstitutions(), ilECSSettingsGUI\initMappingsForm(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
|
static |
Get definitions by record id.
int | $a_record_id | |
bool | $a_only_searchable |
Definition at line 111 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $query, $row, and getInstance().
Referenced by ilAdvancedMDRecord\_delete(), ilAdvancedMDSettingsGUI\editFields(), ilAdvancedMDRecordTableGUI\fillRow(), ilPCAMDPageList\findPages(), 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 733 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 |
Reimplemented in ilAdvancedMDFieldDefinitionDate, ilAdvancedMDFieldDefinitionDateTime, and ilAdvancedMDFieldDefinitionLocation.
Definition at line 1131 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::getPosition | ( | ) |
Get position.
Definition at line 445 of file class.ilAdvancedMDFieldDefinition.php.
References $position.
Referenced by 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 185 of file class.ilAdvancedMDFieldDefinition.php.
References $field_id, $ilDB, $query, and $row.
Referenced by ilAdvancedSearchGUI\setSubTabs().
ilAdvancedMDFieldDefinition::getSearchQueryParserValue | ( | ilADTSearchBridge | $a_adt_search | ) |
Get value for search query parser.
ilADTSearchBridge | $a_adt_search |
Reimplemented in ilAdvancedMDFieldDefinitionText.
Definition at line 1003 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::getSearchValueSerialized | ( | ilADTSearchBridge | $a_adt_search | ) |
Get value for search persistence.
ilADTSearchBridge | $a_adt_search |
Definition at line 1014 of file class.ilAdvancedMDFieldDefinition.php.
References ilADTSearchBridge\getSerializedValue().
ilAdvancedMDFieldDefinition::getTitle | ( | ) |
Get title.
Definition at line 469 of file class.ilAdvancedMDFieldDefinition.php.
References $title.
Referenced by addToFieldDefinitionForm(), getDBProperties(), and toXML().
|
abstract |
Get type.
Reimplemented in ilAdvancedMDFieldDefinitionSelect, ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionText, ilAdvancedMDFieldDefinitionFloat, ilAdvancedMDFieldDefinitionSelectMulti, ilAdvancedMDFieldDefinitionDate, ilAdvancedMDFieldDefinitionDateTime, and ilAdvancedMDFieldDefinitionLocation.
Referenced by getDBProperties(), getTypeTitle(), searchObjects(), searchSubObjects(), and toXML().
|
staticprotected |
Get type string.
string | $a_type |
Definition at line 278 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::getTypeTitle | ( | ) |
Get type title (lang id)
Definition at line 301 of file class.ilAdvancedMDFieldDefinition.php.
References getType().
Referenced by ilAdvancedMDSettingsGUI\initFieldForm().
|
static |
Get all valid types.
Definition at line 247 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDSettingsGUI\editFields().
|
abstract |
Parse ADT value for xml (export)
ilADT | $element |
Reimplemented in ilAdvancedMDFieldDefinitionSelect, ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionSelectMulti, ilAdvancedMDFieldDefinitionText, ilAdvancedMDFieldDefinitionDate, ilAdvancedMDFieldDefinitionDateTime, and ilAdvancedMDFieldDefinitionLocation.
|
protected |
Import from DB.
array | $a_data |
Definition at line 793 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 |
Reimplemented in ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionSelect, ilAdvancedMDFieldDefinitionText, ilAdvancedMDFieldDefinitionFloat, and ilAdvancedMDFieldDefinitionSelectMulti.
Definition at line 660 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 671 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 | ( | ) |
Reimplemented in ilAdvancedMDFieldDefinitionSelect.
Definition at line 696 of file class.ilAdvancedMDFieldDefinition.php.
|
protected |
Import (type-specific) field definition from DB.
array | $a_def |
Reimplemented in ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionText, ilAdvancedMDFieldDefinitionSelect, and ilAdvancedMDFieldDefinitionFloat.
Definition at line 548 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 |
Reimplemented in ilAdvancedMDFieldDefinitionText, ilAdvancedMDFieldDefinitionDate, and ilAdvancedMDFieldDefinitionDateTime.
Definition at line 972 of file class.ilAdvancedMDFieldDefinition.php.
|
abstract |
Import value from xml.
string | $a_cdata |
Reimplemented in ilAdvancedMDFieldDefinitionSelect, ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionSelectMulti, ilAdvancedMDFieldDefinitionText, ilAdvancedMDFieldDefinitionDate, ilAdvancedMDFieldDefinitionDateTime, and ilAdvancedMDFieldDefinitionLocation.
ilAdvancedMDFieldDefinition::importXMLProperty | ( | $a_key, | |
$a_value | |||
) |
Import property from XML.
string | $a_key | |
string | $a_value |
Reimplemented in ilAdvancedMDFieldDefinitionSelect, ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionText, and ilAdvancedMDFieldDefinitionFloat.
Definition at line 944 of file class.ilAdvancedMDFieldDefinition.php.
|
protected |
Init properties.
Reimplemented in ilAdvancedMDFieldDefinitionFloat.
Definition at line 231 of file class.ilAdvancedMDFieldDefinition.php.
References setRequired(), and setSearchable().
Referenced by __construct().
|
abstractprotected |
Init adt instance.
Reimplemented in ilAdvancedMDFieldDefinitionFloat, ilAdvancedMDFieldDefinitionSelect, ilAdvancedMDFieldDefinitionInteger, ilAdvancedMDFieldDefinitionText, ilAdvancedMDFieldDefinitionSelectMulti, ilAdvancedMDFieldDefinitionDate, ilAdvancedMDFieldDefinitionDateTime, and ilAdvancedMDFieldDefinitionLocation.
Referenced by getADTDefinition().
ilAdvancedMDFieldDefinition::isRequired | ( | ) |
Is required field.
Definition at line 533 of file class.ilAdvancedMDFieldDefinition.php.
References $required.
Referenced by getDBProperties().
ilAdvancedMDFieldDefinition::isSearchable | ( | ) |
Is searchable.
Definition at line 513 of file class.ilAdvancedMDFieldDefinition.php.
References $searchable.
Referenced by addToFieldDefinitionForm(), getDBProperties(), and toXML().
|
static |
Is given type valid.
int | $a_type |
Definition at line 260 of file class.ilAdvancedMDFieldDefinition.php.
|
protected |
Add object-data needed for global search to AMD search results.
array | $a_records | |
array | $a_object_types |
Reimplemented in ilAdvancedMDFieldDefinitionText.
Definition at line 1037 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, $res, and $row.
Referenced by searchObjects().
ilAdvancedMDFieldDefinition::prepareCustomDefinitionFormConfirmation | ( | ilPropertyFormGUI | $a_form | ) |
Reimplemented in ilAdvancedMDFieldDefinitionSelect.
Definition at line 701 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by prepareDefinitionFormConfirmation().
ilAdvancedMDFieldDefinition::prepareDefinitionFormConfirmation | ( | ilPropertyFormGUI | $a_form | ) |
Definition at line 706 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 |
Reimplemented in ilAdvancedMDFieldDefinitionDate, and ilAdvancedMDFieldDefinitionDateTime.
Definition at line 987 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::prepareElementForSearch | ( | ilADTSearchBridge | $a_bridge | ) |
Prepare search form elements.
ilADTSearchBridge | $a_bridge |
Reimplemented in ilAdvancedMDFieldDefinitionDate, and ilAdvancedMDFieldDefinitionDateTime.
Definition at line 1141 of file class.ilAdvancedMDFieldDefinition.php.
|
protected |
Read field definition.
Definition at line 814 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by __construct().
ilAdvancedMDFieldDefinition::save | ( | ) |
Create new field entry.
Definition at line 836 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, generateImportId(), getDBProperties(), getFieldId(), getImportId(), getLastPosition(), 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 |
Reimplemented in ilAdvancedMDFieldDefinitionText.
Definition at line 1108 of file class.ilAdvancedMDFieldDefinition.php.
References 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 1065 of file class.ilAdvancedMDFieldDefinition.php.
References $res, ilADTActiveRecordByType\find(), getADT(), getFieldId(), ilADTSearchBridge\getSQLCondition(), getType(), and ilADTActiveRecordByType\SINGLE_COLUMN_NAME.
|
protected |
Set ADT instance.
ilADT | $a_adt |
Definition at line 354 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::setDescription | ( | $a_desc | ) |
Set description.
string | $a_desc |
Definition at line 479 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().
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 435 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 523 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by import(), and init().
ilAdvancedMDFieldDefinition::setSearchable | ( | $a_status | ) |
Toggle searchable.
bool | searchable |
Definition at line 503 of file class.ilAdvancedMDFieldDefinition.php.
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 1025 of file class.ilAdvancedMDFieldDefinition.php.
References ilADTSearchBridge\setSerializedValue().
ilAdvancedMDFieldDefinition::setTitle | ( | $a_title | ) |
Get title.
string | $a_title |
Definition at line 455 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 912 of file class.ilAdvancedMDFieldDefinition.php.
References addPropertiesToXML(), generateImportId(), getDescription(), getFieldId(), getPosition(), getTitle(), getType(), isSearchable(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilAdvancedMDFieldDefinition::update | ( | ) |
Update field entry.
Reimplemented in ilAdvancedMDFieldDefinitionSelect, and ilAdvancedMDFieldDefinitionSelectMulti.
Definition at line 865 of file class.ilAdvancedMDFieldDefinition.php.
References $ilDB, getDBProperties(), getFieldId(), and save().
Referenced by save().
|
protected |
Definition at line 25 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getADT(), 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(), and getSearchableDefinitionIds().
|
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 ilAdvancedMDFieldDefinitionDate\getType(), ilTermListTableGUI\numericOrdering(), ilPresentationListTableGUI\numericOrdering(), and ilAdvancedMDRecordGUI\parseFilter().
const ilAdvancedMDFieldDefinition::TYPE_DATETIME = 4 |
Definition at line 30 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldDefinitionDateTime\getType(), and ilAdvancedMDRecordGUI\parseFilter().
const ilAdvancedMDFieldDefinition::TYPE_FLOAT = 6 |
Definition at line 32 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldDefinitionFloat\getType().
const ilAdvancedMDFieldDefinition::TYPE_INTEGER = 5 |
Definition at line 31 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldDefinitionInteger\getType().
const ilAdvancedMDFieldDefinition::TYPE_LOCATION = 7 |
Definition at line 33 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldDefinitionLocation\getType().
const ilAdvancedMDFieldDefinition::TYPE_SELECT = 1 |
Definition at line 27 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldDefinitionSelect\getType(), ilAdvancedMDRecordGUI\parseFilter(), and ilAdvancedMDRecordGUI\showECSStart().
const ilAdvancedMDFieldDefinition::TYPE_SELECT_MULTI = 8 |
Definition at line 34 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldDefinitionSelectMulti\getType(), and ilAdvancedMDRecordGUI\parseFilter().
const ilAdvancedMDFieldDefinition::TYPE_TEXT = 2 |
Definition at line 28 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldDefinitionText\getType(), ilAdvancedMDRecordGUI\parseFilter(), and ilAdvancedMDRecordGUI\showECSStart().