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