|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for ilAdvancedMDRecord: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... | |
| enabledScope () | |
| Is scope enabled. More... | |
| enableScope ($a_stat) | |
| Enable scope restrictions. More... | |
| setScopes (array $a_scopes) | |
| Set scopes. More... | |
| getScopes () | |
| Get scopes. More... | |
| getScopeRefIds () | |
| Get scope gef_ids. More... | |
| save () | |
| save More... | |
| update () | |
| update More... | |
| validate () | |
| Validate settings. More... | |
| setGlobalPosition (int $position) | |
| Set global position. More... | |
| getGlobalPosition () | |
| 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! @access 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_ref_id, $a_sub_type="") |
| Get selected records by object. More... | |
| static | isFilteredByScope ($a_ref_id, array $scopes) |
| Check if a given ref id is not filtered by scope restriction. 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 | |
| $global_position | |
| $import_id | |
| $active | |
| $title | |
| $description | |
| $obj_types = array() | |
| $db = null | |
| $parent_obj | |
| $scope_enabled = false | |
| $scopes = [] | |
Private Member Functions | |
| read () | |
| read record and assiged object types More... | |
Static Private Attributes | |
| static | $instances = array() |
Definition at line 17 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...
@access public
| int | record id |
Definition at line 52 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, getRecordId(), and read().
Here is the call graph for this function:| ilAdvancedMDRecord::__destruct | ( | ) |
Destructor.
@access public
Definition at line 928 of file class.ilAdvancedMDRecord.php.
References getRecordId().
Here is the call graph for this function:| 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 1007 of file class.ilAdvancedMDRecord.php.
References getAssignedObjectTypes(), getDescription(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getParentObject(), getRecordId(), getTitle(), and isActive().
Here is the call graph for this function:
|
static |
Delete record and all related data.
@access public
| int | record id |
Definition at line 438 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, and ilAdvancedMDFieldDefinition\getInstancesByRecordId().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
get activated obj types
@access public
| string | obj types |
Definition at line 211 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $obj_types, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedSearchGUI\__setSearchOptions(), ilAdvancedSearchGUI\initAdvancedMetaDataForm(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
Here is the caller graph for this function:
|
static |
Get activated records by object type.
@access public
| string | obj_type |
Definition at line 290 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $records, $res, $row, _getInstanceByRecordId(), and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilGlossaryExporter\getActiveAdvMDRecords(), ilSessionExporter\getActiveAdvMDRecords(), ilWikiExporter\getActiveAdvMDRecords(), ilOrgUnitType\getAvailableAdvancedMDRecords(), ilStudyProgrammeType\getAvailableAdvancedMDRecords(), ilSoapAdministration\getNIC(), and ilAdvancedMDRecordGUI\parseRecordSelection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get active searchable records.
@access public
Definition at line 90 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $records, $res, $row, _getInstanceByRecordId(), and ilDBConstants\FETCHMODE_OBJECT.
Here is the call graph for this function:
|
static |
Get records by obj_type Note: this returns only records with no sub types! @access public.
Definition at line 258 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $records, $res, $row, _getInstanceByRecordId(), ilECSSetting\ecsConfigured(), ilDBConstants\FETCHMODE_OBJECT, and ilECSUtils\getPossibleRemoteTypes().
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilAdvancedMDSettingsGUI\setSubTabs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get assignable object type.
@access public
Definition at line 164 of file class.ilAdvancedMDRecord.php.
References $DIC, $lng, $text, ilECSSetting\ecsConfigured(), and ilECSUtils\getPossibleRemoteTypes().
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilAdvancedMDRecordTableGUI\fillRow(), ilSoapAdministration\getNIC(), ilAdvancedMDSettingsGUI\initForm(), and ilObjectMetaDataGUI\isAdvMDAvailable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get instance by record id.
@access public
| int | record id |
Definition at line 75 of file class.ilAdvancedMDRecord.php.
Referenced by _getActivatedRecordsByObjectType(), _getActiveSearchableRecords(), _getAllRecordsByObjectType(), _getRecords(), ilAdvancedMDSettingsGUI\confirmDeleteRecords(), ilAdvancedMDSettingsGUI\deleteRecords(), ilAdvancedMDSettingsGUI\exportRecords(), ilAdvancedMDRecordTableGUI\fillRow(), ilAdvancedMDRecordParser\initRecordObject(), ilAdvancedMDSettingsGUI\initRecordObject(), and ilAdvancedMDSettingsGUI\updateRecords().
Here is the caller graph for this function:
|
static |
Get records.
@access public
| array | array of record objects |
Definition at line 236 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $records, $res, $row, _getInstanceByRecordId(), and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedMDValues\_cloneValues(), ilLuceneAdvancedSearchFields\getFields(), and ilAdvancedMDSettingsGUI\getParsedRecordObjects().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get selected records by object.
| string | $a_obj_type | object type |
| string | $a_ref_id | reference id |
| string | $a_sub_type | sub type |
Definition at line 330 of file class.ilAdvancedMDRecord.php.
References $record_id, $records, ilContainer\_lookupContainerSetting(), ilObject\_lookupObjId(), ilObjectServiceSettingsGUI\CUSTOM_METADATA, and getObjRecSelection().
Referenced by ilGlossaryTerm\_copyTerm(), ilWikiFunctionsBlockGUI\fillDataSection(), ilPCAMDPageList\findPages(), ilAdvancedMDRecordGUI\getActiveRecords(), ilObjBookingPool\getAdvancedMDFields(), ilGlossaryAdvMetaDataAdapter\getAllFields(), ilObjectMetaDataGUI\getBlockHTML(), ilAdvancedMDValues\getInstancesForObjectId(), ilObjectMetaDataGUI\getKeyValueList(), ilObjectMetaDataGUI\hasActiveRecords(), ilObjWikiGUI\initSettingsForm(), ilAdvancedMDValues\preloadedRead(), and ilAdvancedMDValues\queryForRecords().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Lookup record Id by import id.
@access public
| string | ilias id |
Definition at line 143 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedMDRecordParser\extractRecordId().
Here is the caller graph for this function:
|
static |
Lookup title.
@access public
| int | record_id |
Definition at line 115 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), ilAdvancedMDRecordGUI\parseInfoPage(), ilECSSettingsGUI\prepareFieldSelection(), and ilLuceneAdvancedSearchFields\readSections().
Here is the caller graph for this function:| ilAdvancedMDRecord::appendAssignedObjectType | ( | $a_obj_type, | |
| $a_sub_type, | |||
$a_optional = false |
|||
| ) |
append assigned object types
@access public
| string | ilias object type |
Definition at line 773 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::delete | ( | ) |
Delete.
@access public
Definition at line 465 of file class.ilAdvancedMDRecord.php.
References _delete(), ilAdvancedMDRecordScope\deleteByRecordI(), and getRecordId().
Here is the call graph for this function:| ilAdvancedMDRecord::enabledScope | ( | ) |
Is scope enabled.
Definition at line 475 of file class.ilAdvancedMDRecord.php.
References $scope_enabled.
| ilAdvancedMDRecord::enableScope | ( | $a_stat | ) |
Enable scope restrictions.
| bool | $a_stat |
Definition at line 484 of file class.ilAdvancedMDRecord.php.
|
protected |
generate unique record id
@access protected
Definition at line 917 of file class.ilAdvancedMDRecord.php.
References getRecordId().
Referenced by save(), and toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAdvancedMDRecord::getAssignedObjectTypes | ( | ) |
Get assigned object types.
@access public
Definition at line 788 of file class.ilAdvancedMDRecord.php.
Referenced by _clone(), isAssignedObjectType(), save(), toXML(), and update().
Here is the caller graph for this function:| ilAdvancedMDRecord::getDescription | ( | ) |
get description
@access public
Definition at line 726 of file class.ilAdvancedMDRecord.php.
References $description.
Referenced by _clone(), save(), toXML(), and update().
Here is the caller graph for this function:| ilAdvancedMDRecord::getGlobalPosition | ( | ) |
Definition at line 645 of file class.ilAdvancedMDRecord.php.
References $global_position.
Referenced by ilAdvancedMDRecordObjectOrderings\compareLocalRecords(), ilAdvancedMDRecordObjectOrderings\compareRecords(), and update().
Here is the caller graph for this function:| ilAdvancedMDRecord::getImportId | ( | ) |
get import id
@access public
Definition at line 749 of file class.ilAdvancedMDRecord.php.
References $import_id.
Referenced by save().
Here is the caller graph for this function:
|
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 978 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, and $r.
Referenced by ilAdvancedMDValues\_cloneValues(), _getSelectedRecordsByObject(), ilGlossaryExporter\getActiveAdvMDRecords(), ilWikiExporter\getActiveAdvMDRecords(), ilAdvancedMDSettingsGUI\getParsedRecordObjects(), getSharedRecords(), and ilAdvancedMDRecordGUI\parseRecordSelection().
Here is the caller graph for this function:| ilAdvancedMDRecord::getParentObject | ( | ) |
Definition at line 815 of file class.ilAdvancedMDRecord.php.
References $parent_obj.
Referenced by _clone(), and save().
Here is the caller graph for this function:| ilAdvancedMDRecord::getRecordId | ( | ) |
Get record id.
@access public
Definition at line 657 of file class.ilAdvancedMDRecord.php.
References $record_id.
Referenced by __construct(), __destruct(), _clone(), ilAdvancedMDRecordObjectOrderings\compareLocalRecords(), delete(), generateImportId(), read(), save(), toXML(), and update().
Here is the caller graph for this function:| ilAdvancedMDRecord::getScopeRefIds | ( | ) |
Get scope gef_ids.
Definition at line 511 of file class.ilAdvancedMDRecord.php.
Referenced by toXML().
Here is the caller graph for this function:| ilAdvancedMDRecord::getScopes | ( | ) |
Get scopes.
Definition at line 502 of file class.ilAdvancedMDRecord.php.
References $scopes.
Referenced by save(), and update().
Here is the caller graph for this function:
|
static |
Get shared records.
| int | $a_obj1_id | |
| int | $a_obj2_id | |
| string | $a_sub_type |
Definition at line 1036 of file class.ilAdvancedMDRecord.php.
References $res, ilObject\_lookupType(), and getObjRecSelection().
Here is the call graph for this function:| ilAdvancedMDRecord::getTitle | ( | ) |
get title
@access public
Definition at line 703 of file class.ilAdvancedMDRecord.php.
References $title.
Referenced by _clone(), save(), toXML(), update(), and validate().
Here is the caller graph for this function:| ilAdvancedMDRecord::isActive | ( | ) |
| ilAdvancedMDRecord::isAssignedObjectType | ( | $a_obj_type, | |
| $a_sub_type | |||
| ) |
Is assigned object type?
return
Definition at line 799 of file class.ilAdvancedMDRecord.php.
References $t, and getAssignedObjectTypes().
Here is the call graph for this function:
|
static |
Check if a given ref id is not filtered by scope restriction.
| type | $a_ref_id | |
| ilAdvancedMDRecordScope[] | $scopes |
Definition at line 404 of file class.ilAdvancedMDRecord.php.
References $GLOBALS, $scopes, $tree, and ilTree\RELATION_PARENT.
Referenced by ilAdvancedMDSettingsGUI\getParsedRecordObjects().
Here is the caller graph for this function:
|
private |
read record and assiged object types
@access private
Definition at line 872 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, getRecordId(), setActive(), setDescription(), setGlobalPosition(), setImportId(), setParentObject(), and setTitle().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAdvancedMDRecord::save | ( | ) |
save
@access public
Definition at line 526 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, $type, generateImportId(), getAssignedObjectTypes(), getDescription(), getImportId(), getParentObject(), getRecordId(), getScopes(), getTitle(), and isActive().
Here is the call graph for this function:
|
static |
Save repository object record selection.
| int | $a_obj_id | object id if repository object |
| string | $a_sub_type | subtype |
| int[] | $a_records | array of record ids that are selected (in use) by the object |
| bool | $a_delete_before | delete before update |
Definition at line 942 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, and $r.
Referenced by ilAdvancedMDValues\_cloneValues(), ilAdvancedMetaDataImporter\importXmlRepresentation(), ilAdvancedMDRecordGUI\saveSelection(), ilObjOrgUnit\update(), ilObjStudyProgramme\update(), and ilAdvancedMDSettingsGUI\updateRecords().
Here is the caller graph for this function:| ilAdvancedMDRecord::setActive | ( | $a_active | ) |
Set active.
@access public
Definition at line 669 of file class.ilAdvancedMDRecord.php.
Referenced by read().
Here is the caller graph for this function:| ilAdvancedMDRecord::setAssignedObjectTypes | ( | $a_obj_types | ) |
Set assigned object types.
@access public
| array | array(string) array of object types. E.g array('crs','crsl') |
Definition at line 761 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::setDescription | ( | $a_description | ) |
set description
@access public
| string | description |
Definition at line 715 of file class.ilAdvancedMDRecord.php.
Referenced by read().
Here is the caller graph for this function:| ilAdvancedMDRecord::setGlobalPosition | ( | int | $position | ) |
Set global position.
| int | $position |
Definition at line 637 of file class.ilAdvancedMDRecord.php.
Referenced by ilAdvancedMDRecordObjectOrderings\compareRecords(), and read().
Here is the caller graph for this function:| ilAdvancedMDRecord::setImportId | ( | $a_id_string | ) |
set import id
@access public
| string | import id |
Definition at line 738 of file class.ilAdvancedMDRecord.php.
Referenced by read().
Here is the caller graph for this function:| ilAdvancedMDRecord::setParentObject | ( | $a_obj_id | ) |
Definition at line 810 of file class.ilAdvancedMDRecord.php.
Referenced by read().
Here is the caller graph for this function:| ilAdvancedMDRecord::setScopes | ( | array | $a_scopes | ) |
Set scopes.
| array | $a_scopes |
Definition at line 493 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::setTitle | ( | $a_title | ) |
Set title.
@access public
| string | title |
Definition at line 692 of file class.ilAdvancedMDRecord.php.
Referenced by read().
Here is the caller graph for this function:| 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.
@access public
| object | ilXmlWriter |
Definition at line 829 of file class.ilAdvancedMDRecord.php.
References $type, ilObject\_lookupObjId(), ilObject\_lookupType(), generateImportId(), getAssignedObjectTypes(), getDescription(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getRecordId(), getScopeRefIds(), getTitle(), isActive(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:| ilAdvancedMDRecord::update | ( | ) |
update
@access public
Definition at line 582 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, $type, ilAdvancedMDRecordScope\deleteByRecordI(), getAssignedObjectTypes(), getDescription(), getGlobalPosition(), getRecordId(), getScopes(), getTitle(), and isActive().
Here is the call graph for this function:| ilAdvancedMDRecord::validate | ( | ) |
Validate settings.
@access public
Definition at line 625 of file class.ilAdvancedMDRecord.php.
References getTitle().
Here is the call graph for this function:
|
protected |
Definition at line 29 of file class.ilAdvancedMDRecord.php.
Referenced by isActive().
|
protected |
Definition at line 33 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 31 of file class.ilAdvancedMDRecord.php.
Referenced by getDescription().
|
protected |
Definition at line 26 of file class.ilAdvancedMDRecord.php.
Referenced by getGlobalPosition().
|
protected |
Definition at line 28 of file class.ilAdvancedMDRecord.php.
Referenced by getImportId().
|
staticprivate |
Definition at line 19 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 32 of file class.ilAdvancedMDRecord.php.
Referenced by _getActivatedObjTypes().
|
protected |
Definition at line 34 of file class.ilAdvancedMDRecord.php.
Referenced by getParentObject().
|
protected |
Definition at line 21 of file class.ilAdvancedMDRecord.php.
Referenced by _getSelectedRecordsByObject(), and getRecordId().
|
protected |
Definition at line 35 of file class.ilAdvancedMDRecord.php.
Referenced by enabledScope().
|
protected |
Definition at line 40 of file class.ilAdvancedMDRecord.php.
Referenced by getScopes(), and isFilteredByScope().
|
protected |
Definition at line 30 of file class.ilAdvancedMDRecord.php.
Referenced by getTitle().