ILIAS  release_8 Revision v8.24
ilMDBase Class Reference
+ Inheritance diagram for ilMDBase:
+ Collaboration diagram for ilMDBase:

Public Member Functions

 __construct (int $a_rbac_id=0, int $a_obj_id=0, string $a_type='')
 constructor More...
 
 read ()
 
 setRBACId (int $a_id)
 
 getRBACId ()
 
 setObjId (int $a_id)
 
 getObjId ()
 
 setObjType (string $a_type)
 
 getObjType ()
 
 setMetaId (int $a_meta_id, bool $a_read_data=true)
 
 getMetaId ()
 
 setParentType (string $a_parent_type)
 
 getParentType ()
 
 setParentId (int $a_id)
 
 getParentId ()
 
 setExportMode (bool $a_export_mode=true)
 
 getExportMode ()
 
 validate ()
 
 update ()
 
 save ()
 
 delete ()
 
 toXML (ilXmlWriter $writer)
 

Protected Attributes

ilLogger $log
 
ilDBInterface $db
 

Private Attributes

int $rbac_id
 object id (NOT ref_id!) of rbac object (e.g for page objects the obj_id of the content object; for media objects this is set to 0, because their object id are not assigned to ref ids) More...
 
int $obj_id
 obj_id (e.g for structure objects the obj_id of the structure object) More...
 
string $obj_type
 type of the object (e.g st,pg,crs ...) More...
 
int $meta_id = null
 
int $parent_id
 
string $parent_type
 
bool $export_mode = false
 export mode, if true, first Identifier will be set to ILIAS/il_<INSTALL_ID>_<TYPE>_<ID> More...
 

Detailed Description

Definition at line 32 of file class.ilMDBase.php.

Constructor & Destructor Documentation

◆ __construct()

ilMDBase::__construct ( int  $a_rbac_id = 0,
int  $a_obj_id = 0,
string  $a_type = '' 
)

constructor

Parameters
int$a_rbac_idobject id (NOT ref_id!) of rbac object (e.g for page objects the obj_id of the content object; for media objects this is set to 0, because their object id are not assigned to ref ids)
int$a_obj_idobject id (e.g for structure objects the obj_id of the structure object)
string$a_typetype of the object (e.g st,pg,crs ...)

Definition at line 73 of file class.ilMDBase.php.

77 {
78 global $DIC;
79
80 $this->db = $DIC->database();
81
82 if ($a_obj_id === 0) {
83 $a_obj_id = $a_rbac_id;
84 }
85
86 $this->log = ilLoggerFactory::getLogger("meta");
87
88 $this->rbac_id = $a_rbac_id;
89 $this->obj_id = $a_obj_id;
90 $this->obj_type = $a_type;
91 }
static getLogger(string $a_component_id)
Get component logger.
global $DIC
Definition: feed.php:28

References $DIC, and ilLoggerFactory\getLogger().

+ Here is the call graph for this function:

Member Function Documentation

◆ delete()

◆ getExportMode()

ilMDBase::getExportMode ( )

Definition at line 165 of file class.ilMDBase.php.

165 : bool
166 {
167 return $this->export_mode;
168 }
bool $export_mode
export mode, if true, first Identifier will be set to ILIAS/il_<INSTALL_ID>_<TYPE>_<ID>

References $export_mode.

Referenced by ilMD\toXML(), ilMDGeneral\toXML(), and ilMDIdentifier\toXML().

+ Here is the caller graph for this function:

◆ getMetaId()

ilMDBase::getMetaId ( )

Definition at line 135 of file class.ilMDBase.php.

135 : ?int
136 {
137 return $this->meta_id;
138 }

References $meta_id.

