ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 ($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 469 of file class.ilAdvancedMDValues.php.
References $defs, ilObject\_lookupType(), array, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by ilCourseXMLWriter\__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 342 of file class.ilAdvancedMDValues.php.
References $ilLog, $record_id, ilAdvancedMDRecord\_getRecords(), array, ilADTActiveRecordByType\cloneByPrimary(), ilADTActiveRecordByType\deleteByPrimary(), ilADTFactory\getInstance(), ilAdvancedMDRecord\getObjRecSelection(), and ilAdvancedMDRecord\saveObjRecSelection().
Referenced by ilObject\cloneObject(), 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 232 of file class.ilAdvancedMDValues.php.
References array, ilADTActiveRecordByType\deleteByPrimary(), ilADTFactory\getInstance(), and ilADT\getType().
Referenced by ilAdvancedMDFieldDefinition\delete().
|
static |
Delete by objekt id.
int | $a_obj_id |
Definition at line 246 of file class.ilAdvancedMDValues.php.
References array, ilADTActiveRecordByType\deleteByPrimary(), and ilADTFactory\getInstance().
Referenced by ilObject\delete().
|
static |
Find all entries for object (regardless of sub-type/sub-id)
int | $a_obj_id |
Definition at line 162 of file class.ilAdvancedMDValues.php.
References array, ilADTFactory\initActiveRecordByType(), and ilADTActiveRecordByType\readByPrimary().
Referenced by ilAdvancedMetaDataExporter\getXmlRepresentation().
|
protected |
Init ADT DB Bridge (aka active record helper class)
Definition at line 123 of file class.ilAdvancedMDValues.php.
References $active_record, array, getADTGroup(), and ilADTFactory\getInstance().
Referenced by read(), and write().
ilAdvancedMDValues::getADTGroup | ( | ) |
Init ADT group for current record.
Definition at line 109 of file class.ilAdvancedMDValues.php.
References $adt_group, ilAdvancedMDFieldDefinition\getADTGroupForDefinitions(), and getDefinitions().
Referenced by getActiveRecord().
ilAdvancedMDValues::getDefinitions | ( | ) |
Get record field definitions.
Definition at line 95 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 $res, ilAdvancedMDRecord\_getSelectedRecordsByObject(), ilObject\_lookupType(), and array.
Referenced by ilECSUtils\getAdvancedMDValuesForObjId(), ilAdvancedMDValueParser\handlerBeginTag(), ilRemoteObjectBase\importMetadataFromJson(), ilAdvancedMDRecordGUI\parseInfoPage(), and ilObjOrgUnit\setOrgUnitTypeId().
ilAdvancedMDValues::isDisabled | ( | $a_element_id | ) |
Is element disabled?
string | $a_element_id |
Definition at line 182 of file class.ilAdvancedMDValues.php.
|
static |
Preload list gui data.
array | $a_obj_ids |
Definition at line 265 of file class.ilAdvancedMDValues.php.
References $ilDB, $query, $row, array, ilADTFactory\getInstance(), and ilADTActiveRecordByType\preloadByPrimary().
Referenced by ilObjectListGUIPreloader\preload().
|
static |
Definition at line 292 of file class.ilAdvancedMDValues.php.
References $a_type, $record_id, $res, ilAdvancedMDRecord\_getSelectedRecordsByObject(), and array.
Referenced by ilAdvancedMDSubstitution\getParsedSubstitutions().
|
static |
Query data for given object records.
Definition at line 511 of file class.ilAdvancedMDValues.php.
References $active_record, $adt_group, $defs, $obj_id, $record_id, $results, $sub_id, ilAdvancedMDRecord\_getSelectedRecordsByObject(), ilObject\_lookupType(), array, ilAdvancedMDFieldDefinition\getADTGroupForDefinitions(), ilADTFactory\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), and ilADTActiveRecordByType\preloadByPrimary().
Referenced by ilBookingObjectsTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), and ilGlossaryTerm\getTermList().
ilAdvancedMDValues::read | ( | ) |
Get record values.
Definition at line 198 of file class.ilAdvancedMDValues.php.
References $data, array, 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 80 of file class.ilAdvancedMDValues.php.
ilAdvancedMDValues::write | ( | array | $a_additional_data = null | ) |
Write record values.
array | $a_additional_data |
Definition at line 220 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.