ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMD Class Reference
+ Inheritance diagram for ilMD:
+ Collaboration diagram for ilMD:

Public Member Functions

 ilMD ($a_rbac_id, $a_obj_id, $a_type)
getGeneral ()
addGeneral ()
getLifecycle ()
addLifecycle ()
getMetaMetadata ()
addMetaMetadata ()
getTechnical ()
addTechnical ()
getEducational ()
addEducational ()
getRights ()
addRights ()
getRelationIds ()
getRelation ($a_relation_id)
addRelation ()
getAnnotationIds ()
getAnnotation ($a_annotation_id)
addAnnotation ()
getClassificationIds ()
getClassification ($a_classification_id)
addClassification ()
 toXML (&$writer)
cloneMD ($a_rbac_id, $a_obj_id, $a_obj_type)
 deleteAll ()
 ilMD ($a_rbac_id, $a_obj_id, $a_type)
getGeneral ()
addGeneral ()
getLifecycle ()
addLifecycle ()
getMetaMetadata ()
addMetaMetadata ()
getTechnical ()
addTechnical ()
getEducational ()
addEducational ()
getRights ()
addRights ()
getRelationIds ()
getRelation ($a_relation_id)
addRelation ()
getAnnotationIds ()
getAnnotation ($a_annotation_id)
addAnnotation ()
getClassificationIds ()
getClassification ($a_classification_id)
addClassification ()
 toXML (&$writer)
 deleteAll ()
 _deleteAllByType ($a_type)
- Public Member Functions inherited from ilMDBase
 ilMDBase ($a_rbac_id=0, $a_obj_id=0, $a_type=0)
 setRBACId ($a_id)
 getRBACId ()
 setObjId ($a_id)
 getObjId ()
 setObjType ($a_type)
 getObjType ()
 setMetaId ($a_meta_id, $a_read_data=true)
 getMetaId ()
 setParentType ($a_parent_type)
 getParentType ()
 setParentId ($a_id)
 getParentId ()
 setExportMode ($a_export_mode=true)
 getExportMode ()
 validate ()
 update ()
 save ()
 delete ()
 ilMDBase ($a_rbac_id=0, $a_obj_id=0, $a_type=0)
 setRBACId ($a_id)
 getRBACId ()
 setObjId ($a_id)
 getObjId ()
 setObjType ($a_type)
 getObjType ()
 setMetaId ($a_meta_id, $a_read_data=true)
 getMetaId ()
 setParentType ($a_parent_type)
 getParentType ()
 setParentId ($a_id)
 getParentId ()
 validate ()
 update ()
 save ()
 delete ()

Additional Inherited Members

- Data Fields inherited from ilMDBase
 $rbac_id
 $obj_id
 $obj_type
 $export_mode = false

Detailed Description

Definition at line 34 of file class.ilMD.php.

Member Function Documentation

ilMD::_deleteAllByType (   $a_type)

Definition at line 371 of file class.ilMD.php.

References $ilDB, $query, and $res.

{
global $ilDB;
$tables = array('il_meta_annotation',
'il_meta_classification',
'il_meta_contribute',
'il_meta_description',
'il_meta_educational',
'il_meta_entity',
'il_meta_format',
'il_meta_general',
'il_meta_identifier',
'il_meta_identifier_',
'il_meta_keyword',
'il_meta_language',
'il_meta_lifecycle',
'il_meta_location',
'il_meta_meta_data',
'il_meta_relation',
'il_meta_requirement',
'il_meta_rights',
'il_meta_taxon',
'il_meta_taxon_path',
'il_meta_technical',
'il_meta_typical_age_range');
foreach($tables as $table)
{
$query = "DELETE FROM ".$table." ".
"WHERE obj_type = ".$ilDB->quote($a_type)." ";
$res = $ilDB->query($query);
}
return true;
}
& ilMD::addAnnotation ( )

Definition at line 227 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
$ann =& new ilMDAnnotation($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $ann;
}

+ Here is the call graph for this function:

& ilMD::addAnnotation ( )

Definition at line 236 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
$ann =& new ilMDAnnotation($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $ann;
}

+ Here is the call graph for this function:

& ilMD::addClassification ( )

Definition at line 256 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
$cla =& new ilMDClassification($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $cla;
}

+ Here is the call graph for this function:

& ilMD::addClassification ( )

Definition at line 265 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/MetaData/classes/class.ilMDClassification.php';
$cla =& new ilMDClassification($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $cla;
}

+ Here is the call graph for this function:

& ilMD::addEducational ( )