Referenced by ilMDLifecycle\addContribute(), ilMDMetaMetadata\addContribute(), ilMDEducational\addDescription(), ilMDGeneral\addDescription(), ilMDRelation\addDescription(), ilMDContribute\addEntity(), ilMDGeneral\addIdentifier(), ilMDMetaMetadata\addIdentifier(), ilMDRelation\addIdentifier_(), ilMDClassification\addKeyword(), ilMDGeneral\addKeyword(), ilMDEducational\addLanguage(), ilMDGeneral\addLanguage(), ilMDTechnical\addLocation(), ilMDTechnical\addOrComposite(), ilMDTechnical\addRequirement(), ilMDTaxonPath\addTaxon(), ilMDClassification\addTaxonPath(), ilMDEducational\addTypicalAgeRange(), ilMDAnnotation\delete(), ilMDClassification\delete(), ilMDContribute\delete(), ilMDDescription\delete(), ilMDEntity\delete(), ilMDFormat\delete(), ilMDGeneral\delete(), ilMDIdentifier\delete(), ilMDIdentifier_\delete(), ilMDKeyword\delete(), ilMDLanguage\delete(), ilMDLifecycle\delete(), ilMDLocation\delete(), ilMDMetaMetadata\delete(), ilMDRelation\delete(), ilMDRequirement\delete(), ilMDRights\delete(), ilMDTaxon\delete(), ilMDTaxonPath\delete(), ilMDTechnical\delete(), ilMDTypicalAgeRange\delete(), ilMDLifecycle\getContributeIds(), ilMDMetaMetadata\getContributeIds(), ilMDEducational\getDescriptionIds(), ilMDGeneral\getDescriptionIds(), ilMDRelation\getDescriptionIds(), ilMDContribute\getEntityIds(), ilMDRelation\getIdentifier_Ids(), ilMDGeneral\getIdentifierIds(), ilMDMetaMetadata\getIdentifierIds(), ilMDClassification\getKeywordIds(), ilMDGeneral\getKeywordIds(), ilMDEducational\getLanguageIds(), ilMDGeneral\getLanguageIds(), ilMDTechnical\getLocationIds(), ilMDTechnical\getOrComposite(), ilMDTechnical\getOrCompositeIds(), ilMDTechnical\getRequirementIds(), ilMDTaxonPath\getTaxonIds(), ilMDClassification\getTaxonPathIds(), ilMDEducational\getTypicalAgeRangeIds(), ilMDAnnotation\read(), ilMDClassification\read(), ilMDContribute\read(), ilMDDescription\read(), ilMDEntity\read(), ilMDFormat\read(), ilMDGeneral\read(), ilMDIdentifier\read(), ilMDIdentifier_\read(), ilMDKeyword\read(), ilMDLanguage\read(), ilMDLifecycle\read(), ilMDLocation\read(), ilMDMetaMetadata\read(), ilMDRelation\read(), ilMDRequirement\read(), ilMDRights\read(), ilMDTaxon\read(), ilMDTaxonPath\read(), ilMDTechnical\read(), ilMDTypicalAgeRange\read(), ilMDAnnotation\save(), ilMDClassification\save(), ilMDContribute\save(), ilMDDescription\save(), ilMDEntity\save(), ilMDFormat\save(), ilMDGeneral\save(), ilMDIdentifier\save(), ilMDIdentifier_\save(), ilMDKeyword\save(), ilMDLanguage\save(), ilMDLifecycle\save(), ilMDLocation\save(), ilMDMetaMetadata\save(), ilMDRelation\save(), ilMDRequirement\save(), ilMDRights\save(), ilMDTaxon\save(), ilMDTaxonPath\save(), ilMDTechnical\save(), ilMDTypicalAgeRange\save(), ilMDAnnotation\update(), ilMDClassification\update(), ilMDContribute\update(), ilMDDescription\update(), ilMDEntity\update(), ilMDFormat\update(), ilMDGeneral\update(), ilMDIdentifier\update(), ilMDIdentifier_\update(), ilMDKeyword\update(), ilMDLanguage\update(), ilMDLifecycle\update(), ilMDLocation\update(), ilMDMetaMetadata\update(), ilMDRelation\update(), ilMDRequirement\update(), ilMDRights\update(), ilMDTaxon\update(), ilMDTaxonPath\update(), ilMDTechnical\update(), and ilMDTypicalAgeRange\update().

+ Here is the caller graph for this function:

◆ getObjId()

ilMDBase::getObjId ( )

Definition at line 111 of file class.ilMDBase.php.

111 : int
112 {
113 return $this->obj_id;
114 }
int $obj_id
obj_id (e.g for structure objects the obj_id of the structure object)

References $obj_id.

