/** * 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; }