Exemple #1
0
 function setDatabaseWaarde()
 {
     try {
         global $pdo;
         $query = "\n\t\t\tUPDATE \n\t\t\t\tmaster\n\t\t\tSET \n\t\t\t\tvoornaam = " . parent::getVoornaam() . ", \n\t\t\t\tachternaam = " . parent::getAchternaam() . ", \n\t\t\t\tgeboortedatum = " . parent::getGeboortedatum()->naarDatabaseWaarde() . ", \n\t\t\t\tbeschrijving = " . parent::getBeschrijving() . ",\n\t\t\tWHERE \n\t\t\t\tid = " . $this->getID() . ";";
         $dataPDO = $pdo->prepare($query);
         $dataPDO->execute();
     } catch (PDOException $e) {
         throw new Exception($e);
     }
 }
Exemple #2
0
 function getListViewData()
 {
     return "<div style=\"width: 100%; height: 4em; position: relative; \">\n\t\t\t\t\t<div style=\"color: black; position: absolute; top: 1.5em;\">\n\t\t\t\t\t\t<a style=\"color: black; font-family: Arial, sans-serif; text-decoration: none;\" href=\"/patienten_info.php?id=" . $this->getID() . "\">\n\t\t\t\t\t\t\t" . parent::getAchternaam() . ", " . parent::getVoornaam() . "\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style=\"color: black; position: absolute; top: 0; right: 0;\">\n\t\t\t\t\t\t<img style=\"height: 4em; width: 4em;\" src=\"./profile_picture/" . $this->getProfielfoto() . "\">\n\t\t\t\t\t</div>\n\t\t\t\t</div><hr>";
 }