Referenced by ilMDAnnotation\__getFields(), ilMDClassification\__getFields(), ilMDContribute\__getFields(), ilMDDescription\__getFields(), ilMDEntity\__getFields(), ilMDFormat\__getFields(), ilMDGeneral\__getFields(), ilMDIdentifier\__getFields(), ilMDIdentifier_\__getFields(), ilMDKeyword\__getFields(), ilMDLanguage\__getFields(), ilMDLifecycle\__getFields(), ilMDLocation\__getFields(), ilMDMetaMetadata\__getFields(), ilMDRelation\__getFields(), ilMDRequirement\__getFields(), ilMDRights\__getFields(), ilMDTaxon\__getFields(), ilMDTaxonPath\__getFields(), ilMDTechnical\__getFields(), ilMDTypicalAgeRange\__getFields(), ilMD\addAnnotation(), ilMD\addClassification(), ilMDLifecycle\addContribute(), ilMDMetaMetadata\addContribute(), ilMDEducational\addDescription(), ilMDGeneral\addDescription(), ilMDRelation\addDescription(), ilMD\addEducational(), ilMDContribute\addEntity(), ilMDTechnical\addFormat(), ilMD\addGeneral(), ilMDGeneral\addIdentifier(), ilMDMetaMetadata\addIdentifier(), ilMDRelation\addIdentifier_(), ilMDClassification\addKeyword(), ilMDGeneral\addKeyword(), ilMDEducational\addLanguage(), ilMDGeneral\addLanguage(), ilMD\addLifecycle(), ilMDTechnical\addLocation(), ilMD\addMetaMetadata(), ilMDTechnical\addOrComposite(), ilMD\addRelation(), ilMDOrComposite\addRequirement(), ilMDTechnical\addRequirement(), ilMD\addRights(), ilMDTaxonPath\addTaxon(), ilMDClassification\addTaxonPath(), ilMD\addTechnical(), ilMDEducational\addTypicalAgeRange(), ilMD\cloneMD(), ilMD\deleteAll(), ilMD\getAnnotationIds(), ilMD\getClassificationIds(), ilMDLifecycle\getContributeIds(), ilMDMetaMetadata\getContributeIds(), ilMDEducational\getDescriptionIds(), ilMDGeneral\getDescriptionIds(), ilMDRelation\getDescriptionIds(), ilMD\getEducational(), ilMDContribute\getEntityIds(), ilMDTechnical\getFormatIds(), ilMD\getGeneral(), ilMDRelation\getIdentifier_Ids(), ilMDGeneral\getIdentifierIds(), ilMDMetaMetadata\getIdentifierIds(), ilMDClassification\getKeywordIds(), ilMDGeneral\getKeywordIds(), ilMDEducational\getLanguageIds(), ilMDGeneral\getLanguageIds(), ilMD\getLifecycle(), ilMDTechnical\getLocationIds(), ilMD\getMetaMetadata(), ilMDTechnical\getOrComposite(), ilMDOrComposite\getOrCompositeId(), ilMDTechnical\getOrCompositeIds(), ilMD\getRelationIds(), ilMDOrComposite\getRequirementIds(), ilMDTechnical\getRequirementIds(), ilMD\getRights(), ilMDTaxonPath\getTaxonIds(), ilMDClassification\getTaxonPathIds(), ilMD\getTechnical(), ilMDEducational\getTypicalAgeRangeIds(), ilMD\toXML(), ilMDClassification\toXML(), ilMDContribute\toXML(), ilMDGeneral\toXML(), ilMDIdentifier\toXML(), ilMDLifecycle\toXML(), ilMDMetaMetadata\toXML(), ilMDOrComposite\toXML(), ilMDRelation\toXML(), and ilMDTaxonPath\toXML().

+ Here is the caller graph for this function:

◆ getObjType()

ilMDBase::getObjType ( )

Definition at line 121 of file class.ilMDBase.php.

121 : string
122 {
123 return $this->obj_type;
124 }
string $obj_type
type of the object (e.g st,pg,crs ...)

References $obj_type.

