ILIAS
Release_3_10_x_branch Revision 61812
|
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) | |
append assigned object types | |
getAssignedObjectTypes () | |
Get assigned object types. | |
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 () |
Get assignable object type. | |
static | _getActivatedObjTypes () |
get activated obj types | |
static | _getRecords () |
Get records. | |
static | _getAllRecordsByObjectType () |
Get records by obj_type. | |
static | _getActivatedRecordsByObjectType ($a_obj_type) |
Get activated records by object type. | |
static | _delete ($a_record_id) |
Delete record and all related data. |
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 34 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 55 of file class.ilAdvancedMDRecord.php.
References getRecordId(), and read().
ilAdvancedMDRecord::__destruct | ( | ) |
Destructor.
public
Definition at line 595 of file class.ilAdvancedMDRecord.php.
References getRecordId().
|
static |
Delete record and all related data.
public
int | record id |
Definition at line 271 of file class.ilAdvancedMDRecord.php.
References ilAdvancedMDFieldDefinition\_deleteByRecordId().
Referenced by delete().
|
static |
get activated obj types
public
string | obj types |
Definition at line 175 of file class.ilAdvancedMDRecord.php.
References $obj_types, $res, and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedSearchGUI\__setSearchOptions(), ilObjCategoryGUI\getSubTabs(), ilAdvancedSearchGUI\initAdvancedMetaDataForm(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
|
static |
Get activated records by object type.
public
string | obj_type |
Definition at line 242 of file class.ilAdvancedMDRecord.php.
References $res, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilSoapAdministration\getNIC(), ilAdvancedMDRecordGUI\parseEditor(), and ilAdvancedMDRecordGUI\parseInfoPage().
|
static |
Get active searchable records.
public
Definition at line 92 of file class.ilAdvancedMDRecord.php.
References $res, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDRecordGUI\parseSearch().
|
static |
Get records by obj_type.
public
Definition at line 219 of file class.ilAdvancedMDRecord.php.
References $res, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions().
|
static |
Get assignable object type.
public
Definition at line 162 of file class.ilAdvancedMDRecord.php.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilAdvancedMDRecordTableGUI\fillRow(), ilSoapAdministration\getNIC(), and ilAdvancedMDSettingsGUI\initForm().
|
static |
Get instance by record id.
public
int | record id |
Definition at line 76 of file class.ilAdvancedMDRecord.php.
Referenced by _getActivatedRecordsByObjectType(), _getActiveSearchableRecords(), _getAllRecordsByObjectType(), _getRecords(), ilAdvancedMDSettingsGUI\confirmDeleteRecords(), ilAdvancedMDSettingsGUI\deleteRecords(), ilAdvancedMDRecordParser\initRecordObject(), and ilAdvancedMDSettingsGUI\initRecordObject().
|
static |
Get records.
public
array | array of record objects |
Definition at line 198 of file class.ilAdvancedMDRecord.php.
References $res, _getInstanceByRecordId(), and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\getRecordObjects().
|
static |
Lookup record Id by import id.
public
string | ilias id |
Definition at line 142 of file class.ilAdvancedMDRecord.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDRecordParser\extractRecordId().
|
static |
Lookup title.
public
int | record_id |
Definition at line 115 of file class.ilAdvancedMDRecord.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilECSSettingsGUI\prepareFieldSelection().
ilAdvancedMDRecord::appendAssignedObjectType | ( | $a_obj_type | ) |
append assigned object types
public
string | ilias object type |
Definition at line 505 of file class.ilAdvancedMDRecord.php.
ilAdvancedMDRecord::delete | ( | ) |
Delete.
public
Definition at line 294 of file class.ilAdvancedMDRecord.php.
References _delete(), and getRecordId().
|
protected |
generate unique record id
protected
Definition at line 584 of file class.ilAdvancedMDRecord.php.
References getRecordId().
Referenced by save(), and toXML().
ilAdvancedMDRecord::getAssignedObjectTypes | ( | ) |
Get assigned object types.
public
Definition at line 516 of file class.ilAdvancedMDRecord.php.
Referenced by save(), toXML(), and update().
ilAdvancedMDRecord::getDescription | ( | ) |
get description
public
Definition at line 458 of file class.ilAdvancedMDRecord.php.
References $description.
Referenced by save(), toXML(), and update().
ilAdvancedMDRecord::getImportId | ( | ) |
get import id
public
Definition at line 481 of file class.ilAdvancedMDRecord.php.
References $import_id.
Referenced by save().
ilAdvancedMDRecord::getRecordId | ( | ) |
Get record id.
public
Definition at line 389 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 435 of file class.ilAdvancedMDRecord.php.
References $title.
Referenced by save(), toXML(), update(), and validate().
ilAdvancedMDRecord::isActive | ( | ) |
|
private |
read record and assiged object types
private
Definition at line 557 of file class.ilAdvancedMDRecord.php.
References $res, DB_FETCHMODE_OBJECT, getRecordId(), setActive(), setDescription(), setImportId(), and setTitle().
Referenced by __construct().
ilAdvancedMDRecord::save | ( | ) |
save
public
Definition at line 305 of file class.ilAdvancedMDRecord.php.
References $res, generateImportId(), getAssignedObjectTypes(), getDescription(), getImportId(), getRecordId(), getTitle(), and isActive().
ilAdvancedMDRecord::setActive | ( | $a_active | ) |
Set active.
public
Definition at line 401 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 493 of file class.ilAdvancedMDRecord.php.
ilAdvancedMDRecord::setDescription | ( | $a_description | ) |
set description
public
string | description |
Definition at line 447 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setImportId | ( | $a_id_string | ) |
set import id
public
string | import id |
Definition at line 470 of file class.ilAdvancedMDRecord.php.
Referenced by read().
ilAdvancedMDRecord::setTitle | ( | $a_title | ) |
Set title.
public
string | title |
Definition at line 424 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 530 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 340 of file class.ilAdvancedMDRecord.php.
References getAssignedObjectTypes(), getDescription(), getRecordId(), getTitle(), and isActive().
ilAdvancedMDRecord::validate | ( | ) |
Validate settings Write error message to ilErr.
public
Definition at line 371 of file class.ilAdvancedMDRecord.php.
References $ilErr, $lng, and getTitle().
|
protected |
Definition at line 40 of file class.ilAdvancedMDRecord.php.
Referenced by isActive().
|
protected |
Definition at line 44 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 42 of file class.ilAdvancedMDRecord.php.
Referenced by getDescription().
|
protected |
Definition at line 39 of file class.ilAdvancedMDRecord.php.
Referenced by getImportId().
|
staticprivate |
Definition at line 36 of file class.ilAdvancedMDRecord.php.
|
protected |
Definition at line 43 of file class.ilAdvancedMDRecord.php.
Referenced by _getActivatedObjTypes().
|
protected |
Definition at line 38 of file class.ilAdvancedMDRecord.php.
Referenced by getRecordId().
|
protected |
Definition at line 41 of file class.ilAdvancedMDRecord.php.
Referenced by getTitle().