/** * loadNotes * * Deze methode zal alle notes (scope, source, indexing, history) van een term laden. * @param KVDthes_Term $termObj * @return KVDthes_Term */ public function loadNotes(KVDthes_Term $termObj) { $stmt = $this->conn->prepare($this->getLoadNotesStatement()); $stmt->bindValue(1, $termObj->getId(), PDO::PARAM_INT); $stmt->execute(); if (!($row = $stmt->fetch(PDO::FETCH_OBJ))) { $termObj->setLoadState(KVDthes_Term::LS_NOTES); return $termObj; } $notes = array('scopeNote' => $row->scope_note, 'sourceNote' => $row->source_note, 'indexingNote' => $row->indexing_note, 'historyNote' => $row->history_note); $termObj->loadNotes($notes); return $termObj; }