Referenced by ilMDAnnotation\__getFields(), ilMDClassification\__getFields(), ilMDContribute\__getFields(), ilMDDescription\__getFields(), ilMDEntity\__getFields(), ilMDFormat\__getFields(), ilMDGeneral\__getFields(), ilMDIdentifier\__getFields(), ilMDIdentifier_\__getFields(), ilMDKeyword\__getFields(), ilMDLanguage\__getFields(), ilMDLifecycle\__getFields(), ilMDLocation\__getFields(), ilMDMetaMetadata\__getFields(), ilMDRelation\__getFields(), ilMDRequirement\__getFields(), ilMDRights\__getFields(), ilMDTaxon\__getFields(), ilMDTaxonPath\__getFields(), ilMDTechnical\__getFields(), ilMDTypicalAgeRange\__getFields(), ilMD\addAnnotation(), ilMD\addClassification(), ilMDLifecycle\addContribute(), ilMDMetaMetadata\addContribute(), ilMDEducational\addDescription(), ilMDGeneral\addDescription(), ilMDRelation\addDescription(), ilMD\addEducational(), ilMDContribute\addEntity(), ilMDTechnical\addFormat(), ilMD\addGeneral(), ilMDGeneral\addIdentifier(), ilMDMetaMetadata\addIdentifier(), ilMDRelation\addIdentifier_(), ilMDClassification\addKeyword(), ilMDGeneral\addKeyword(), ilMDEducational\addLanguage(), ilMDGeneral\addLanguage(), ilMD\addLifecycle(), ilMDTechnical\addLocation(), ilMD\addMetaMetadata(), ilMDTechnical\addOrComposite(), ilMD\addRelation(), ilMDOrComposite\addRequirement(), ilMDTechnical\addRequirement(), ilMD\addRights(), ilMDTaxonPath\addTaxon(), ilMDClassification\addTaxonPath(), ilMD\addTechnical(), ilMDEducational\addTypicalAgeRange(), ilMD\cloneMD(), ilMDTechnical\getOrComposite(), ilMD\toXML(), ilMDGeneral\toXML(), and ilMDIdentifier\toXML().

+ Here is the caller graph for this function:

◆ getParentId()

◆ getParentType()

◆ getRBACId()

ilMDBase::getRBACId ( )

Definition at line 101 of file class.ilMDBase.php.

