Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 public function testGetUFIterator()
 {
     $this->object->addRelation($this->relation);
     $this->assertInstanceOf('KVDthes_RelationTypeIterator', $this->object->getUFIterator());
     $this->assertEquals(count($this->object->getUFIterator()), 0);
 }