/**
  * visit
  *
  * @param KVDthes_Term $node
  * @return void
  */
 public function visit(KVDthes_Term $node)
 {
     if ($node->hasRelations(KVDthes_Relation::REL_NT)) {
         $this->currItem = new KVDthes_DojoDatastoreComposite($node->getId(), $node->getQualifiedTerm(), $this->depth, $node->getType()->getId());
     } else {
         $this->currItem = new KVDthes_DojoDatastoreTerm($node->getId(), $node->getQualifiedTerm(), $this->depth, $node->getType()->getId());
     }
     $this->result->addItem($this->currItem);
     return true;
 }
 /**
  * visit
  *
  * @param KVDthes_Term $node
  * @return void
  */
 public function visit(KVDthes_Term $node)
 {
     $this->result .= $this->pad() . "<li>\n";
     $this->depth++;
     $this->result .= $this->pad() . '<p><a href="javascript:loadDetail(' . $node->getId() . ');">' . $node->getQualifiedTerm() . "</a></p>\n";
     $this->depth--;
     return true;
 }
 /**
  * visit
  *
  * @param KVDthes_Term $node
  * @return void
  */
 public function visit(KVDthes_Term $node)
 {
     $this->result .= $this->pad() . "<li>\n";
     $this->depth++;
     $this->result .= $this->pad() . '<p>' . $node->getQualifiedTerm() . "</p>\n";
     $this->depth--;
     return true;
 }
 /**
  * renderTerm
  *
  * @param   KVDthes_Term $term
  * @return  string
  */
 public function renderTerm(KVDthes_Term $term)
 {
     return '<p>' . $term->getQualifiedTerm() . '</p>';
 }
 /**
  * visit
  *
  * @param KVDthes_Term $node
  * @return void
  */
 public function visit(KVDthes_Term $node)
 {
     $this->result .= $this->pad() . "<li>\n";
     $this->depth++;
     $this->result .= $this->pad() . '<p><a href="' . $this->ro->gen($this->termRoute, array($this->termIdParameter => $node->getId())) . '">' . $node->getQualifiedTerm() . "</a></p>\n";
     $this->depth--;
     return true;
 }
 /**
  * visit
  *
  * @param KVDthes_Term $node
  * @return void
  */
 public function visit(KVDthes_Term $node)
 {
     $this->result .= $this->depth . $this->pad() . $node->getQualifiedTerm() . "\n";
     return true;
 }
Exemplo n.º 7
0
 public function testGetQualifiedTerm()
 {
     $this->assertEquals('kapellen (klein erfgoed)', $this->object->getQualifiedTerm());
 }