ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_record_id, $a_obj_id, $a_sub_type="-", $a_sub_id=0) | |
Constructor. | |
getDefinitions () | |
Get record field definitions. | |
getADTGroup () | |
Init ADT group for current record. | |
isDisabled ($a_element_id) | |
Is element disabled? | |
read () | |
Get record values. | |
write (array $a_additional_data=null) | |
Write record values. |
Static Public Member Functions | |
static | getInstancesForObjectId ($a_obj_id, $a_obj_type=null) |
Get instances for given object id. | |
static | findByObjectId ($a_obj_id) |
Find all entries for object (regardless of sub-type/sub-id) | |
static | _deleteByFieldId ($a_field_id, ilADT $a_adt) |
Delete values by field_id. | |
static | _deleteByObjId ($a_obj_id) |
Delete by objekt id. | |
static | preloadByObjIds (array $a_obj_ids) |
Preload list gui data. | |
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. | |
static | _appendXMLByObjId (ilXmlWriter $a_xml_writer, $a_obj_id) |
Get xml of object values. | |
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. |
Protected Member Functions | |
getActiveRecord () | |
Init ADT DB Bridge (aka active record helper class) |
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 360 of file class.ilAdvancedMDValues.php.
References $defs, ilObject\_lookupType(), preloadByObjIds(), preloadedRead(), 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 312 of file class.ilAdvancedMDValues.php.
References $ilLog, ilADTActiveRecordByType\cloneByPrimary(), and ilADTFactory\getInstance().
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 222 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 236 of file class.ilAdvancedMDValues.php.
References 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 152 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 113 of file class.ilAdvancedMDValues.php.
References $active_record, getADTGroup(), and ilADTFactory\getInstance().
Referenced by read(), and write().
ilAdvancedMDValues::getADTGroup | ( | ) |
Init ADT group for current record.
Definition at line 99 of file class.ilAdvancedMDValues.php.
References $adt_group, ilAdvancedMDFieldDefinition\getADTGroupForDefinitions(), and getDefinitions().
Referenced by getActiveRecord().
ilAdvancedMDValues::getDefinitions | ( | ) |
Get record field definitions.
Definition at line 85 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 $ilDB, $query, $res, $row, and ilObject\_lookupType().
Referenced by ilECSUtils\getAdvancedMDValuesForObjId(), ilAdvancedMDValueParser\handlerBeginTag(), ilRemoteObjectBase\importMetadataFromJson(), ilAdvancedMDRecordGUI\parseInfoPage(), and ilObjOrgUnitGUI\parseInfoScreen().
ilAdvancedMDValues::isDisabled | ( | $a_element_id | ) |
Is element disabled?
string | $a_element_id |
Definition at line 172 of file class.ilAdvancedMDValues.php.
|
static |
Preload list gui data.
array | $a_obj_ids |
Definition at line 255 of file class.ilAdvancedMDValues.php.
References $ilDB, $query, $row, ilADTFactory\getInstance(), and ilADTActiveRecordByType\preloadByPrimary().
Referenced by _appendXMLByObjId(), and ilObjectListGUIPreloader\preload().
|
static |
Definition at line 282 of file class.ilAdvancedMDValues.php.
References $record_id, and $res.
Referenced by _appendXMLByObjId(), and ilAdvancedMDSubstitution\getParsedSubstitutions().
|
static |
Query data for given object records.
@return |
Definition at line 402 of file class.ilAdvancedMDValues.php.
References $active_record, $adt_group, $defs, $obj_id, $record_id, $result, $results, $sub_id, ilAdvancedMDRecord\_getSelectedRecordsByObject(), ilObject\_lookupType(), ilAdvancedMDFieldDefinition\getADTGroupForDefinitions(), ilADTFactory\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), and ilADTActiveRecordByType\preloadByPrimary().
Referenced by ilGlossaryTerm\getTermList().
ilAdvancedMDValues::read | ( | ) |
Get record values.
Definition at line 188 of file class.ilAdvancedMDValues.php.
References getActiveRecord().
Referenced by ilWikiAdvMetaDataBlockGUI\fillDataSection(), and ilObjOrgUnitGUI\parseInfoScreen().
ilAdvancedMDValues::write | ( | array | $a_additional_data = null | ) |
Write record values.
array | $a_additional_data |
Definition at line 210 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 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.