Exemplo n.º 1
0
 /**
  * test Format
  * @group IL_Init
  * @return
  */
 public function testFormat()
 {
     include_once './Services/MetaData/classes/class.ilMDFormat.php';
     include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
     $con = new ilMDFormat(1, 2, 'xxx');
     $con->setFormat('Easy');
     $ret = $con->save();
     $this->assertGreaterThan(0, $ret);
     $con->setFormat('Medium');
     $con->update();
     $con->read();
     $desc = $con->getFormat();
     $this->assertEquals('Medium', $desc);
     $con->delete();
 }
 function &getFormatIds()
 {
     include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDFormat.php';
     return ilMDFormat::_getIds($this->getRBACId(), $this->getObjId());
 }
Exemplo n.º 3
0
 function &getFormatIds()
 {
     include_once 'Services/MetaData/classes/class.ilMDFormat.php';
     return ilMDFormat::_getIds($this->getRBACId(), $this->getObjId());
 }