ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($a_record_id=0) | |
Singleton constructor To create an array of new records (without saving them) call the constructor directly. More... | |
delete () | |
Delete. More... | |
save () | |
save More... | |
update () | |
update More... | |
validate () | |
Validate settings. More... | |
getRecordId () | |
Get record id. More... | |
setActive ($a_active) | |
Set active. More... | |
isActive () | |
Check if record is active. More... | |
setTitle ($a_title) | |
Set title. More... | |
getTitle () | |
get title More... | |
setDescription ($a_description) | |
set description More... | |
getDescription () | |
get description More... | |
setImportId ($a_id_string) | |
set import id More... | |
getImportId () | |
get import id More... | |
setAssignedObjectTypes ($a_obj_types) | |
Set assigned object types. More... | |
appendAssignedObjectType ($a_obj_type, $a_sub_type, $a_optional=false) | |
append assigned object types More... | |
getAssignedObjectTypes () | |
Get assigned object types. More... | |
isAssignedObjectType ($a_obj_type, $a_sub_type) | |
Is assigned object type? More... | |
setParentObject ($a_obj_id) | |
getParentObject () | |
toXML (ilXmlWriter $writer) | |
To Xml. More... | |
__destruct () | |
Destructor. More... | |
_clone (array &$a_fields_map, $a_parent_obj_id=null) | |
Clone record. More... | |
Static Public Member Functions | |
static | _getInstanceByRecordId ($a_record_id) |
Get instance by record id. More... | |
static | _getActiveSearchableRecords () |
Get active searchable records. More... | |
static | _lookupTitle ($a_record_id) |
Lookup title. More... | |
static | _lookupRecordIdByImportId ($a_ilias_id) |
Lookup record Id by import id. More... | |
static | _getAssignableObjectTypes ($a_include_text=false) |
Get assignable object type. More... | |
static | _getActivatedObjTypes () |
get activated obj types More... | |
static | _getRecords () |
Get records. More... | |
static | _getAllRecordsByObjectType () |
Get records by obj_type Note: this returns only records with no sub types! public. More... | |
static | _getActivatedRecordsByObjectType ($a_obj_type, $a_sub_type="", $a_only_optional=false) |
Get activated records by object type. More... | |
static | _getSelectedRecordsByObject ($a_obj_type, $a_obj_id, $a_sub_type="") |
Get selected records by object. More... | |
static | _delete ($a_record_id) |
Delete record and all related data. More... | |
static | saveObjRecSelection ($a_obj_id, $a_sub_type="", array $a_records=null, $a_delete_before=true) |
Save repository object record selection. More... | |
static | getObjRecSelection ($a_obj_id, $a_sub_type="") |
Get repository object record selection. More... | |
static | getSharedRecords ($a_obj1_id, $a_obj2_id, $a_sub_type="-") |
Get shared records. More... | |
Protected Member Functions | |
generateImportId () | |
generate unique record id More... | |
Protected Attributes | |
$record_id | |
$import_id | |
$active | |
$title | |
$description | |
$obj_types = array() | |
$db = null | |
$parent_obj | |
Private Member Functions | |
read () | |
read record and assiged object types More... | |
Static Private Attributes | |
static | $instances = array() |
Definition at line 15 of file class.ilAdvancedMDRecord.php.
ilAdvancedMDRecord::__construct | ( | $a_record_id = 0 | ) |
Singleton constructor To create an array of new records (without saving them) call the constructor directly.
Otherwise call getInstance...
public
int | record id |
Definition at line 37 of file class.ilAdvancedMDRecord.php.
References $ilDB, getRecordId(), and read().
ilAdvancedMDRecord::__destruct | ( | ) |
Destructor.
public
Definition at line 779 of file class.ilAdvancedMDRecord.php.
References getRecordId().
ilAdvancedMDRecord::_clone | ( | array & | $a_fields_map, |
$a_parent_obj_id = null |
|||
) |
Clone record.
array | &$a_fields_map | |
type | $a_parent_obj_id |
Definition at line 857 of file class.ilAdvancedMDRecord.php.
References getAssignedObjectTypes(), getDescription(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getParentObject(), getRecordId(), getTitle(), and isActive().
|
static |
Delete record and all related data.
public
int | record id |
Definition at line 388 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, and ilAdvancedMDFieldDefinition\getInstancesByRecordId().
Referenced by delete().
|
static |
get activated obj types
public
string | obj types |
Definition at line 184 of file class.ilAdvancedMDRecord.php.
References $ilDB, $obj_types, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedSearchGUI\__setSearchOptions(), ilAdvancedSearchGUI\initAdvancedMetaDataForm(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
|
static |
Get activated records by object type.
public
string | obj_type |
Definition at line 251 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $records, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilWikiExporter\getActiveAdvMDRecords(), ilStudyProgrammeType\getAvailableAdvancedMDRecords(), ilOrgUnitType\getAvailableAdvancedMDRecords(), ilSoapAdministration\getNIC(), and ilAdvancedMDRecordGUI\parseRecordSelection().
|
static |
Get active searchable records.
public
Definition at line 74 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $records, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
|
static |
Get records by obj_type Note: this returns only records with no sub types! public.
Definition at line 228 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $records, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilAdvancedMDSettingsGUI\setSubTabs().
|
static |
Get assignable object type.
public
Definition at line 145 of file class.ilAdvancedMDRecord.php.
References $lng, $text, and array.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilAdvancedMDRecordTableGUI\fillRow(), ilSoapAdministration\getNIC(), ilAdvancedMDSettingsGUI\initForm(), and ilObjectMetaDataGUI\isAdvMDAvailable().
|
static |
Get instance by record id.
public
int | record id |
Definition at line 58 of file class.ilAdvancedMDRecord.php.
Referenced by _getRecords(), ilAdvancedMDSettingsGUI\confirmDeleteRecords(), ilAdvancedMDSettingsGUI\deleteRecords(), ilAdvancedMDSettingsGUI\exportRecords(), ilAdvancedMDRecordParser\initRecordObject(), ilAdvancedMDSettingsGUI\initRecordObject(), and ilAdvancedMDSettingsGUI\updateRecords().
|
static |
Get records.
public
array | array of record objects |
Definition at line 207 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $records, $res, $row, _getInstanceByRecordId(), array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedMDValues\_cloneValues(), ilLuceneAdvancedSearchFields\getFields(), and ilAdvancedMDSettingsGUI\getParsedRecordObjects().
|
static |
Get selected records by object.
string | $a_obj_type | object type |
string | $a_obj_id | object id |
string | $a_sub_type | sub type |
Definition at line 292 of file class.ilAdvancedMDRecord.php.
References $record_id, $records, ilContainer\_lookupContainerSetting(), array, and ilObjectServiceSettingsGUI\CUSTOM_METADATA.
Referenced by ilGlossaryTerm\_copyTerm(), ilWikiFunctionsBlockGUI\fillDataSection(), ilPCAMDPageList\findPages(), ilGlossaryExporter\getActiveAdvMDRecords(), ilAdvancedMDRecordGUI\getActiveRecords(), ilObjBookingPool\getAdvancedMDFields(), ilGlossaryAdvMetaDataAdapter\getAllFields(), ilObjectMetaDataGUI\getBlockHTML(), ilAdvancedMDValues\getInstancesForObjectId(), ilObjectMetaDataGUI\getKeyValueList(), ilObjectMetaDataGUI\hasActiveRecords(), ilObjWikiGUI\initSettingsForm(), ilAdvancedMDValues\preloadedRead(), and ilAdvancedMDValues\queryForRecords().
|
static |
Lookup record Id by import id.
public
string | ilias id |
Definition at line 125 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedMDRecordParser\extractRecordId().
|
static |
Lookup title.
public
int | record_id |
Definition at line 98 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), ilAdvancedMDRecordGUI\parseInfoPage(), ilECSSettingsGUI\prepareFieldSelection(), and ilLuceneAdvancedSearchFields\readSections().
ilAdvancedMDRecord::appendAssignedObjectType | ( | $a_obj_type, | |
$a_sub_type, | |||
$a_optional = false |
|||
) |
append assigned object types
public
string | ilias object type |
Definition at line 641 of file class.ilAdvancedMDRecord.php.
References array.
ilAdvancedMDRecord::delete | ( | ) |
Delete.
public
Definition at line 414 of file class.ilAdvancedMDRecord.php.
References _delete(), and getRecordId().
|
protected |
generate unique record id
protected
Definition at line 768 of file class.ilAdvancedMDRecord.php.
References getRecordId().
Referenced by save(), and toXML().
ilAdvancedMDRecord::getAssignedObjectTypes | ( | ) |
Get assigned object types.
public
Definition at line 656 of file class.ilAdvancedMDRecord.php.
References array.
Referenced by _clone(), isAssignedObjectType(), save(), toXML(), and update().
ilAdvancedMDRecord::getDescription | ( | ) |
get description
public
Definition at line 594 of file class.ilAdvancedMDRecord.php.
References $description.
Referenced by _clone(), save(), toXML(), and update().
ilAdvancedMDRecord::getImportId | ( | ) |
get import id
public
Definition at line 617 of file class.ilAdvancedMDRecord.php.
References $import_id.
Referenced by save().
|
static |
Get repository object record selection.
integer | $a_obj_id | object id if repository object |
array | $a_records | array of record ids that are selected (in use) by the object |
Definition at line 829 of file class.ilAdvancedMDRecord.php.
References $ilDB, $r, and array.
Referenced by ilAdvancedMDValues\_cloneValues(), ilWikiExporter\getActiveAdvMDRecords(), ilAdvancedMDSettingsGUI\getParsedRecordObjects(), getSharedRecords(), and ilAdvancedMDRecordGUI\parseRecordSelection().
ilAdvancedMDRecord::getParentObject | ( | ) |
Definition at line 685 of file class.ilAdvancedMDRecord.php.
References $parent_obj.
Referenced by _clone(), and save().
ilAdvancedMDRecord::getRecordId | ( | ) |
Get record id.
public
Definition at line 525 of file class.ilAdvancedMDRecord.php.
References $record_id.
Referenced by __construct(), __destruct(), _clone(), delete(), generateImportId(), read(), save(), toXML(), and update().
|
static |
Get shared records.
int | $a_obj1_id | |
int | $a_obj2_id | |
string | $a_sub_type |
Definition at line 887 of file class.ilAdvancedMDRecord.php.
References $res, ilObject\_lookupType(), array, and getObjRecSelection().
ilAdvancedMDRecord::getTitle | ( | ) |
get title
public
Definition at line 571 of file class.ilAdvancedMDRecord.php.
References $title.
Referenced by _clone(), save(), toXML(), update(), and validate().
ilAdvancedMDRecord::isActive | ( | ) |
ilAdvancedMDRecord::isAssignedObjectType | ( | $a_obj_type, | |
$a_sub_type | |||
) |
Is assigned object type?
Definition at line 667 of file class.ilAdvancedMDRecord.php.
References $t, and getAssignedObjectTypes().
|
private |
read record and assiged object types
private
Definition at line 734 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, getRecordId(), setActive(), setDescription(), setImportId(), setParentObject(), and setTitle().
Referenced by __construct().
ilAdvancedMDRecord::save | ( | ) |
save
public
Definition at line 425 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, generateImportId(), getAssignedObjectTypes(), getDescription(), getImportId(), getParentObject(), getRecordId(), getTitle(), and isActive().
|
static |
Save repository object record selection.
integer | $a_obj_id | object id if repository object |
array | $a_records | array of record ids that are selected (in use) by the object |
Definition at line 790 of file class.ilAdvancedMDRecord.php.
Referenced by ilAdvancedMDValues\_cloneValues(), ilStudyProgrammeType\getAvailableAdvancedMDRecords(), ilOrgUnitType\getAvailableAdvancedMDRecords(), ilAdvancedMetaDataImporter\importXmlRepresentation(), ilAdvancedMDRecordGUI\saveSelection(), ilObjOrgUnit\update(), ilObjStudyProgramme\update(), and ilAdvancedMDSettingsGUI\updateRecords().
ilAdvancedMDRecord::setActive | ( | $a_active | ) |
Set active.
public
Definition at line 537 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setAssignedObjectTypes | ( | $a_obj_types | ) |
Set assigned object types.
public
array | array(string) array of object types. E.g array('crs','crsl') |
Definition at line 629 of file class.ilAdvancedMDRecord.php.
ilAdvancedMDRecord::setDescription | ( | $a_description | ) |
set description
public
string | description |
Definition at line 583 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setImportId | ( | $a_id_string | ) |
set import id
public
string | import id |
Definition at line 606 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setParentObject | ( | $a_obj_id | ) |
Definition at line 680 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setTitle | ( | $a_title | ) |
Set title.
public
string | title |
Definition at line 560 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::toXML | ( | ilXmlWriter | $writer | ) |
To Xml.
This method writes only the subset Record (including all fields) Use class.ilAdvancedMDRecordXMLWriter to generate a complete xml presentation.
public
object | ilXmlWriter |
Definition at line 699 of file class.ilAdvancedMDRecord.php.
References array, generateImportId(), getAssignedObjectTypes(), getDescription(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getRecordId(), getTitle(), isActive(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilAdvancedMDRecord::update | ( | ) |
update
public
Definition at line 474 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, getAssignedObjectTypes(), getDescription(), getRecordId(), getTitle(), and isActive().
ilAdvancedMDRecord::validate | ( | ) |
Validate settings.
public
Definition at line 510 of file class.ilAdvancedMDRecord.php.
References getTitle().
|
protected |
Definition at line 21 of file class.ilAdvancedMDRecord.php.
Referenced by isActive().
|
protected |
Definition at line 25 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 23 of file class.ilAdvancedMDRecord.php.
Referenced by getDescription().
|
protected |
Definition at line 20 of file class.ilAdvancedMDRecord.php.
Referenced by getImportId().
|
staticprivate |
Definition at line 17 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 24 of file class.ilAdvancedMDRecord.php.
Referenced by _getActivatedObjTypes().
|
protected |
Definition at line 26 of file class.ilAdvancedMDRecord.php.
Referenced by getParentObject().
|
protected |
Definition at line 19 of file class.ilAdvancedMDRecord.php.
Referenced by _getSelectedRecordsByObject(), and getRecordId().
|
protected |
Definition at line 22 of file class.ilAdvancedMDRecord.php.
Referenced by getTitle().