Ejemplo n.º 1
0
 /**
  * hasNTRelations
  *
  * @return boolean
  */
 public function hasNTRelations()
 {
     $this->checkRelations();
     return count($this->relations->getNTIterator()) > 0;
 }
 /**
  * getIterator
  *
  * @param   KVDthes_Relations $relations
  * @return  KVDthes_RelationsIterator
  */
 public function getIterator(KVDthes_Relations $relations)
 {
     return $relations->getNTIterator();
 }
Ejemplo n.º 3
0
 /**
  * @todo Implement testGetNTIterator().
  */
 public function testGetNTIterator()
 {
     $this->object->addRelation($this->relation);
     $this->assertInstanceOf('KVDthes_RelationTypeIterator', $this->object->getNTIterator());
     $this->assertEquals(count($this->object->getNTIterator()), 0);
 }