Definition at line 148 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDEducational.php';
$edu =& new ilMDEducational($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $edu;
}

+ Here is the call graph for this function:

& ilMD::addEducational ( )

Definition at line 157 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/MetaData/classes/class.ilMDEducational.php';
$edu =& new ilMDEducational($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $edu;
}

+ Here is the call graph for this function:

& ilMD::addGeneral ( )

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

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDGeneral.php';
$gen =& new ilMDGeneral($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $gen;
}

+ Here is the call graph for this function:

& ilMD::addGeneral ( )

Definition at line 68 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/MetaData/classes/class.ilMDGeneral.php';
$gen =& new ilMDGeneral($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $gen;
}

+ Here is the call graph for this function:

& ilMD::addLifecycle ( )

Definition at line 82 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLifecycle.php';
$lif =& new ilMDLifecycle($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $lif;
}

+ Here is the call graph for this function:

& ilMD::addLifecycle ( )

Definition at line 91 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/MetaData/classes/class.ilMDLifecycle.php';
$lif =& new ilMDLifecycle($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $lif;
}

+ Here is the call graph for this function:

& ilMD::addMetaMetadata ( )

Definition at line 104 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDMetaMetadata.php';
$met =& new ilMDMetaMetadata($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $met;
}

+ Here is the call graph for this function:

& ilMD::addMetaMetadata ( )

Definition at line 113 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/MetaData/classes/class.ilMDMetaMetadata.php';
$met =& new ilMDMetaMetadata($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $met;
}

+ Here is the call graph for this function:

& ilMD::addRelation ( )

Definition at line 198 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
$rel =& new ilMDRelation($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $rel;
}

+ Here is the call graph for this function:

& ilMD::addRelation ( )

Definition at line 207 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/MetaData/classes/class.ilMDRelation.php';
$rel =& new ilMDRelation($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $rel;
}

+ Here is the call graph for this function:

& ilMD::addRights ( )

Definition at line 169 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRights.php';
$rig =& new ilMDRights($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $rig;
}

+ Here is the call graph for this function:

& ilMD::addRights ( )

Definition at line 178 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/MetaData/classes/class.ilMDRights.php';
$rig =& new ilMDRights($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $rig;
}

+ Here is the call graph for this function:

& ilMD::addTechnical ( )

Definition at line 126 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDTechnical.php';
$tec =& new ilMDTechnical($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $tec;
}

+ Here is the call graph for this function:

& ilMD::addTechnical ( )

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

References ilMDBase\getObjId(), ilMDBase\getObjType(), and ilMDBase\getRBACId().

{
include_once 'Services/MetaData/classes/class.ilMDTechnical.php';
$tec =& new ilMDTechnical($this->getRBACId(),$this->getObjId(),$this->getObjType());
return $tec;
}

+ Here is the call graph for this function:

& ilMD::cloneMD (   $a_rbac_id,
  $a_obj_id,
  $a_obj_type 
)

Definition at line 361 of file class.ilMD.php.

References ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getRBACId(), and ilSaxParser\startParsing().

Referenced by ilGlossaryTerm\_copyTerm(), ilLMPageObject\_splitPage(), ilLMObject\pasteTree(), and ilSCORM2004Node\pasteTree().

