/** * markDirty * * @return void */ protected function markDirty() { $this->checkNotes(); parent::markDirty(); }
/** * loadMatches * * @param KVDthes_Matchable $term * @return KVDthes_Matches */ public function loadMatches(KVDthes_Matchable $term) { $stmt = $this->conn->prepare($this->getLoadMatchesStatement()); $stmt->bindValue(1, $term->getId(), PDO::PARAM_INT); $stmt->execute(); while ($row = $stmt->fetch(PDO::FETCH_OBJ)) { $cm = $this->sessie->getMapper($this->getDomainObjectClass($row->concept_thesaurus_id)); $term->loadMatch(new KVDthes_Match($row->match_type, $cm->doLoad($row->concept_id, $row))); } $term->setLoadState(KVDthes_Matchable::LS_MATCH); return $term; }
/** * __toString * * @return string */ public function __toString() { return 'Match ' . $this->type . ' ' . $this->matchable->getOmschrijving(); }