Example #1
0
 public function saveClient(DPerson $client)
 {
     $n = $client->getName();
     $s = $client->getSurname();
     $SSN = $client->getSSN();
     $p = $client->getPhone();
     $query = "INSERT INTO person(name, surname, SSN, phone, mail, birth, password, status,code, type) VALUES ('{$n}',\n\t\t\t'{$s}','{$SSN}','{$p}',null,null,null,0,null,0)";
     $temp = $this->db->query($query);
     if (!$temp) {
         throw new Exception("Query Failed saveClient FPerson");
     }
 }
Example #2
0
 private function __construct10($n, $s, $SSN, $p, $m, $b, $pass, $stat, $c, $t)
 {
     parent::__construct($n, $s, $SSN, $p);
     $this->setMail($m);
     $this->setBirth($b);
     $this->setPassword($pass);
     $this->setStatus($stat);
     $this->setCode($c);
     $this->setType($t);
 }