示例#1
0
 function &getRelationIds()
 {
     include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDRelation.php';
     return ilMDRelation::_getIds($this->getRBACId(), $this->getObjId());
 }
示例#2
0
 /**
  * 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();
 }
示例#3
0
 function &getRelationIds()
 {
     include_once 'Services/MetaData/classes/class.ilMDRelation.php';
     return ilMDRelation::_getIds($this->getRBACId(), $this->getObjId());
 }