101 : int
102 {
103 return $this->rbac_id;
104 }
int $rbac_id
object id (NOT ref_id!) of rbac object (e.g for page objects the obj_id of the content object; for me...

References $rbac_id.

Referenced by ilMDAnnotation\__getFields(), ilMDClassification\__getFields(), ilMDContribute\__getFields(), ilMDDescription\__getFields(), ilMDEntity\__getFields(), ilMDFormat\__getFields(), ilMDGeneral\__getFields(), ilMDIdentifier\__getFields(), ilMDIdentifier_\__getFields(), ilMDKeyword\__getFields(), ilMDLanguage\__getFields(), ilMDLifecycle\__getFields(), ilMDLocation\__getFields(), ilMDMetaMetadata\__getFields(), ilMDRelation\__getFields(), ilMDRequirement\__getFields(), ilMDRights\__getFields(), ilMDTaxon\__getFields(), ilMDTaxonPath\__getFields(), ilMDTechnical\__getFields(), ilMDTypicalAgeRange\__getFields(), ilMD\addAnnotation(), ilMD\addClassification(), ilMDLifecycle\addContribute(), ilMDMetaMetadata\addContribute(), ilMDEducational\addDescription(), ilMDGeneral\addDescription(), ilMDRelation\addDescription(), ilMD\addEducational(), ilMDContribute\addEntity(), ilMDTechnical\addFormat(), ilMD\addGeneral(), ilMDGeneral\addIdentifier(), ilMDMetaMetadata\addIdentifier(), ilMDRelation\addIdentifier_(), ilMDClassification\addKeyword(), ilMDGeneral\addKeyword(), ilMDEducational\addLanguage(), ilMDGeneral\addLanguage(), ilMD\addLifecycle(), ilMDTechnical\addLocation(), ilMD\addMetaMetadata(), ilMDTechnical\addOrComposite(), ilMD\addRelation(), ilMDOrComposite\addRequirement(), ilMDTechnical\addRequirement(), ilMD\addRights(), ilMDTaxonPath\addTaxon(), ilMDClassification\addTaxonPath(), ilMD\addTechnical(), ilMDEducational\addTypicalAgeRange(), ilMD\cloneMD(), ilMD\deleteAll(), ilMD\getAnnotationIds(), ilMD\getClassificationIds(), ilMDLifecycle\getContributeIds(), ilMDMetaMetadata\getContributeIds(), ilMDEducational\getDescriptionIds(), ilMDGeneral\getDescriptionIds(), ilMDRelation\getDescriptionIds(), ilMD\getEducational(), ilMDContribute\getEntityIds(), ilMDTechnical\getFormat(), ilMDTechnical\getFormatIds(), ilMD\getGeneral(), ilMDRelation\getIdentifier_Ids(), ilMDGeneral\getIdentifierIds(), ilMDMetaMetadata\getIdentifierIds(), ilMDClassification\getKeywordIds(), ilMDGeneral\getKeywordIds(), ilMDEducational\getLanguageIds(), ilMDGeneral\getLanguageIds(), ilMD\getLifecycle(), ilMDTechnical\getLocationIds(), ilMD\getMetaMetadata(), ilMDTechnical\getOrComposite(), ilMDOrComposite\getOrCompositeId(), ilMDTechnical\getOrCompositeIds(), ilMD\getRelationIds(), ilMDOrComposite\getRequirementIds(), ilMDTechnical\getRequirementIds(), ilMD\getRights(), ilMDTaxonPath\getTaxonIds(), ilMDClassification\getTaxonPathIds(), ilMD\getTechnical(), ilMDEducational\getTypicalAgeRangeIds(), ilMD\toXML(), ilMDClassification\toXML(), ilMDContribute\toXML(), ilMDGeneral\toXML(), ilMDIdentifier\toXML(), ilMDLifecycle\toXML(), ilMDMetaMetadata\toXML(), ilMDOrComposite\toXML(), ilMDRelation\toXML(), and ilMDTaxonPath\toXML().

+ Here is the caller graph for this function:

◆ read()

◆ save()

◆ setExportMode()

ilMDBase::setExportMode ( bool  $a_export_mode = true)

Definition at line 160 of file class.ilMDBase.php.

160 : void
161 {
162 $this->export_mode = $a_export_mode;
163 }

◆ setMetaId()

ilMDBase::setMetaId ( int  $a_meta_id,
bool  $a_read_data = true 
)

◆ setObjId()

◆ setObjType()

◆ setParentId()

ilMDBase::setParentId ( int  $a_id)

◆ setParentType()

ilMDBase::setParentType ( string  $a_parent_type)

Definition at line 140 of file class.ilMDBase.php.

140 : void
141 {
142 $this->parent_type = $a_parent_type;
143 }

Referenced by ilMDContribute\read(), ilMDDescription\read(), ilMDEntity\read(), ilMDIdentifier\read(), ilMDIdentifier_\read(), ilMDKeyword\read(), ilMDLanguage\read(), ilMDLocation\read(), ilMDRequirement\read(), ilMDTaxon\read(), ilMDTaxonPath\read(), and ilMDTypicalAgeRange\read().

+ Here is the caller graph for this function:

◆ setRBACId()

◆ toXML()

◆ update()

◆ validate()

ilMDBase::validate ( )

Definition at line 170 of file class.ilMDBase.php.

170 : bool
171 {
172 return false;
173 }

Field Documentation

◆ $db

ilDBInterface ilMDBase::$db
protected

Definition at line 62 of file class.ilMDBase.php.

Referenced by ilMDRights\lookupRightsByTypeAndCopyright().

◆ $export_mode

bool ilMDBase::$export_mode = false
private

export mode, if true, first Identifier will be set to ILIAS/il_<INSTALL_ID>_<TYPE>_<ID>

Definition at line 59 of file class.ilMDBase.php.

Referenced by getExportMode().

◆ $log

ilLogger ilMDBase::$log
protected

Definition at line 61 of file class.ilMDBase.php.

◆ $meta_id

int ilMDBase::$meta_id = null
private

Definition at line 51 of file class.ilMDBase.php.

Referenced by getMetaId().

◆ $obj_id

int ilMDBase::$obj_id
private

obj_id (e.g for structure objects the obj_id of the structure object)

Definition at line 44 of file class.ilMDBase.php.

Referenced by getObjId().

◆ $obj_type

string ilMDBase::$obj_type
private

type of the object (e.g st,pg,crs ...)

Definition at line 49 of file class.ilMDBase.php.

Referenced by getObjType().

◆ $parent_id

int ilMDBase::$parent_id
private

Definition at line 52 of file class.ilMDBase.php.

Referenced by getParentId().

◆ $parent_type

string ilMDBase::$parent_type
private

Definition at line 53 of file class.ilMDBase.php.

Referenced by getParentType().

◆ $rbac_id

int ilMDBase::$rbac_id
private

object id (NOT ref_id!) of rbac object (e.g for page objects the obj_id of the content object; for media objects this is set to 0, because their object id are not assigned to ref ids)

Definition at line 39 of file class.ilMDBase.php.

Referenced by getRBACId().


The documentation for this class was generated from the following file: