ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($a_record_id, $a_obj_id, $a_sub_type="-", $a_sub_id=0) | |
Constructor. More... | |
setActiveRecordPrimary ($a_obj_id, $a_sub_type="-", $a_sub_id=0) | |
Set the primary values for active record. More... | |
getDefinitions () | |
Get record field definitions. More... | |
getADTGroup () | |
Init ADT group for current record. More... | |
isDisabled ($a_element_id) | |
Is element disabled? More... | |
read () | |
Get record values. More... | |
write (array $a_additional_data=null) | |
Write record values. More... | |
Static Public Member Functions | |
static | getInstancesForObjectId ($a_obj_id, $a_obj_type=null, $a_sub_type="-", $a_sub_id=0) |
Get instances for given object id. More... | |
static | findByObjectId ($a_obj_id) |
Find all entries for object (regardless of sub-type/sub-id) More... | |
static | _deleteByFieldId ($a_field_id, ilADT $a_adt) |
Delete values by field_id. More... | |
static | _deleteByObjId ($a_obj_id) |
Delete by objekt id. More... | |
static | preloadByObjIds (array $a_obj_ids) |
Preload list gui data. More... | |
static | preloadedRead ($a_type, $a_obj_id) |
static | _cloneValues ($a_source_id, $a_target_id, $a_sub_type=null, $a_source_sub_id=null, $a_target_sub_id=null) |
Clone Advanced Meta Data. More... | |
static | _appendXMLByObjId (ilXmlWriter $a_xml_writer, $a_obj_id) |
Get xml of object values. More... | |
static | queryForRecords ($adv_rec_obj_ref_id, $adv_rec_obj_type, $adv_rec_obj_subtype, $a_obj_id, $a_subtype, $a_records, $a_obj_id_key, $a_obj_subid_key, array $a_amet_filter=null) |
Query data for given object records. More... | |
Protected Member Functions | |
getActiveRecord () | |
Init ADT DB Bridge (aka active record helper class) More... | |
Protected Attributes | |
$record_id | |
$obj_id | |
$sub_id | |
$sub_type | |
$defs | |
$adt_group | |
$active_record | |
$disabled | |
Static Protected Attributes | |
static | $preload_obj_records |
Definition at line 15 of file class.ilAdvancedMDValues.php.
ilAdvancedMDValues::__construct | ( | $a_record_id, | |
$a_obj_id, | |||
$a_sub_type = "-" , |
|||
$a_sub_id = 0 |
|||
) |
Constructor.
int | $a_record_id | |
string | $a_obj_id | |
string | $a_sub_type | |
int | $a_sub_id |
Definition at line 39 of file class.ilAdvancedMDValues.php.
|
static |
Get xml of object values.
ilXmlWriter | $a_xml_writer | |
int | $a_obj_id |
Definition at line 454 of file class.ilAdvancedMDValues.php.
References $def, $defs, ilObject\_lookupType(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by ilCourseXMLWriter\__buildAdvancedMetaData(), and ilGroupXMLWriter\__buildAdvancedMetaData().
|
static |
Clone Advanced Meta Data.
int | source obj_id |
int | target obj_id |
string | sub_type (both source/target) |
int | source sub_id |
int | target sub_id |
Definition at line 338 of file class.ilAdvancedMDValues.php.
References $DIC, $ilLog, $record_id, ilAdvancedMDRecord\_getRecords(), ilADTActiveRecordByType\cloneByPrimary(), ilADTActiveRecordByType\deleteByPrimary(), ilADTFactory\getInstance(), ilAdvancedMDRecord\getObjRecSelection(), and ilAdvancedMDRecord\saveObjRecSelection().
Referenced by ilObject\_prepareCloneSelection(), and ilObjWiki\createWikiPage().
|
static |
Delete values by field_id.
Typically called after deleting a field
int | $a_field_id | |
ilADT | $a_adt |
Definition at line 230 of file class.ilAdvancedMDValues.php.
References ilADTActiveRecordByType\deleteByPrimary(), ilADTFactory\getInstance(), and ilADT\getType().
Referenced by ilAdvancedMDFieldDefinition\delete().
|
static |
Delete by objekt id.
int | $a_obj_id |
Definition at line 245 of file class.ilAdvancedMDValues.php.
References ilADTActiveRecordByType\deleteByPrimary(), and ilADTFactory\getInstance().
Referenced by ilObject\countReferences().
|
static |
Find all entries for object (regardless of sub-type/sub-id)
int | $a_obj_id |
Definition at line 164 of file class.ilAdvancedMDValues.php.
References ilADTFactory\initActiveRecordByType(), and ilADTActiveRecordByType\readByPrimary().
Referenced by ilAdvancedMetaDataExporter\getXmlRepresentation().
|
protected |
Init ADT DB Bridge (aka active record helper class)
Definition at line 128 of file class.ilAdvancedMDValues.php.
References $active_record, $factory, getADTGroup(), and ilADTFactory\getInstance().
Referenced by read(), and write().
ilAdvancedMDValues::getADTGroup | ( | ) |
Init ADT group for current record.
Definition at line 115 of file class.ilAdvancedMDValues.php.
References $adt_group, ilAdvancedMDFieldDefinition\getADTGroupForDefinitions(), and getDefinitions().
Referenced by getActiveRecord().
ilAdvancedMDValues::getDefinitions | ( | ) |
Get record field definitions.
Definition at line 102 of file class.ilAdvancedMDValues.php.
References $defs, and ilAdvancedMDFieldDefinition\getInstancesByRecordId().
Referenced by getADTGroup().
|
static |
Get instances for given object id.
int | $a_obj_id | |
string | $a_obj_type |
Definition at line 54 of file class.ilAdvancedMDValues.php.
References $id, $records, $res, ilObject\_getAllReferences(), ilAdvancedMDRecord\_getSelectedRecordsByObject(), and ilObject\_lookupType().
Referenced by ilECSUtils\getAdvancedMDValuesForObjId(), ilAdvancedMDValueParser\handlerBeginTag(), ilRemoteObjectBase\importMetadataFromJson(), ilAdvancedMDRecordGUI\parseAppointmentPresentation(), ilAdvancedMDRecordGUI\parseInfoPage(), and ilObjOrgUnit\setOrgUnitTypeId().
ilAdvancedMDValues::isDisabled | ( | $a_element_id | ) |
Is element disabled?
string | $a_element_id |
Definition at line 184 of file class.ilAdvancedMDValues.php.
|
static |
Preload list gui data.
array | $a_obj_ids |
Definition at line 265 of file class.ilAdvancedMDValues.php.
References $DIC, $ilDB, $query, $row, ilADTFactory\getInstance(), and ilADTActiveRecordByType\preloadByPrimary().
Referenced by ilObjectListGUIPreloader\preload(), and ilPDSelectedItemsBlockViewGUI\preloadItemGroups().
|
static |
Definition at line 294 of file class.ilAdvancedMDValues.php.
References $a_type, $record_id, $res, and ilAdvancedMDRecord\_getSelectedRecordsByObject().
Referenced by ilAdvancedMDSubstitution\getParsedSubstitutions().
|
static |
Query data for given object records.
Definition at line 493 of file class.ilAdvancedMDValues.php.
References $active_record, $adt_group, $defs, $obj_id, $record_id, $results, $sub_id, ilAdvancedMDRecord\_getSelectedRecordsByObject(), ilAdvancedMDFieldDefinition\getADTGroupForDefinitions(), ilADTFactory\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), and ilADTActiveRecordByType\preloadByPrimary().
Referenced by ilBookingObjectsTableGUI\getItems(), ilMediaPoolTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), and ilGlossaryTerm\getTermList().
ilAdvancedMDValues::read | ( | ) |
Get record values.
Definition at line 199 of file class.ilAdvancedMDValues.php.
References $data, and getActiveRecord().
ilAdvancedMDValues::setActiveRecordPrimary | ( | $a_obj_id, | |
$a_sub_type = "-" , |
|||
$a_sub_id = 0 |
|||
) |
Set the primary values for active record.
int | $a_obj_id | |
string | $a_sub_type | |
int | $a_sub_id |
Definition at line 87 of file class.ilAdvancedMDValues.php.
ilAdvancedMDValues::write | ( | array | $a_additional_data = null | ) |
Write record values.
array | $a_additional_data |
Definition at line 218 of file class.ilAdvancedMDValues.php.
References getActiveRecord().
|
protected |
Definition at line 24 of file class.ilAdvancedMDValues.php.
Referenced by getActiveRecord(), and queryForRecords().
|
protected |
Definition at line 23 of file class.ilAdvancedMDValues.php.
Referenced by getADTGroup(), and queryForRecords().
|
protected |
Definition at line 22 of file class.ilAdvancedMDValues.php.
Referenced by _appendXMLByObjId(), getDefinitions(), and queryForRecords().
|
protected |
Definition at line 26 of file class.ilAdvancedMDValues.php.
|
protected |
Definition at line 18 of file class.ilAdvancedMDValues.php.
Referenced by queryForRecords().
|
staticprotected |
Definition at line 28 of file class.ilAdvancedMDValues.php.
|
protected |
Definition at line 17 of file class.ilAdvancedMDValues.php.
Referenced by _cloneValues(), preloadedRead(), and queryForRecords().
|
protected |
Definition at line 19 of file class.ilAdvancedMDValues.php.
Referenced by queryForRecords().
|
protected |
Definition at line 20 of file class.ilAdvancedMDValues.php.