|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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... | |
| 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! @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_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...
@access public
| int | record id |
Definition at line 37 of file class.ilAdvancedMDRecord.php.
References $ilDB, getRecordId(), and read().
Here is the call graph for this function:| ilAdvancedMDRecord::__destruct | ( | ) |
Destructor.
@access public
Definition at line 779 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 857 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 388 of file class.ilAdvancedMDRecord.php.
References $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 184 of file class.ilAdvancedMDRecord.php.
References $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 251 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $records, $res, $row, _getInstanceByRecordId(), and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), 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 74 of file class.ilAdvancedMDRecord.php.
References $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 228 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $records, $res, $row, _getInstanceByRecordId(), and ilDBConstants\FETCHMODE_OBJECT.
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 145 of file class.ilAdvancedMDRecord.php.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilAdvancedMDRecordTableGUI\fillRow(), ilSoapAdministration\getNIC(), ilAdvancedMDSettingsGUI\initForm(), and ilObjectMetaDataGUI\isAdvMDAvailable().
Here is the caller graph for this function:
|
static |
Get instance by record id.
@access public
| int | record id |
Definition at line 58 of file class.ilAdvancedMDRecord.php.
Referenced by _getActivatedRecordsByObjectType(), _getActiveSearchableRecords(), _getAllRecordsByObjectType(), _getRecords(), ilAdvancedMDSettingsGUI\confirmDeleteRecords(), ilAdvancedMDSettingsGUI\deleteRecords(), ilAdvancedMDSettingsGUI\exportRecords(), 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 207 of file class.ilAdvancedMDRecord.php.
References $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_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(), ilObjectServiceSettingsGUI\CUSTOM_METADATA, and getObjRecSelection().
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().
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 125 of file class.ilAdvancedMDRecord.php.
References $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 98 of file class.ilAdvancedMDRecord.php.
References $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 641 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::delete | ( | ) |
Delete.
@access public
Definition at line 414 of file class.ilAdvancedMDRecord.php.
References _delete(), and getRecordId().
Here is the call graph for this function:
|
protected |
generate unique record id
@access protected
Definition at line 768 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 656 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 594 of file class.ilAdvancedMDRecord.php.
References $description.
Referenced by _clone(), save(), toXML(), and update().
Here is the caller graph for this function:| ilAdvancedMDRecord::getImportId | ( | ) |
get import id
@access public
Definition at line 617 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 829 of file class.ilAdvancedMDRecord.php.
Referenced by ilAdvancedMDValues\_cloneValues(), _getSelectedRecordsByObject(), ilWikiExporter\getActiveAdvMDRecords(), ilAdvancedMDSettingsGUI\getParsedRecordObjects(), getSharedRecords(), and ilAdvancedMDRecordGUI\parseRecordSelection().
Here is the caller graph for this function:| ilAdvancedMDRecord::getParentObject | ( | ) |
Definition at line 685 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 525 of file class.ilAdvancedMDRecord.php.
References $record_id.
Referenced by __construct(), __destruct(), _clone(), delete(), generateImportId(), read(), save(), toXML(), 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 887 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 571 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 667 of file class.ilAdvancedMDRecord.php.
References $t, and getAssignedObjectTypes().
Here is the call graph for this function:
|
private |
read record and assiged object types
@access private
Definition at line 734 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, getRecordId(), setActive(), setDescription(), 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 425 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, generateImportId(), getAssignedObjectTypes(), getDescription(), getImportId(), getParentObject(), getRecordId(), getTitle(), and isActive().
Here is the call graph for this function:
|
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(), 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 537 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 629 of file class.ilAdvancedMDRecord.php.
| ilAdvancedMDRecord::setDescription | ( | $a_description | ) |
set description
@access public
| string | description |
Definition at line 583 of file class.ilAdvancedMDRecord.php.
Referenced by 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 606 of file class.ilAdvancedMDRecord.php.
Referenced by read().
Here is the caller graph for this function:| ilAdvancedMDRecord::setParentObject | ( | $a_obj_id | ) |
Definition at line 680 of file class.ilAdvancedMDRecord.php.
Referenced by read().
Here is the caller graph for this function:| ilAdvancedMDRecord::setTitle | ( | $a_title | ) |
Set title.
@access public
| string | title |
Definition at line 560 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 699 of file class.ilAdvancedMDRecord.php.
References generateImportId(), getAssignedObjectTypes(), getDescription(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getRecordId(), 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 474 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, getAssignedObjectTypes(), getDescription(), getRecordId(), getTitle(), and isActive().
Here is the call graph for this function:| ilAdvancedMDRecord::validate | ( | ) |
Validate settings.
@access public
Definition at line 510 of file class.ilAdvancedMDRecord.php.
References getTitle().
Here is the call graph for this function:
|
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().