function &getMetaMetadata() { 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; }
/** * test MetaData * @group IL_Init * @return */ public function testMetaMetadata() { include_once './Services/MetaData/classes/class.ilMDMetaMetadata.php'; include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php'; $con = new ilMDMetaMetadata(1, 2, 'xxx'); $con->setMetaDataScheme(1); $ret = $con->save(); $this->assertGreaterThan(0, $ret); $con->setMetaDataScheme(2); $con->update(); $con->read(); $desc = $con->getMetaDataScheme(); $this->assertEquals('LOM v 1.0', $desc); $con->delete(); }