function &getRelationIds() { include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php'; return ilMDRelation::_getIds($this->getRBACId(), $this->getObjId()); }
/** * test MetaData * @group IL_Init * @return */ public function testRelation() { include_once './Services/MetaData/classes/class.ilMDRelation.php'; include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php'; $con = new ilMDRelation(1, 2, 'xxx'); $con->setKind('IsVersionOf'); $ret = $con->save(); $this->assertGreaterThan(0, $ret); $con->setKind('HasVersion'); $con->update(); $con->read(); $desc = $con->getKind(); $this->assertEquals('HasVersion', $desc); $con->delete(); }
function &getRelationIds() { include_once 'Services/MetaData/classes/class.ilMDRelation.php'; return ilMDRelation::_getIds($this->getRBACId(), $this->getObjId()); }