{
include_once 'Services/MetaData/classes/class.ilMD2XML.php';
// this method makes an xml export of the original meta data set
// and uses this xml string to clone the object
$md2xml = new ilMD2XML($this->getRBACId(),$this->getObjId(),$this->getObjType());
$md2xml->startExport();
// Create copier instance. For pg objects one could instantiate a ilMDXMLPageCopier class
switch($a_obj_type)
{
default:
include_once 'Services/MetaData/classes/class.ilMDXMLCopier.php';
$mdxmlcopier =& new ilMDXMLCopier($md2xml->getXML(),$a_rbac_id,$a_obj_id,$a_obj_type);
break;
}
$mdxmlcopier->startParsing();
return $mdxmlcopier->getMDObject();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilMD::deleteAll ( )

Definition at line 334 of file class.ilMD.php.

References $ilDB, $query, $res, ilMDBase\getObjId(), and ilMDBase\getRBACId().

{
global $ilDB;
$tables = array('il_meta_annotation',
'il_meta_classification',
'il_meta_contribute',
'il_meta_description',
'il_meta_educational',
'il_meta_entity',
'il_meta_format',
'il_meta_general',
'il_meta_identifier',
'il_meta_identifier_',
'il_meta_keyword',
'il_meta_language',
'il_meta_lifecycle',
'il_meta_location',
'il_meta_meta_data',
'il_meta_relation',
'il_meta_requirement',
'il_meta_rights',
'il_meta_taxon',
'il_meta_taxon_path',
'il_meta_technical',
'il_meta_typical_age_range');
foreach($tables as $table)
{
$query = "DELETE FROM ".$table." ".
"WHERE rbac_id = ".$ilDB->quote($this->getRBACId())." ".
"AND obj_id = ".$ilDB->quote($this->getObjId());
$res = $ilDB->query($query);
}
return true;
}

+ Here is the call graph for this function:

ilMD::deleteAll ( )

Definition at line 383 of file class.ilMD.php.

References $ilDB, $query, ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by ilSoapCourseAdministration\updateCourse().

{
global $ilDB;
$tables = array('il_meta_annotation',
'il_meta_classification',
'il_meta_contribute',
'il_meta_description',
'il_meta_educational',
'il_meta_entity',
'il_meta_format',
'il_meta_general',
'il_meta_identifier',
'il_meta_identifier_',
'il_meta_keyword',
'il_meta_language',
'il_meta_lifecycle',
'il_meta_location',
'il_meta_meta_data',
'il_meta_relation',
'il_meta_requirement',
'il_meta_rights',
'il_meta_taxon',
'il_meta_taxon_path',
'il_meta_technical',
'il_meta_tar');
foreach($tables as $table)
{
$query = "DELETE FROM ".$table." ".
"WHERE rbac_id = ".$ilDB->quote($this->getRBACId())." ".
"AND obj_id = ".$ilDB->quote($this->getObjId());
$this->db->query($query);
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilMD::getAnnotation (   $a_annotation_id)

Definition at line 214 of file class.ilMD.php.

{
if(!$a_annotation_id)
{
return false;
}
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
$ann =& new ilMDAnnotation();
$ann->setMetaId($a_annotation_id);
return $ann;
}
& ilMD::getAnnotation (   $a_annotation_id)

Definition at line 223 of file class.ilMD.php.

Referenced by toXML().

{
if(!$a_annotation_id)
{
return false;
}
include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
$ann =& new ilMDAnnotation();
$ann->setMetaId($a_annotation_id);
return $ann;
}

+ Here is the caller graph for this function:

& ilMD::getAnnotationIds ( )

Definition at line 208 of file class.ilMD.php.

References ilMDAnnotation\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDAnnotation.php';
return ilMDAnnotation::_getIds($this->getRBACId(),$this->getObjId());
}

+ Here is the call graph for this function:

& ilMD::getAnnotationIds ( )

Definition at line 217 of file class.ilMD.php.

References ilMDAnnotation\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

{
include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
return ilMDAnnotation::_getIds($this->getRBACId(),$this->getObjId());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilMD::getClassification (   $a_classification_id)

Definition at line 242 of file class.ilMD.php.

{
if(!$a_classification_id)
{
return false;
}
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
$cla =& new ilMDClassification();
$cla->setMetaId($a_classification_id);
return $cla;
}
& ilMD::getClassification (   $a_classification_id)

Definition at line 251 of file class.ilMD.php.

Referenced by toXML().

{
if(!$a_classification_id)
{
return false;
}
include_once 'Services/MetaData/classes/class.ilMDClassification.php';
$cla =& new ilMDClassification();
$cla->setMetaId($a_classification_id);
return $cla;
}

+ Here is the caller graph for this function:

& ilMD::getClassificationIds ( )

Definition at line 236 of file class.ilMD.php.

References ilMDClassification\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDClassification.php';
return ilMDClassification::_getIds($this->getRBACId(),$this->getObjId());
}

+ Here is the call graph for this function:

& ilMD::getClassificationIds ( )

Definition at line 245 of file class.ilMD.php.

References ilMDClassification\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

{
include_once 'Services/MetaData/classes/class.ilMDClassification.php';
return ilMDClassification::_getIds($this->getRBACId(),$this->getObjId());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilMD::getEducational ( )

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

References ilMDEducational\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDEducational.php';
if($id = ilMDEducational::_getId($this->getRBACId(),$this->getObjId()))
{
$edu =& new ilMDEducational();
$edu->setMetaId($id);
return $edu;
}
return false;
}

+ Here is the call graph for this function:

& ilMD::getEducational ( )

Definition at line 144 of file class.ilMD.php.

References ilMDEducational\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

{
include_once 'Services/MetaData/classes/class.ilMDEducational.php';
if($id = ilMDEducational::_getId($this->getRBACId(),$this->getObjId()))
{
$edu =& new ilMDEducational();
$edu->setMetaId($id);
return $edu;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilMD::getGeneral ( )

Definition at line 46 of file class.ilMD.php.

References ilMDGeneral\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDGeneral.php';
if($id = ilMDGeneral::_getId($this->getRBACId(),$this->getObjId()))
{
$gen =& new ilMDGeneral();
$gen->setMetaId($id);
return $gen;
}
return false;
}

+ Here is the call graph for this function:

& ilMD::getLifecycle ( )

Definition at line 69 of file class.ilMD.php.

References ilMDLifecycle\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLifecycle.php';
if($id = ilMDLifecycle::_getId($this->getRBACId(),$this->getObjId()))
{
$lif =& new ilMDLifecycle();
$lif->setMetaId($id);
return $lif;
}
return false;
}

+ Here is the call graph for this function:

& ilMD::getLifecycle ( )

Definition at line 78 of file class.ilMD.php.

References ilMDLifecycle\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

{
include_once 'Services/MetaData/classes/class.ilMDLifecycle.php';
if($id = ilMDLifecycle::_getId($this->getRBACId(),$this->getObjId()))
{
$lif =& new ilMDLifecycle();
$lif->setMetaId($id);
return $lif;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilMD::getMetaMetadata ( )

Definition at line 91 of file class.ilMD.php.

References ilMDMetaMetadata\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDMetaMetadata.php';
if($id = ilMDMetaMetadata::_getId($this->getRBACId(),$this->getObjId()))
{
$met =& new ilMDMetaMetadata();
$met->setMetaId($id);
return $met;
}
return false;
}

+ Here is the call graph for this function:

& ilMD::getMetaMetadata ( )

Definition at line 100 of file class.ilMD.php.

References ilMDMetaMetadata\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

{
include_once 'Services/MetaData/classes/class.ilMDMetaMetadata.php';
if($id = ilMDMetaMetadata::_getId($this->getRBACId(),$this->getObjId()))
{
$met =& new ilMDMetaMetadata();
$met->setMetaId($id);
return $met;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilMD::getRelation (   $a_relation_id)

Definition at line 184 of file class.ilMD.php.

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
if(!$a_relation_id)
{
return false;
}
$rel =& new ilMDRelation();
$rel->setMetaId($a_relation_id);
return $rel;
}
& ilMD::getRelation (   $a_relation_id)

Definition at line 193 of file class.ilMD.php.

Referenced by toXML().

{
include_once 'Services/MetaData/classes/class.ilMDRelation.php';
if(!$a_relation_id)
{
return false;
}
$rel =& new ilMDRelation();
$rel->setMetaId($a_relation_id);
return $rel;
}

+ Here is the caller graph for this function:

& ilMD::getRelationIds ( )

Definition at line 178 of file class.ilMD.php.

References ilMDRelation\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
return ilMDRelation::_getIds($this->getRBACId(),$this->getObjId());
}

+ Here is the call graph for this function:

& ilMD::getRelationIds ( )

Definition at line 187 of file class.ilMD.php.

References ilMDRelation\_getIds(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

{
include_once 'Services/MetaData/classes/class.ilMDRelation.php';
return ilMDRelation::_getIds($this->getRBACId(),$this->getObjId());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilMD::getRights ( )

Definition at line 156 of file class.ilMD.php.

References ilMDRights\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRights.php';
if($id = ilMDRights::_getId($this->getRBACId(),$this->getObjId()))
{
$rig =& new ilMDRights();
$rig->setMetaId($id);
return $rig;
}
return false;
}

+ Here is the call graph for this function:

& ilMD::getRights ( )

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

References ilMDRights\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

{
include_once 'Services/MetaData/classes/class.ilMDRights.php';
if($id = ilMDRights::_getId($this->getRBACId(),$this->getObjId()))
{
$rig =& new ilMDRights();
$rig->setMetaId($id);
return $rig;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilMD::getTechnical ( )

Definition at line 113 of file class.ilMD.php.

References ilMDTechnical\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDTechnical.php';
if($id = ilMDTechnical::_getId($this->getRBACId(),$this->getObjId()))
{
$tec =& new ilMDTechnical();
$tec->setMetaId($id);
return $tec;
}
return false;
}

+ Here is the call graph for this function:

& ilMD::getTechnical ( )

Definition at line 122 of file class.ilMD.php.

References ilMDTechnical\_getId(), ilMDBase\getObjId(), and ilMDBase\getRBACId().

Referenced by toXML().

{
include_once 'Services/MetaData/classes/class.ilMDTechnical.php';
if($id = ilMDTechnical::_getId($this->getRBACId(),$this->getObjId()))
{
$tec =& new ilMDTechnical();
$tec->setMetaId($id);
return $tec;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilMD::ilMD (   $a_rbac_id,
  $a_obj_id,
  $a_type 
)

Definition at line 41 of file class.ilMD.php.

References ilMDBase\ilMDBase().

{
parent::ilMDBase($a_rbac_id,$a_obj_id,$a_type);
}

+ Here is the call graph for this function:

ilMD::ilMD (   $a_rbac_id,
  $a_obj_id,
  $a_type 
)

Definition at line 50 of file class.ilMD.php.

References ilMDBase\ilMDBase().

{
parent::ilMDBase($a_rbac_id,$a_obj_id,$a_type);
}

+ Here is the call graph for this function:

ilMD::toXML ( $writer)

Reimplemented from ilMDBase.

Definition at line 270 of file class.ilMD.php.

References getAnnotation(), getAnnotationIds(), getClassification(), getClassificationIds(), getEducational(), getGeneral(), getLifecycle(), getMetaMetadata(), getRelation(), getRelationIds(), getRights(), and getTechnical().

{
$writer->xmlStartTag('Migration/DBUpdate_426');
// General
if(is_object($gen =& $this->getGeneral()))
{
$gen->toXML($writer);
}
// Lifecycle
if(is_object($lif =& $this->getLifecycle()))
{
$lif->toXML($writer);
}
// Meta-Metadata
if(is_object($met =& $this->getMetaMetadata()))
{
$met->toXML($writer);
}
// Technical
if(is_object($tec =& $this->getTechnical()))
{
$tec->toXML($writer);
}
// Educational
if(is_object($edu =& $this->getEducational()))
{
$edu->toXML($writer);
}
// Rights
if(is_object($rig =& $this->getRights()))
{
$rig->toXML($writer);
}
// Relations
foreach($this->getRelationIds() as $id)
{
$rel =& $this->getRelation($id);
$rel->toXML($writer);
}
// Annotations
foreach($this->getAnnotationIds() as $id)
{
$ann =& $this->getAnnotation($id);
$ann->toXML($writer);
}
// Classification
foreach($this->getClassificationIds() as $id)
{
$cla =& $this->getClassification($id);
$cla->toXML($writer);
}
$writer->xmlEndTag('Migration/DBUpdate_426');
}

+ Here is the call graph for this function:

ilMD::toXML ( $writer)

Reimplemented from ilMDBase.

Definition at line 279 of file class.ilMD.php.

References getAnnotation(), getAnnotationIds(), getClassification(), getClassificationIds(), getEducational(), ilMDBase\getExportMode(), getGeneral(), getLifecycle(), getMetaMetadata(), ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getRBACId(), getRelation(), getRelationIds(), getRights(), and getTechnical().

{
$writer->xmlStartTag('MetaData');
// General
if(is_object($gen =& $this->getGeneral()))
{
$gen->setExportMode($this->getExportMode());
$gen->toXML($writer);
}
else
{
// Defaults
include_once 'Services/MetaData/classes/class.ilMDGeneral.php';
$gen = new ilMDGeneral($this->getRBACId(),$this->getObjId(), $this->getObjType()); // added type, alex, 31 Oct 2007
$gen->setExportMode($this->getExportMode());
$gen->toXML($writer);
}
// Lifecycle
if(is_object($lif =& $this->getLifecycle()))
{
$lif->toXML($writer);
}
// Meta-Metadata
if(is_object($met =& $this->getMetaMetadata()))
{
$met->toXML($writer);
}
// Technical
if(is_object($tec =& $this->getTechnical()))
{
$tec->toXML($writer);
}
// Educational
if(is_object($edu =& $this->getEducational()))
{
$edu->toXML($writer);
}
// Rights
if(is_object($rig =& $this->getRights()))
{
$rig->toXML($writer);
}
// Relations
foreach($this->getRelationIds() as $id)
{
$rel =& $this->getRelation($id);
$rel->toXML($writer);
}
// Annotations
foreach($this->getAnnotationIds() as $id)
{
$ann =& $this->getAnnotation($id);
$ann->toXML($writer);
}
// Classification
foreach($this->getClassificationIds() as $id)
{
$cla =& $this->getClassification($id);
$cla->toXML($writer);
}
$writer->xmlEndTag('MetaData');
}

+ Here is the call graph for this function:


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