ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_record_id=0) | |
Singleton constructor To create an array of new records (without saving them) call the constructor directly. | |
delete () | |
Delete. | |
save () | |
save | |
update () | |
update | |
validate () | |
Validate settings Write error message to ilErr. | |
getRecordId () | |
Get record id. | |
setActive ($a_active) | |
Set active. | |
isActive () | |
Check if record is active. | |
setTitle ($a_title) | |
Set title. | |
getTitle () | |
get title | |
setDescription ($a_description) | |
set description | |
getDescription () | |
get description | |
setImportId ($a_id_string) | |
set import id | |
getImportId () | |
get import id | |
setAssignedObjectTypes ($a_obj_types) | |
Set assigned object types. | |
appendAssignedObjectType ($a_obj_type, $a_sub_type) | |
append assigned object types | |
getAssignedObjectTypes () | |
Get assigned object types. | |
isAssignedObjectType ($a_obj_type, $a_sub_type) | |
Is assigned object type? | |
toXML (ilXmlWriter $writer) | |
To Xml. | |
__destruct () | |
Destructor. |
Static Public Member Functions | |
static | _getInstanceByRecordId ($a_record_id) |
Get instance by record id. | |
static | _getActiveSearchableRecords () |
Get active searchable records. | |
static | _lookupTitle ($a_record_id) |
Lookup title. | |
static | _lookupRecordIdByImportId ($a_ilias_id) |
Lookup record Id by import id. | |
static | _getAssignableObjectTypes ($a_include_text=false) |
Get assignable object type. | |
static | _getActivatedObjTypes () |
get activated obj types | |
static | _getRecords () |
Get records. | |
static | _getAllRecordsByObjectType () |
Get records by obj_type Note: this returns only records with no sub types! public. | |
static | _getActivatedRecordsByObjectType ($a_obj_type, $a_sub_type="") |
Get activated records by object type. | |
static | _getSelectedRecordsByObject ($a_obj_type, $a_obj_id, $a_sub_type="") |
Get selected records by object. | |
static | _delete ($a_record_id) |
Delete record and all related data. | |
static | saveObjRecSelection ($a_obj_id, $a_sub_type="", array $a_records=null, $a_delete_before=true) |
Save repository object record selection. | |
static | getObjRecSelection ($a_obj_id, $a_sub_type="") |
Get repository object record selection. |
Protected Member Functions | |
generateImportId () | |
generate unique record id |
Protected Attributes | |
$record_id | |
$import_id | |
$active | |
$title | |
$description | |
$obj_types = array() | |
$db = null |
Private Member Functions | |
read () | |
read record and assiged object types |
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 36 of file class.ilAdvancedMDRecord.php.
References $ilDB, getRecordId(), and read().
ilAdvancedMDRecord::__destruct | ( | ) |
Destructor.
public
Definition at line 695 of file class.ilAdvancedMDRecord.php.
References getRecordId().
|
static |
Delete record and all related data.
public
int | record id |
Definition at line 321 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 183 of file class.ilAdvancedMDRecord.php.
References $ilDB, $obj_types, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedSearchGUI\__setSearchOptions(), ilAdvancedSearchGUI\initAdvancedMetaDataForm(), ilObjCategoryGUI\setEditTabs(), 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, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilGlossaryExporter\getActiveAdvMDRecords(), ilWikiExporter\getActiveAdvMDRecords(), ilOrgUnitType\getAvailableAdvancedMDRecords(), ilSoapAdministration\getNIC(), ilAdvancedMDRecordGUI\parseEditor(), ilAdvancedMDRecordGUI\parseFilter(), ilAdvancedMDRecordGUI\parseRecordSelection(), ilAdvancedMDRecordGUI\parseSearch(), ilAdvancedMDRecordGUI\parseTableCells(), and ilAdvancedMDRecordGUI\parseTableHead().
|
static |
Get active searchable records.
public
Definition at line 73 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $records, $res, $row, _getInstanceByRecordId(), and DB_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, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilAdvancedMDSettingsGUI\setSubTabs().
|
static |
Get assignable object type.
public
Definition at line 144 of file class.ilAdvancedMDRecord.php.
References $lng.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilAdvancedMDRecordTableGUI\fillRow(), ilSoapAdministration\getNIC(), and ilAdvancedMDSettingsGUI\initForm().
|
static |
Get instance by record id.
public
int | record id |
Definition at line 57 of file class.ilAdvancedMDRecord.php.
Referenced by _getActivatedRecordsByObjectType(), _getActiveSearchableRecords(), _getAllRecordsByObjectType(), _getRecords(), _getSelectedRecordsByObject(), ilAdvancedMDSettingsGUI\confirmDeleteRecords(), ilAdvancedMDSettingsGUI\deleteRecords(), ilAdvancedMDSettingsGUI\exportRecords(), ilAdvancedMDRecordParser\initRecordObject(), and ilAdvancedMDSettingsGUI\initRecordObject().
|
static |
Get records.
public
array | array of record objects |
Definition at line 206 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $records, $res, $row, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilLuceneAdvancedSearchFields\getFields(), and ilAdvancedMDSettingsGUI\getRecordObjects().
|
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 283 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $records, $res, $row, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilPCAMDPageList\findPages(), ilGlossaryAdvMetaDataAdapter\getAllFields(), ilWikiAdvMetaDataBlockGUI\getRecords(), ilAdvancedMDRecordGUI\parseEditor(), ilAdvancedMDRecordGUI\parseFilter(), ilAdvancedMDRecordGUI\parseSearch(), ilAdvancedMDRecordGUI\parseTableCells(), ilAdvancedMDRecordGUI\parseTableHead(), and ilAdvancedMDValues\queryForRecords().
|
static |
Lookup record Id by import id.
public
string | ilias id |
Definition at line 124 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDRecordParser\extractRecordId().
|
static |
Lookup title.
public
int | record_id |
Definition at line 97 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), ilAdvancedMDRecordGUI\parseInfoPage(), ilObjOrgUnitGUI\parseInfoScreen(), ilECSSettingsGUI\prepareFieldSelection(), and ilLuceneAdvancedSearchFields\readSections().
ilAdvancedMDRecord::appendAssignedObjectType | ( | $a_obj_type, | |
$a_sub_type | |||
) |
append assigned object types
public
string | ilias object type |
Definition at line 575 of file class.ilAdvancedMDRecord.php.
ilAdvancedMDRecord::delete | ( | ) |
Delete.
public
Definition at line 347 of file class.ilAdvancedMDRecord.php.
References _delete(), and getRecordId().
|
protected |
generate unique record id
protected
Definition at line 684 of file class.ilAdvancedMDRecord.php.
References getRecordId().
Referenced by save(), and toXML().
ilAdvancedMDRecord::getAssignedObjectTypes | ( | ) |
Get assigned object types.
public
Definition at line 586 of file class.ilAdvancedMDRecord.php.
Referenced by isAssignedObjectType(), save(), toXML(), and update().
ilAdvancedMDRecord::getDescription | ( | ) |
get description
public
Definition at line 528 of file class.ilAdvancedMDRecord.php.
References $description.
Referenced by save(), toXML(), and update().
ilAdvancedMDRecord::getImportId | ( | ) |
get import id
public
Definition at line 551 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 745 of file class.ilAdvancedMDRecord.php.
References $ilDB.
Referenced by ilGlossaryExporter\getActiveAdvMDRecords(), ilWikiExporter\getActiveAdvMDRecords(), and ilAdvancedMDRecordGUI\parseRecordSelection().
ilAdvancedMDRecord::getRecordId | ( | ) |
Get record id.
public
Definition at line 459 of file class.ilAdvancedMDRecord.php.
References $record_id.
Referenced by __construct(), __destruct(), delete(), generateImportId(), read(), save(), toXML(), and update().
ilAdvancedMDRecord::getTitle | ( | ) |
get title
public
Definition at line 505 of file class.ilAdvancedMDRecord.php.
References $title.
Referenced by save(), toXML(), update(), and validate().
ilAdvancedMDRecord::isActive | ( | ) |
ilAdvancedMDRecord::isAssignedObjectType | ( | $a_obj_type, | |
$a_sub_type | |||
) |
Is assigned object type?
@return |
Definition at line 597 of file class.ilAdvancedMDRecord.php.
References $t, and getAssignedObjectTypes().
|
private |
read record and assiged object types
private
Definition at line 654 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, getRecordId(), setActive(), setDescription(), setImportId(), and setTitle().
Referenced by __construct().
ilAdvancedMDRecord::save | ( | ) |
save
public
Definition at line 358 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, generateImportId(), getAssignedObjectTypes(), getDescription(), getImportId(), 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 706 of file class.ilAdvancedMDRecord.php.
References $ilDB.
Referenced by ilAdvancedMetaDataImporter\importXmlRepresentation(), ilAdvancedMDRecordGUI\saveSelection(), and ilObjOrgUnit\update().
ilAdvancedMDRecord::setActive | ( | $a_active | ) |
Set active.
public
Definition at line 471 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 563 of file class.ilAdvancedMDRecord.php.
ilAdvancedMDRecord::setDescription | ( | $a_description | ) |
set description
public
string | description |
Definition at line 517 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setImportId | ( | $a_id_string | ) |
set import id
public
string | import id |
Definition at line 540 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setTitle | ( | $a_title | ) |
Set title.
public
string | title |
Definition at line 494 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 620 of file class.ilAdvancedMDRecord.php.
References generateImportId(), getAssignedObjectTypes(), getDescription(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getRecordId(), getTitle(), isActive(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilAdvancedMDRecord::update | ( | ) |
update
public
Definition at line 405 of file class.ilAdvancedMDRecord.php.
References $ilDB, $query, $res, getAssignedObjectTypes(), getDescription(), getRecordId(), getTitle(), and isActive().
ilAdvancedMDRecord::validate | ( | ) |
Validate settings Write error message to ilErr.
public
Definition at line 441 of file class.ilAdvancedMDRecord.php.
References $ilErr, $lng, and 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 19 of file class.ilAdvancedMDRecord.php.
Referenced by getRecordId().
|
protected |
Definition at line 22 of file class.ilAdvancedMDRecord.php.
Referenced by getTitle().