ILIAS
Release_4_4_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="", $a_records) |
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 getRecordId(), and read().
ilAdvancedMDRecord::__destruct | ( | ) |
Destructor.
public
Definition at line 692 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 $query, $res, and ilAdvancedMDFieldDefinition\_deleteByRecordId().
Referenced by delete().
|
static |
get activated obj types
public
string | obj types |
Definition at line 183 of file class.ilAdvancedMDRecord.php.
References $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 $query, $records, $res, $row, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilGlossaryExporter\getActiveAdvMDRecords(), ilSoapAdministration\getNIC(), ilAdvancedMDRecordGUI\parseEditor(), ilAdvancedMDRecordGUI\parseFilter(), ilAdvancedMDRecordGUI\parseInfoPage(), ilAdvancedMDRecordGUI\parseRecordSelection(), ilAdvancedMDRecordGUI\parseTableCells(), and ilAdvancedMDRecordGUI\parseTableHead().
|
static |
Get active searchable records.
public
Definition at line 73 of file class.ilAdvancedMDRecord.php.
References $query, $records, $res, $row, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDRecordGUI\parseSearch().
|
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 $query, $records, $res, $row, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions().
|
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(), ilAdvancedMDRecordParser\initRecordObject(), and ilAdvancedMDSettingsGUI\initRecordObject().
|
static |
Get records.
public
array | array of record objects |
Definition at line 206 of file class.ilAdvancedMDRecord.php.
References $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 $query, $records, $res, $row, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilGlossaryAdvMetaDataAdapter\getAllFields(), ilAdvancedMDRecordGUI\parseEditor(), ilAdvancedMDRecordGUI\parseFilter(), ilAdvancedMDRecordGUI\parseTableCells(), and ilAdvancedMDRecordGUI\parseTableHead().
|
static |
Lookup record Id by import id.
public
string | ilias id |
Definition at line 124 of file class.ilAdvancedMDRecord.php.
References $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 $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), 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 572 of file class.ilAdvancedMDRecord.php.
ilAdvancedMDRecord::delete | ( | ) |
Delete.
public
Definition at line 344 of file class.ilAdvancedMDRecord.php.
References _delete(), and getRecordId().
|
protected |
generate unique record id
protected
Definition at line 681 of file class.ilAdvancedMDRecord.php.
References getRecordId().
Referenced by save(), and toXML().
ilAdvancedMDRecord::getAssignedObjectTypes | ( | ) |
Get assigned object types.
public
Definition at line 583 of file class.ilAdvancedMDRecord.php.
Referenced by isAssignedObjectType(), save(), toXML(), and update().
ilAdvancedMDRecord::getDescription | ( | ) |
get description
public
Definition at line 525 of file class.ilAdvancedMDRecord.php.
References $description.
Referenced by save(), toXML(), and update().
ilAdvancedMDRecord::getImportId | ( | ) |
get import id
public
Definition at line 548 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 739 of file class.ilAdvancedMDRecord.php.
Referenced by ilGlossaryExporter\getActiveAdvMDRecords(), and ilAdvancedMDRecordGUI\parseRecordSelection().
ilAdvancedMDRecord::getRecordId | ( | ) |
Get record id.
public
Definition at line 456 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 502 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 594 of file class.ilAdvancedMDRecord.php.
References $t, and getAssignedObjectTypes().
|
private |
read record and assiged object types
private
Definition at line 651 of file class.ilAdvancedMDRecord.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, getRecordId(), setActive(), setDescription(), setImportId(), and setTitle().
Referenced by __construct().
ilAdvancedMDRecord::save | ( | ) |
save
public
Definition at line 355 of file class.ilAdvancedMDRecord.php.
References $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 703 of file class.ilAdvancedMDRecord.php.
Referenced by ilAdvancedMetaDataImporter\importXmlRepresentation(), and ilAdvancedMDRecordGUI\saveSelection().
ilAdvancedMDRecord::setActive | ( | $a_active | ) |
Set active.
public
Definition at line 468 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 560 of file class.ilAdvancedMDRecord.php.
ilAdvancedMDRecord::setDescription | ( | $a_description | ) |
set description
public
string | description |
Definition at line 514 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setImportId | ( | $a_id_string | ) |
set import id
public
string | import id |
Definition at line 537 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setTitle | ( | $a_title | ) |
Set title.
public
string | title |
Definition at line 491 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 617 of file class.ilAdvancedMDRecord.php.
References ilAdvancedMDFieldDefinition\_getDefinitionsByRecordId(), generateImportId(), getAssignedObjectTypes(), getDescription(), getRecordId(), getTitle(), isActive(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilAdvancedMDRecord::update | ( | ) |
update
public
Definition at line 402 of file class.ilAdvancedMDRecord.php.
References $query, $res, getAssignedObjectTypes(), getDescription(), getRecordId(), getTitle(), and isActive().
ilAdvancedMDRecord::validate | ( | ) |
Validate settings Write error message to ilErr.
public
Definition at line 438 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().