ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_field_id=0) | |
public | |
isDeleted () | |
is deleted | |
setRecordId ($a_id) | |
set record id | |
getRecordId () | |
get record id | |
getFieldId () | |
get field_id | |
setImportId ($a_id_string) | |
set import id | |
getImportId () | |
get import_id | |
setPosition ($a_pos) | |
set position | |
getPosition () | |
get position | |
setFieldType ($a_type_id) | |
set field type | |
getFieldType () | |
get field type | |
setFieldValues ($a_values) | |
set field values | |
appendFieldValue ($a_value) | |
Append field value. | |
getFieldValues () | |
get field values | |
getFieldValuesForSelect () | |
get field values for select | |
getFieldValuesForSearch () | |
get field values for select | |
setTitle ($a_title) | |
set title | |
getTitle () | |
get title | |
setDescription ($a_desc) | |
set description | |
getDescription () | |
get description | |
enableSearchable ($a_status) | |
enable searchable | |
isSearchable () | |
is searchable | |
isRequired () | |
is required field | |
delete () | |
delete field | |
add () | |
add new field | |
validate () | |
validate | |
update () | |
update | |
toXML (ilXmlWriter $writer) | |
To Xml. |
Static Public Member Functions | |
static | _lookupImportId ($a_field_id) |
Lookup import id. | |
static | _lookupFieldId ($a_import_id) |
Lookup field id. | |
static | _lookupFieldType ($a_field_id) |
Lookup field type. | |
static | _lookupDateTimeFields () |
Lookup datetime fields. | |
static | _lookupDateFields () |
Lookup date fields. | |
static | _getInstanceByFieldId ($a_field_id) |
Get instance by field_id. | |
static | _getDefinitionsByRecordId ($a_record_id) |
get definitions | |
static | _getActiveDefinitionsByObjType ($a_type) |
get active definitions by obj type | |
static | _getSearchableDefinitionIds () |
Get searchable definition ids. | |
static | _deleteByRecordId ($a_record_id) |
Delete all fields by record_id. |
Data Fields | |
const | TYPE_SELECT = 1 |
const | TYPE_TEXT = 2 |
const | TYPE_DATE = 3 |
const | TYPE_DATETIME = 4 |
Protected Member Functions | |
generateImportId () | |
generate unique record id |
Protected Attributes | |
$db = null | |
$record_id | |
$field_id | |
$import_id | |
$position | |
$field_type | |
$field_values = array() | |
$title | |
$description | |
$searchable | |
$required = false |
Private Member Functions | |
read () | |
read field definition | |
getLastPosition () | |
get last position of record |
Static Private Attributes | |
static | $instances = array() |
Definition at line 31 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::__construct | ( | $a_field_id = 0 | ) |
public
Definition at line 59 of file class.ilAdvancedMDFieldDefinition.php.
References read().
|
static |
Delete all fields by record_id.
public
int | record_id |
Definition at line 274 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, ilAdvancedMDValues\_deleteByFieldId(), and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDRecord\_delete().
|
static |
get active definitions by obj type
public
string | obj_type |
Definition at line 225 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDValues\_cloneValues(), ilECSSettingsGUI\exportMappings(), ilECSSettingsGUI\importMappings(), ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilECSSettingsGUI\initMappingsForm().
|
static |
get definitions
public
int | record_id |
Definition at line 201 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, _getInstanceByFieldId(), and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\editRecord(), ilAdvancedMDRecordTableGUI\fillRow(), ilGlossaryAdvMetaDataAdapter\getAllFields(), ilLuceneAdvancedSearchFields\getFields(), ilAdvancedMetaDataExporter\getXmlRepresentation(), ilAdvancedMDRecordGUI\parseEditor(), ilAdvancedMDRecordGUI\parseFilter(), ilAdvancedMDRecordGUI\parseInfoPage(), ilAdvancedMDRecordGUI\parseSearch(), ilAdvancedMDRecordGUI\parseTableCells(), ilAdvancedMDRecordGUI\parseTableHead(), and ilAdvancedMDRecord\toXML().
|
static |
Get instance by field_id.
public
Definition at line 182 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by _getDefinitionsByRecordId(), ilAdvancedMDSettingsGUI\addValue(), ilAdvancedMDSettingsGUI\confirmDeleteFields(), ilAdvancedMDSettingsGUI\createField(), ilAdvancedMDSettingsGUI\deleteFields(), ilAdvancedMDSettingsGUI\editField(), ilLuceneAdvancedSearchFields\getFormElement(), ilAdvancedMDSettingsGUI\initFormSubstitutions(), ilAdvancedMDRecordGUI\loadFromPost(), ilLuceneAdvancedSearchFields\parseFieldQuery(), ilECSSettingsGUI\prepareFieldSelection(), ilLuceneAdvancedSearchFields\readSections(), ilAdvancedMDSettingsGUI\saveField(), ilAdvancedSearchGUI\searchAdvancedMD(), ilAdvancedMDSettingsGUI\updateField(), and ilAdvancedMDSettingsGUI\updateFields().
|
static |
Get searchable definition ids.
public
Definition at line 249 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedSearchGUI\setSubTabs().
|
static |
Lookup date fields.
public
Definition at line 158 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSubstitution\read().
|
static |
Lookup datetime fields.
public
Definition at line 135 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
|
static |
Lookup field id.
public
string | import_id |
Definition at line 96 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, and DB_FETCHMODE_ASSOC.
Referenced by ilAdvancedMDParser\initValue(), and ilAdvancedMDValueParser\initValue().
|
static |
Lookup field type.
public
int | field_id |
Definition at line 115 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, and DB_FETCHMODE_ASSOC.
Referenced by ilRemoteObjectBase\importMetadataFromJson(), and ilAdvancedMDValues\queryForRecords().
|
static |
Lookup import id.
public
int | field_id |
Definition at line 77 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, and DB_FETCHMODE_ASSOC.
Referenced by ilAdvancedMDValue\appendXML(), and ilAdvancedMetaDataExporter\getXmlRepresentation().
ilAdvancedMDFieldDefinition::add | ( | ) |
add new field
public
Definition at line 587 of file class.ilAdvancedMDFieldDefinition.php.
References $position, $query, $res, generateImportId(), getDescription(), getFieldType(), getFieldValues(), getImportId(), getLastPosition(), getRecordId(), getTitle(), isRequired(), and isSearchable().
ilAdvancedMDFieldDefinition::appendFieldValue | ( | $a_value | ) |
Append field value.
public
string | value |
Definition at line 430 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::delete | ( | ) |
delete field
public
Definition at line 568 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, ilAdvancedMDValues\_deleteByFieldId(), and getFieldId().
ilAdvancedMDFieldDefinition::enableSearchable | ( | $a_status | ) |
enable searchable
public
bool | searchable |
Definition at line 536 of file class.ilAdvancedMDFieldDefinition.php.
|
protected |
generate unique record id
protected
Definition at line 773 of file class.ilAdvancedMDFieldDefinition.php.
References getFieldId().
Referenced by add(), and toXML().
ilAdvancedMDFieldDefinition::getDescription | ( | ) |
get description
public
Definition at line 524 of file class.ilAdvancedMDFieldDefinition.php.
References $description.
Referenced by add(), toXML(), and update().
ilAdvancedMDFieldDefinition::getFieldId | ( | ) |
get field_id
public
Definition at line 336 of file class.ilAdvancedMDFieldDefinition.php.
References $field_id.
Referenced by delete(), generateImportId(), read(), and update().
ilAdvancedMDFieldDefinition::getFieldType | ( | ) |
get field type
public
Definition at line 406 of file class.ilAdvancedMDFieldDefinition.php.
References $field_type.
Referenced by add(), toXML(), update(), and validate().
ilAdvancedMDFieldDefinition::getFieldValues | ( | ) |
get field values
public
Definition at line 444 of file class.ilAdvancedMDFieldDefinition.php.
References $field_values.
Referenced by add(), toXML(), and update().
ilAdvancedMDFieldDefinition::getFieldValuesForSearch | ( | ) |
get field values for select
public
Definition at line 473 of file class.ilAdvancedMDFieldDefinition.php.
References $lng.
ilAdvancedMDFieldDefinition::getFieldValuesForSelect | ( | ) |
get field values for select
public
Definition at line 455 of file class.ilAdvancedMDFieldDefinition.php.
References $lng.
ilAdvancedMDFieldDefinition::getImportId | ( | ) |
get import_id
public
Definition at line 359 of file class.ilAdvancedMDFieldDefinition.php.
References $import_id.
Referenced by add(), and update().
|
private |
get last position of record
private
Definition at line 755 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, and getRecordId().
Referenced by add().
ilAdvancedMDFieldDefinition::getPosition | ( | ) |
get position
public
Definition at line 383 of file class.ilAdvancedMDFieldDefinition.php.
References $position.
Referenced by toXML(), and update().
ilAdvancedMDFieldDefinition::getRecordId | ( | ) |
get record id
public
Definition at line 324 of file class.ilAdvancedMDFieldDefinition.php.
References $record_id.
Referenced by add(), getLastPosition(), and update().
ilAdvancedMDFieldDefinition::getTitle | ( | ) |
get title
public
Definition at line 502 of file class.ilAdvancedMDFieldDefinition.php.
References $title.
Referenced by add(), toXML(), update(), and validate().
ilAdvancedMDFieldDefinition::isDeleted | ( | ) |
is deleted
public
Definition at line 301 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::isRequired | ( | ) |
is required field
public
Definition at line 558 of file class.ilAdvancedMDFieldDefinition.php.
References $required.
Referenced by add(), and update().
ilAdvancedMDFieldDefinition::isSearchable | ( | ) |
is searchable
public
Definition at line 547 of file class.ilAdvancedMDFieldDefinition.php.
References $searchable.
Referenced by add(), toXML(), and update().
|
private |
read field definition
private
Definition at line 724 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, and getFieldId().
Referenced by __construct().
ilAdvancedMDFieldDefinition::setDescription | ( | $a_desc | ) |
set description
public
string | description |
Definition at line 514 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::setFieldType | ( | $a_type_id | ) |
set field type
public
int | field type |
Definition at line 395 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::setFieldValues | ( | $a_values | ) |
set field values
public
array | array(string) valid field values |
Definition at line 418 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::setImportId | ( | $a_id_string | ) |
set import id
public
string | import id |
Definition at line 348 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::setPosition | ( | $a_pos | ) |
set position
public
int | position |
Definition at line 371 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::setRecordId | ( | $a_id | ) |
set record id
public
int | record id |
Definition at line 314 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::setTitle | ( | $a_title | ) |
set title
public
string | title |
Definition at line 492 of file class.ilAdvancedMDFieldDefinition.php.
ilAdvancedMDFieldDefinition::toXML | ( | ilXmlWriter | $writer | ) |
To Xml.
This method writes only the subset Field Use class.ilAdvancedMDRecordXMLWriter to generate a complete xml presentation.
public
object | ilXmlWriter |
Definition at line 675 of file class.ilAdvancedMDFieldDefinition.php.
References generateImportId(), getDescription(), getFieldType(), getFieldValues(), getPosition(), getTitle(), isSearchable(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilAdvancedMDFieldDefinition::update | ( | ) |
update
public
Definition at line 647 of file class.ilAdvancedMDFieldDefinition.php.
References $query, $res, getDescription(), getFieldId(), getFieldType(), getFieldValues(), getImportId(), getPosition(), getRecordId(), getTitle(), isRequired(), and isSearchable().
ilAdvancedMDFieldDefinition::validate | ( | ) |
validate
public
Definition at line 629 of file class.ilAdvancedMDFieldDefinition.php.
References $ilErr, $lng, getFieldType(), and getTitle().
|
protected |
Definition at line 40 of file class.ilAdvancedMDFieldDefinition.php.
|
protected |
Definition at line 49 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getDescription().
|
protected |
Definition at line 43 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getFieldId().
|
protected |
Definition at line 46 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getFieldType().
|
protected |
Definition at line 47 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getFieldValues().
|
protected |
Definition at line 44 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getImportId().
|
staticprivate |
Definition at line 38 of file class.ilAdvancedMDFieldDefinition.php.
|
protected |
Definition at line 45 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by add(), and getPosition().
|
protected |
Definition at line 42 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getRecordId().
|
protected |
Definition at line 51 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by isRequired().
|
protected |
Definition at line 50 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by isSearchable().
|
protected |
Definition at line 48 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by getTitle().
const ilAdvancedMDFieldDefinition::TYPE_DATE = 3 |
Definition at line 35 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilLuceneAdvancedSearchFields\getFormElement(), ilAdvancedMDRecordParser\handlerBeginTag(), ilRemoteObjectBase\importMetadataFromJson(), ilAdvancedMDSettingsGUI\initFieldForm(), ilAdvancedMDRecordGUI\loadFromPost(), ilTermListTableGUI\numericOrdering(), ilPresentationListTableGUI\numericOrdering(), ilAdvancedMDRecordGUI\parseEditor(), ilLuceneAdvancedSearchFields\parseFieldQuery(), ilAdvancedMDRecordGUI\parseFilter(), ilAdvancedMDRecordGUI\parseInfoPage(), ilAdvancedMDRecordGUI\parseSearch(), ilAdvancedMDSearch\performSearch(), ilAdvancedMDValues\queryForRecords(), and ilAdvancedSearchGUI\searchAdvancedMD().
const ilAdvancedMDFieldDefinition::TYPE_DATETIME = 4 |
Definition at line 36 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldTableGUI\fillRow(), ilPresentationListTableGUI\fillRow(), ilTermListTableGUI\fillRow(), ilLuceneAdvancedSearchFields\getFormElement(), ilAdvancedMDRecordParser\handlerBeginTag(), ilRemoteObjectBase\importMetadataFromJson(), ilAdvancedMDSettingsGUI\initFieldForm(), ilAdvancedMDRecordGUI\loadFromPost(), ilAdvancedMDRecordGUI\parseEditor(), ilLuceneAdvancedSearchFields\parseFieldQuery(), ilAdvancedMDRecordGUI\parseFilter(), ilAdvancedMDRecordGUI\parseInfoPage(), ilAdvancedMDRecordGUI\parseSearch(), ilAdvancedMDSearch\performSearch(), ilAdvancedMDValues\queryForRecords(), and ilAdvancedSearchGUI\searchAdvancedMD().
const ilAdvancedMDFieldDefinition::TYPE_SELECT = 1 |
Definition at line 33 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldTableGUI\fillRow(), ilLuceneAdvancedSearchFields\getFormElement(), ilAdvancedMDRecordParser\handlerBeginTag(), ilAdvancedMDSettingsGUI\initFieldForm(), ilAdvancedMDRecordGUI\parseEditor(), ilLuceneAdvancedSearchFields\parseFieldQuery(), ilAdvancedMDRecordGUI\parseFilter(), ilAdvancedMDRecordGUI\parseInfoPage(), ilAdvancedMDRecordGUI\parseSearch(), ilAdvancedMDSearch\performSearch(), ilAdvancedSearchGUI\searchAdvancedMD(), and ilAdvancedMDRecordGUI\showECSStart().
const ilAdvancedMDFieldDefinition::TYPE_TEXT = 2 |
Definition at line 34 of file class.ilAdvancedMDFieldDefinition.php.
Referenced by ilAdvancedMDFieldTableGUI\fillRow(), ilLuceneAdvancedSearchFields\getFormElement(), ilAdvancedMDRecordParser\handlerBeginTag(), ilAdvancedMDSettingsGUI\initFieldForm(), ilAdvancedMDRecordGUI\parseEditor(), ilLuceneAdvancedSearchFields\parseFieldQuery(), ilAdvancedMDRecordGUI\parseFilter(), ilAdvancedMDRecordGUI\parseInfoPage(), ilAdvancedMDRecordGUI\parseSearch(), ilAdvancedMDSearch\performSearch(), and ilAdvancedMDRecordGUI\showECSStart().