|
ILIAS
release_8 Revision v8.24
|
Collaboration diagram for ilAdvancedMDRecord:Public Member Functions | |
| __construct (int $a_record_id=0) | |
| Singleton constructor To create an array of new records (without saving them) call the constructor directly. More... | |
| setDefaultLanguage (string $language_code) | |
| getDefaultLanguage () | |
| delete () | |
| enabledScope () | |
| enableScope (bool $a_stat) | |
| setScopes (array $a_scopes) | |
| getScopes () | |
| Get scopes. More... | |
| getScopeRefIds () | |
| save () | |
| update () | |
| validate () | |
| setGlobalPosition (int $position) | |
| getGlobalPosition () | |
| getRecordId () | |
| setActive (bool $a_active) | |
| isActive () | |
| setTitle (string $a_title) | |
| getTitle () | |
| setDescription (string $a_description) | |
| getDescription () | |
| setImportId (string $a_id_string) | |
| getImportId () | |
| setAssignedObjectTypes (array $a_obj_types) | |
| appendAssignedObjectType (string $a_obj_type, string $a_sub_type, bool $a_optional=false) | |
| getAssignedObjectTypes () | |
| isAssignedObjectType (string $a_obj_type, string $a_sub_type) | |
| setParentObject (int $a_obj_id) | |
| getParentObject () | |
| toXML (ilXmlWriter $writer) | |
| To Xml. More... | |
| __destruct () | |
| _clone (array &$a_fields_map, int $a_parent_obj_id=null) | |
Static Public Member Functions | |
| static | _getInstanceByRecordId (int $a_record_id) |
| static | _getActiveSearchableRecords () |
| Get active searchable records. More... | |
| static | _lookupTitle (int $a_record_id) |
| static | _lookupRecordIdByImportId (string $a_ilias_id) |
| static | _getAssignableObjectTypes (bool $a_include_text=false) |
| Get assignable object type @access public. More... | |
| static | _getActivatedObjTypes () |
| get activated obj types More... | |
| static | _getRecords () |
| Get records @access public. More... | |
| static | _getAllRecordsByObjectType () |
| Get records by obj_type Note: this returns only records with no sub types! More... | |
| static | _getActivatedRecordsByObjectType (string $a_obj_type, string $a_sub_type="", bool $a_only_optional=false) |
| Get activated records by object type. More... | |
| static | _getSelectedRecordsByObject (string $a_obj_type, int $a_id, string $a_sub_type="", bool $is_ref_id=true) |
| 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) |
| static | saveObjRecSelection (int $a_obj_id, string $a_sub_type="", array $a_records=null, bool $a_delete_before=true) |
| Save repository object record selection. More... | |
| static | deleteObjRecSelection (int $a_obj_id) |
| Delete repository object record selection. More... | |
| static | getObjRecSelection (int $a_obj_id, string $a_sub_type="") |
| Get repository object record selection. More... | |
| static | getSharedRecords (int $a_obj1_id, int $a_obj2_id, string $a_sub_type="-") |
Protected Member Functions | |
| setRecordId (int $record_id) | |
| generateImportId () | |
| generate unique record id More... | |
Protected Attributes | |
| int | $record_id |
| int | $global_position = 0 |
| string | $import_id = '' |
| bool | $active = false |
| string | $title = '' |
| string | $description = '' |
| string | $language_default = '' |
| array | $obj_types = array() |
| int | $parent_obj = 0 |
| bool | $scope_enabled = false |
| array | $scopes = [] |
| ilDBInterface | $db |
Private Member Functions | |
| read () | |
Static Private Attributes | |
| static | $instances = [] |
Definition at line 12 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::__construct | ( | int | $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 45 of file class.ilAdvancedMDRecord.php.
References $DIC, getRecordId(), and read().
Here is the call graph for this function:| ilAdvancedMDRecord::__destruct | ( | ) |
Definition at line 746 of file class.ilAdvancedMDRecord.php.
References ILIAS\LTI\ToolProvider\getRecordId().
Here is the call graph for this function:| ilAdvancedMDRecord::_clone | ( | array & | $a_fields_map, |
| int | $a_parent_obj_id = null |
||
| ) |
Definition at line 834 of file class.ilAdvancedMDRecord.php.
References ilAdvancedMDRecordTranslations\getInstanceByRecordId(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), ILIAS\LTI\ToolProvider\getRecordId(), and setActive().
Here is the call graph for this function:
|
static |
Definition at line 379 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
Definition at line 170 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $obj_types, $query, $res, 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.
Definition at line 240 of file class.ilAdvancedMDRecord.php.
Referenced by ilExerciseExporter\getActiveAdvMDRecords(), ilGlossaryExporter\getActiveAdvMDRecords(), ilSessionExporter\getActiveAdvMDRecords(), ilWikiExporter\getActiveAdvMDRecords(), ilStudyProgrammeTypeDBRepository\getAllAMDRecords(), ilOrgUnitType\getAvailableAdvancedMDRecords(), ilContainerFilterAdvMDAdapter\getAvailableRecordSets(), and ilAdvancedMDRecordGUI\parseRecordSelection().
Here is the caller graph for this function:
|
static |
Get active searchable records.
Definition at line 69 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, _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!
Definition at line 214 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, 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 127 of file class.ilAdvancedMDRecord.php.
References $DIC, $lng, ilECSSetting\ecsConfigured(), and ilECSUtils\getPossibleRemoteTypes().
Referenced by ilAdvancedMDRecordTableGUI\fillRow(), ilAdvancedMDSettingsGUI\initForm(), ilObjectMetaDataGUI\isAdvMDAvailable(), and ilAdvancedMDSettingsGUI\loadRecordFormData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 57 of file class.ilAdvancedMDRecord.php.
Referenced by _getActiveSearchableRecords(), _getRecords(), ilAdvancedMDSettingsGUI\confirmDeleteRecords(), ilAdvancedMDSettingsGUI\deleteRecords(), ilAdvancedMDSettingsGUI\exportRecords(), ilAdvancedMDRecordTableGUI\fillRow(), ilContainerFilterUtil\getContainerRecordTitle(), ilAdvancedMDFieldDefinitionSelect\import(), ilAdvancedMDFieldDefinitionText\importValueFromXML(), ilAdvancedMDSettingsGUI\initRecordObject(), ilAdvancedMDRecordParser\initRecordObject(), ilAdvancedMDFieldTranslations\read(), ilAdvancedMDRecordTranslations\read(), ilAdvancedMDFieldDefinitionSelect\saveOptionTranslations(), ilAdvancedMDSettingsGUI\updateRecords(), ilAdvancedMDFieldDefinition\useDefaultLanguageMode(), and ilAdvancedMDRecordXMLWriter\write().
Here is the caller graph for this function:
|
static |
Get records @access public.
| array | array of record objects |
Definition at line 194 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, _getInstanceByRecordId(), and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLuceneAdvancedSearchFields\getFields(), and ilAdvancedMDSettingsGUI\getParsedRecordObjects().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| string | $a_obj_type | |
| int | $a_id | |
| string | $a_sub_type | |
| bool | $is_ref_id |
Definition at line 281 of file class.ilAdvancedMDRecord.php.
Referenced by ilObjEmployeeTalkSeriesGUI\copyTemplateValues(), ilAdvancedMDRecordGUI\getActiveRecords(), ilPCAMDFormGUI\getAdvRecords(), ilGlossaryAdvMetaDataAdapter\getAllFields(), ilObjectMetaDataGUI\getBlockHTML(), ilObjectMetaDataGUI\getKeyValueList(), ilWikiFunctionsBlockGUI\getLegacyContent(), ilObjectMetaDataGUI\hasActiveRecords(), ilObjWikiGUI\initSettingsForm(), and ilAdvancedMDValues\preloadedRead().
Here is the caller graph for this function:
|
static |
Definition at line 107 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedMDRecordParser\extractRecordId().
Here is the caller graph for this function:
|
static |
Definition at line 87 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilECSSettingsGUI\prepareFieldSelection().
Here is the caller graph for this function:| ilAdvancedMDRecord::appendAssignedObjectType | ( | string | $a_obj_type, |
| string | $a_sub_type, | ||
| bool | $a_optional = false |
||
| ) |
Definition at line 621 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::delete | ( | ) |
Definition at line 417 of file class.ilAdvancedMDRecord.php.
References _delete(), ilAdvancedMDRecordScope\deleteByRecordId(), and ILIAS\LTI\ToolProvider\getRecordId().
Here is the call graph for this function:
|
static |
Delete repository object record selection.
Definition at line 796 of file class.ilAdvancedMDRecord.php.
Referenced by ilAdvancedMDSettingsGUI\updateRecords().
Here is the caller graph for this function:| ilAdvancedMDRecord::enabledScope | ( | ) |
Definition at line 423 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::enableScope | ( | bool | $a_stat | ) |
Definition at line 428 of file class.ilAdvancedMDRecord.php.
|
protected |
generate unique record id
Definition at line 741 of file class.ilAdvancedMDRecord.php.
References ILIAS\LTI\ToolProvider\getRecordId(), and IL_INST_ID.
Here is the call graph for this function:| ilAdvancedMDRecord::getAssignedObjectTypes | ( | ) |
Definition at line 633 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::getDefaultLanguage | ( | ) |
Definition at line 412 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::getDescription | ( | ) |
Definition at line 597 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::getGlobalPosition | ( | ) |
Definition at line 562 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::getImportId | ( | ) |
Definition at line 607 of file class.ilAdvancedMDRecord.php.
|
static |
Get repository object record selection.
| int | $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 812 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, and ILIAS\Repository\int().
Referenced by ilObjEmployeeTalkSeriesGUI\copyTemplateValues(), ilGlossaryExporter\getActiveAdvMDRecords(), ilWikiExporter\getActiveAdvMDRecords(), ilAdvancedMDSettingsGUI\getParsedRecordObjects(), getSharedRecords(), and ilAdvancedMDRecordGUI\parseRecordSelection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAdvancedMDRecord::getParentObject | ( | ) |
Definition at line 654 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::getRecordId | ( | ) |
Definition at line 567 of file class.ilAdvancedMDRecord.php.
Referenced by __construct().
Here is the caller graph for this function:| ilAdvancedMDRecord::getScopeRefIds | ( | ) |
Definition at line 453 of file class.ilAdvancedMDRecord.php.
References $scope.
| ilAdvancedMDRecord::getScopes | ( | ) |
Get scopes.
Definition at line 445 of file class.ilAdvancedMDRecord.php.
References $scopes.
|
static |
Definition at line 857 of file class.ilAdvancedMDRecord.php.
References $res, ilObject\_lookupType(), and getObjRecSelection().
Here is the call graph for this function:| ilAdvancedMDRecord::getTitle | ( | ) |
Definition at line 587 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::isActive | ( | ) |
Definition at line 577 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::isAssignedObjectType | ( | string | $a_obj_type, |
| string | $a_sub_type | ||
| ) |
Definition at line 638 of file class.ilAdvancedMDRecord.php.
|
static |
Check if a given ref id is not filtered by scope restriction.
| int | $a_ref_id | |
| ilAdvancedMDRecordScope[] | $scopes |
Definition at line 355 of file class.ilAdvancedMDRecord.php.
References $GLOBALS, $scope, $scopes, and ilTree\RELATION_PARENT.
Referenced by ilAdvancedMDSettingsGUI\getParsedRecordObjects().
Here is the caller graph for this function:
|
private |
Definition at line 702 of file class.ilAdvancedMDRecord.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, ILIAS\LTI\ToolProvider\getRecordId(), and ilDBConstants\T_INTEGER.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAdvancedMDRecord::save | ( | ) |
Definition at line 462 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, $scope, $type, ILIAS\LTI\ToolProvider\getRecordId(), and ilDBConstants\T_TEXT.
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 759 of file class.ilAdvancedMDRecord.php.
Referenced by ilObjEmployeeTalkSeriesGUI\copyTemplateValues(), ilAdvancedMetaDataImporter\importXmlRepresentation(), ilAdvancedMDRecordGUI\saveSelection(), ilObjOrgUnit\update(), ilObjStudyProgramme\update(), and ilAdvancedMDSettingsGUI\updateRecords().
Here is the caller graph for this function:| ilAdvancedMDRecord::setActive | ( | bool | $a_active | ) |
Definition at line 572 of file class.ilAdvancedMDRecord.php.
Referenced by _clone().
Here is the caller graph for this function:| ilAdvancedMDRecord::setAssignedObjectTypes | ( | array | $a_obj_types | ) |
| string[] |
Definition at line 616 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::setDefaultLanguage | ( | string | $language_code | ) |
| string | $language_code |
Definition at line 407 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::setDescription | ( | string | $a_description | ) |
Definition at line 592 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::setGlobalPosition | ( | int | $position | ) |
Definition at line 557 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::setImportId | ( | string | $a_id_string | ) |
Definition at line 602 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::setParentObject | ( | int | $a_obj_id | ) |
Definition at line 649 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 399 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::setScopes | ( | array | $a_scopes | ) |
| ilAdvancedMDRecordScope[] |
Definition at line 436 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::setTitle | ( | string | $a_title | ) |
Definition at line 582 of file class.ilAdvancedMDRecord.php.
| 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.
Definition at line 664 of file class.ilAdvancedMDRecord.php.
References $ref_id, $type, ilObject\_lookupObjId(), ilObject\_lookupType(), ilAdvancedMDRecordTranslations\getInstanceByRecordId(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), ILIAS\LTI\ToolProvider\getRecordId(), IL_INST_ID, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:| ilAdvancedMDRecord::update | ( | ) |
Definition at line 511 of file class.ilAdvancedMDRecord.php.
References $DIC, $ilDB, $query, $res, $scope, $type, ilAdvancedMDRecordScope\deleteByRecordId(), ILIAS\LTI\ToolProvider\getRecordId(), and ilDBConstants\T_TEXT.
Here is the call graph for this function:| ilAdvancedMDRecord::validate | ( | ) |
Definition at line 549 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 20 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 36 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 22 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 17 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 19 of file class.ilAdvancedMDRecord.php.
|
staticprivate |
Definition at line 14 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 23 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 28 of file class.ilAdvancedMDRecord.php.
Referenced by _getActivatedObjTypes().
|
protected |
Definition at line 29 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 16 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 30 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 34 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 21 of file class.ilAdvancedMDRecord.php.