ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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... | |
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_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 | |
$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...
public
int | record id |
Definition at line 46 of file class.ilAdvancedMDRecord.php.
References $ilDB, getRecordId(), and read().
ilAdvancedMDRecord::__destruct | ( | ) |
Destructor.
public
Definition at line 852 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 924 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 392 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 250 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $records, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilSessionExporter\getActiveAdvMDRecords(), ilWikiExporter\getActiveAdvMDRecords(), ilGlossaryExporter\getActiveAdvMDRecords(), ilStudyProgrammeType\getAvailableAdvancedMDRecords(), ilOrgUnitType\getAvailableAdvancedMDRecords(), ilSoapAdministration\getNIC(), and ilAdvancedMDRecordGUI\parseRecordSelection().
|
static |
Get active searchable records.
public
Definition at line 82 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 227 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 150 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 67 of file class.ilAdvancedMDRecord.php.
Referenced by _getRecords(), ilAdvancedMDSettingsGUI\confirmDeleteRecords(), ilAdvancedMDSettingsGUI\deleteRecords(), ilAdvancedMDSettingsGUI\exportRecords(), ilAdvancedMDRecordTableGUI\fillRow(), 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_ref_id | reference id |
string | $a_sub_type | sub type |
Definition at line 288 of file class.ilAdvancedMDRecord.php.
References $record_id, $records, ilContainer\_lookupContainerSetting(), ilObject\_lookupObjId(), array, and ilObjectServiceSettingsGUI\CUSTOM_METADATA.
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().
|
static |
Lookup record Id by import id.
public
string | ilias id |
Definition at line 131 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 105 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 700 of file class.ilAdvancedMDRecord.php.
References array.
ilAdvancedMDRecord::delete | ( | ) |
Delete.
public
Definition at line 417 of file class.ilAdvancedMDRecord.php.
References _delete(), ilAdvancedMDRecordScope\deleteByRecordI(), and getRecordId().
ilAdvancedMDRecord::enabledScope | ( | ) |
Is scope enabled.
Definition at line 427 of file class.ilAdvancedMDRecord.php.
References $scope_enabled.
ilAdvancedMDRecord::enableScope | ( | $a_stat | ) |
Enable scope restrictions.
bool | $a_stat |
Definition at line 436 of file class.ilAdvancedMDRecord.php.
|
protected |
generate unique record id
protected
Definition at line 841 of file class.ilAdvancedMDRecord.php.
References getRecordId().
Referenced by save(), and toXML().
ilAdvancedMDRecord::getAssignedObjectTypes | ( | ) |
Get assigned object types.
public
Definition at line 715 of file class.ilAdvancedMDRecord.php.
References array.
Referenced by _clone(), isAssignedObjectType(), save(), toXML(), and update().
ilAdvancedMDRecord::getDescription | ( | ) |
get description
public
Definition at line 653 of file class.ilAdvancedMDRecord.php.
References $description.
Referenced by _clone(), save(), toXML(), and update().
ilAdvancedMDRecord::getImportId | ( | ) |
get import id
public
Definition at line 676 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 897 of file class.ilAdvancedMDRecord.php.
References $ilDB, $r, and array.
Referenced by ilAdvancedMDValues\_cloneValues(), ilWikiExporter\getActiveAdvMDRecords(), ilGlossaryExporter\getActiveAdvMDRecords(), ilAdvancedMDSettingsGUI\getParsedRecordObjects(), getSharedRecords(), and ilAdvancedMDRecordGUI\parseRecordSelection().
ilAdvancedMDRecord::getParentObject | ( | ) |
Definition at line 742 of file class.ilAdvancedMDRecord.php.
References $parent_obj.
Referenced by _clone(), and save().
ilAdvancedMDRecord::getRecordId | ( | ) |
Get record id.
public
Definition at line 584 of file class.ilAdvancedMDRecord.php.
References $record_id.
Referenced by __construct(), __destruct(), _clone(), delete(), generateImportId(), read(), save(), toXML(), and update().
ilAdvancedMDRecord::getScopeRefIds | ( | ) |
Get scope gef_ids.
Definition at line 463 of file class.ilAdvancedMDRecord.php.
Referenced by toXML().
ilAdvancedMDRecord::getScopes | ( | ) |
Get scopes.
Definition at line 454 of file class.ilAdvancedMDRecord.php.
References $scopes.
Referenced by save(), and update().
|
static |
Get shared records.
int | $a_obj1_id | |
int | $a_obj2_id | |
string | $a_sub_type |
Definition at line 953 of file class.ilAdvancedMDRecord.php.
References $res, ilObject\_lookupType(), array, and getObjRecSelection().
ilAdvancedMDRecord::getTitle | ( | ) |
get title
public
Definition at line 630 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 726 of file class.ilAdvancedMDRecord.php.
References $t, and getAssignedObjectTypes().
|
static |
Check if a given ref id is not filtered by scope restriction.
type | $a_ref_id | |
ilAdvancedMDRecordScope[] | $scopes |
Definition at line 358 of file class.ilAdvancedMDRecord.php.
References $GLOBALS, and ilTree\RELATION_PARENT.
Referenced by ilAdvancedMDSettingsGUI\getParsedRecordObjects().
|
private |
read record and assiged object types
private
Definition at line 799 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 478 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, $type, generateImportId(), getAssignedObjectTypes(), getDescription(), getImportId(), getParentObject(), getRecordId(), getScopes(), 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 863 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 596 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 688 of file class.ilAdvancedMDRecord.php.
ilAdvancedMDRecord::setDescription | ( | $a_description | ) |
set description
public
string | description |
Definition at line 642 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setImportId | ( | $a_id_string | ) |
set import id
public
string | import id |
Definition at line 665 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setParentObject | ( | $a_obj_id | ) |
Definition at line 737 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setScopes | ( | array | $a_scopes | ) |
ilAdvancedMDRecord::setTitle | ( | $a_title | ) |
Set title.
public
string | title |
Definition at line 619 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 756 of file class.ilAdvancedMDRecord.php.
References $type, ilObject\_lookupObjId(), ilObject\_lookupType(), array, generateImportId(), getAssignedObjectTypes(), getDescription(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getRecordId(), getScopeRefIds(), getTitle(), isActive(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilAdvancedMDRecord::update | ( | ) |
update
public
Definition at line 530 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, $type, ilAdvancedMDRecordScope\deleteByRecordI(), getAssignedObjectTypes(), getDescription(), getRecordId(), getScopes(), getTitle(), and isActive().
ilAdvancedMDRecord::validate | ( | ) |
Validate settings.
public
Definition at line 570 of file class.ilAdvancedMDRecord.php.
References getTitle().
|
protected |
Definition at line 23 of file class.ilAdvancedMDRecord.php.
Referenced by isActive().
|
protected |
Definition at line 27 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 25 of file class.ilAdvancedMDRecord.php.
Referenced by getDescription().
|
protected |
Definition at line 22 of file class.ilAdvancedMDRecord.php.
Referenced by getImportId().
|
staticprivate |
Definition at line 19 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 26 of file class.ilAdvancedMDRecord.php.
Referenced by _getActivatedObjTypes().
|
protected |
Definition at line 28 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 29 of file class.ilAdvancedMDRecord.php.
Referenced by enabledScope().
|
protected |
Definition at line 34 of file class.ilAdvancedMDRecord.php.
Referenced by getScopes().
|
protected |
Definition at line 24 of file class.ilAdvancedMDRecord.php.
Referenced by getTitle().