コード例 #1
0
ファイル: KVDthes_Term.class.php プロジェクト: Tjoosten/kvd
 /**
  * getNonPreferredTerms
  *
  * @return KVDthes_RelationsIterator
  */
 public function getNonPreferredTerms()
 {
     $this->checkRelations();
     $it = $this->relations->getUFIterator();
     $arr = array();
     foreach ($it as $r) {
         $arr[] = $r->getTerm();
     }
     return new KVDdom_DomainObjectCollection($arr);
 }
コード例 #2
0
 public function testGetUFIterator()
 {
     $this->object->addRelation($this->relation);
     $this->assertInstanceOf('KVDthes_RelationTypeIterator', $this->object->getUFIterator());
     $this->assertEquals(count($this->object->getUFIterator()), 0);
 }