ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
|
Public Member Functions | |
__construct ($a_record_id, $a_obj_id, $a_sub_type="-", $a_sub_id=0) | |
setActiveRecordPrimary (int $a_obj_id, string $a_sub_type="-", int $a_sub_id=0) | |
getDefinitions () | |
Get record field definitions. More... | |
getADTGroup () | |
isDisabled (string $a_element_id) | |
read () | |
Get record values. More... | |
write (?array $a_additional_data=null) | |
Write record values. More... | |
Static Public Member Functions | |
static | getInstancesForObjectId (int $a_obj_id, ?string $a_obj_type=null, string $a_sub_type="-", int $a_sub_id=0) |
static | findByObjectId (int $a_obj_id) |
Find all entries for object (regardless of sub-type/sub-id) More... | |
static | _deleteByFieldId (int $a_field_id, ilADT $a_adt) |
Delete values by field_id. More... | |
static | _deleteByObjId (int $a_obj_id) |
Delete by objekt id. More... | |
static | preloadByObjIds (array $a_obj_ids) |
Preload list gui data. More... | |
static | preloadedRead (string $a_type, int $a_obj_id) |
static | _cloneValues (int $copy_id, int $a_source_id, int $a_target_id, ?string $a_sub_type=null, ?int $a_source_sub_id=null, ?int $a_target_sub_id=null) |
Clone Advanced Meta Data. More... | |
static | _appendXMLByObjId (ilXmlWriter $a_xml_writer, int $a_obj_id) |
Get xml of object values. More... | |
static | queryForRecords (int $adv_rec_obj_ref_id, string $adv_rec_obj_type, string $adv_rec_obj_subtype, array $a_obj_id, string $a_subtype, array $a_records, string $a_obj_id_key, string $a_obj_subid_key, ?array $a_amet_filter=null) |
Protected Member Functions | |
getActiveRecord () | |
Init ADT DB Bridge (aka active record helper class) More... | |
Static Protected Member Functions | |
static | getParentMapping (int $copy_id, string $target) |
Protected Attributes | |
int | $record_id |
int | $obj_id |
int | $sub_id |
string | $sub_type |
array | $defs = null |
ilADTGroup | $adt_group = null |
ilADTActiveRecordByType | $active_record = null |
array | $disabled = [] |
Static Protected Attributes | |
static array | $preload_obj_records = [] |
Definition at line 27 of file class.ilAdvancedMDValues.php.
ilAdvancedMDValues::__construct | ( | $a_record_id, | |
$a_obj_id, | |||
$a_sub_type = "-" , |
|||
$a_sub_id = 0 |
|||
) |
Definition at line 42 of file class.ilAdvancedMDValues.php.
References ILIAS\Repository\int().
|
static |
Get xml of object values.
ilXmlWriter | $a_xml_writer | |
int | $a_obj_id |
Definition at line 455 of file class.ilAdvancedMDValues.php.
References ilObject\_lookupType(), null, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by ilCourseXMLWriter\__buildAdvancedMetaData(), and ilGroupXMLWriter\__buildAdvancedMetaData().
|
static |
Clone Advanced Meta Data.
Definition at line 290 of file class.ilAdvancedMDValues.php.
References $DIC, $record_id, ilCopyWizardOptions\_getInstance(), ilAdvancedMDRecord\_getRecords(), ilADTActiveRecordByType\cloneByPrimary(), ilADTActiveRecordByType\deleteByPrimary(), ilADTFactory\getInstance(), ilAdvancedMDRecord\getObjRecSelection(), null, and ilAdvancedMDRecord\saveObjRecSelection().
Referenced by ilObject\_prepareCloneSelection(), ilObjWiki\cloneObject(), ilObjPortfolioBase\clonePagesAndSettings(), ILIAS\MediaPool\MediaPoolManager\copyMetadataOfItem(), ILIAS\EmployeeTalk\Metadata\MetadataHandler\copyValues(), ILIAS\Wiki\Page\PageManager\createWikiPage(), 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 197 of file class.ilAdvancedMDValues.php.
References ilADTActiveRecordByType\deleteByPrimary(), ilADTFactory\getInstance(), and ilADT\getType().
Referenced by ilAdvancedMDFieldDefinition\delete().
|
static |
Delete by objekt id.
Definition at line 210 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)
Definition at line 145 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 | ( | ) |
Definition at line 102 of file class.ilAdvancedMDValues.php.
References $adt_group, ilAdvancedMDFieldDefinition\getADTGroupForDefinitions(), and getDefinitions().
Referenced by getActiveRecord().
ilAdvancedMDValues::getDefinitions | ( | ) |
Get record field definitions.
Definition at line 94 of file class.ilAdvancedMDValues.php.
References $defs, and ilAdvancedMDFieldDefinition\getInstancesByRecordId().
Referenced by getADTGroup().
|
static |
Definition at line 50 of file class.ilAdvancedMDValues.php.
References $id, $ref_id, $res, ilObject\_getAllReferences(), ilAdvancedMDRecord\_getSelectedRecordsByObject(), and ilObject\_lookupType().
Referenced by ilECSUtils\getAdvancedMDValuesForObjId(), ilAdvancedMDValueParser\handlerBeginTag(), ilRemoteObjectBase\importMetadataFromJson(), ILIAS\Cache\Services\ObjectModes\Custom\Custom\initSets(), ilAdvancedMDRecordGUI\parseAppointmentPresentationa(), ilAdvancedMDRecordGUI\parseInfoPage(), and ilObjOrgUnit\setOrgUnitTypeId().
|
staticprotected |
Definition at line 435 of file class.ilAdvancedMDValues.php.
References ilCopyWizardOptions\_getInstance(), and null.
ilAdvancedMDValues::isDisabled | ( | string | $a_element_id | ) |
Definition at line 158 of file class.ilAdvancedMDValues.php.
References ILIAS\UI\examples\Input\Field\Checkbox\disabled(), and null.
|
static |
Preload list gui data.
int[] | $a_obj_ids |
Definition at line 223 of file class.ilAdvancedMDValues.php.
References $DIC, $ilDB, ilADTFactory\getInstance(), ILIAS\Repository\int(), and ilADTActiveRecordByType\preloadByPrimary().
Referenced by ilObjectListGUIPreloader\preload(), and ILIAS\UI\Component\Legacy\Content\ItemSetManager\preloadAdvancedMDValues().
|
static |
Definition at line 253 of file class.ilAdvancedMDValues.php.
References $record_id, $res, and ilAdvancedMDRecord\_getSelectedRecordsByObject().
Referenced by ilAdvancedMDSubstitution\getParsedSubstitutions().
|
static |
Definition at line 485 of file class.ilAdvancedMDValues.php.
References $record_id, $results, ilAdvancedMDRecord\_getSelectedRecordsByObject(), ilAdvancedMDFieldDefinition\getADTGroupForDefinitions(), ilADTGroup\getElement(), ilADTGroup\getElements(), ilADTFactory\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), ilADTGroup\hasElement(), ILIAS\Repository\int(), null, ilADTActiveRecordByType\preloadByPrimary(), ilADTActiveRecordByType\read(), and ilADTActiveRecordByType\setElementIdColumn().
Referenced by ILIAS\Cache\Services\SubObjectModes\DataTable\Supplier\getData(), ilBookingObjectsTableGUI\getItems(), ilMediaPoolTableGUI\getItems(), ilBookingReservationsTableGUI\getItems(), and ilGlossaryTerm\getTermList().
ilAdvancedMDValues::read | ( | ) |
Get record values.
Definition at line 169 of file class.ilAdvancedMDValues.php.
References $data, ILIAS\UI\examples\Input\Field\Checkbox\disabled(), and getActiveRecord().
ilAdvancedMDValues::setActiveRecordPrimary | ( | int | $a_obj_id, |
string | $a_sub_type = "-" , |
||
int | $a_sub_id = 0 |
||
) |
Definition at line 80 of file class.ilAdvancedMDValues.php.
References null.
ilAdvancedMDValues::write | ( | ?array | $a_additional_data = null | ) |
Write record values.
Definition at line 186 of file class.ilAdvancedMDValues.php.
References getActiveRecord().
|
protected |
Definition at line 36 of file class.ilAdvancedMDValues.php.
Referenced by getActiveRecord().
|
protected |
Definition at line 35 of file class.ilAdvancedMDValues.php.
Referenced by getADTGroup().
|
protected |
Definition at line 34 of file class.ilAdvancedMDValues.php.
Referenced by getDefinitions().
|
protected |
Definition at line 38 of file class.ilAdvancedMDValues.php.
|
protected |
Definition at line 30 of file class.ilAdvancedMDValues.php.
|
staticprotected |
Definition at line 40 of file class.ilAdvancedMDValues.php.
|
protected |
Definition at line 29 of file class.ilAdvancedMDValues.php.
Referenced by _cloneValues(), preloadedRead(), and queryForRecords().
|
protected |
Definition at line 31 of file class.ilAdvancedMDValues.php.
|
protected |
Definition at line 32 of file class.ilAdvancedMDValues.php.