Ejemplo n.º 1
0
 /**
  * getRelatedTerms
  *
  * @return  KVDdom_DomainObjectCollection
  */
 public function getRelatedTerms()
 {
     $this->checkRelations();
     $it = $this->relations->getRTIterator();
     $arr = array();
     foreach ($it as $r) {
         $arr[] = $r->getTerm();
     }
     return new KVDdom_DomainObjectCollection($arr);
 }
Ejemplo n.º 2
0
 public function testGetRTIterator()
 {
     $this->object->addRelation($this->relation);
     $this->assertInstanceOf('KVDthes_RelationTypeIterator', $this->object->getRTIterator());
     $this->assertEquals(count($this->object->getRTIterator()), 1);
 }