Esempio n. 1
0
 public function EditPhone($id, $num)
 {
     if ($id == null || $id < 1 || ASPM::VerifyPhoneNumberFormat($num) === false) {
         return false;
     }
     $tmp = $this->_dbAdapt->getLnk();
     $stmt = $tmp->prepare("UPDATE Client SET Phone = ? WHERE Id = ?");
     $stmt->bind_param("di", $num, $id);
     $stmt->execute();
     $stmt->close();
     unset($tmp);
     unset($stmt);
     return true;
 }
Esempio n. 2
0
 public function setPhone($num = null)
 {
     if (ASPM::VerifyPhoneNumberFormat($num) === false) {
         return null;
     }
     $this->Phone = ASPM::VerifyPhoneNumberFormat($num);
 }