Пример #1
0
 /**
  * Set the queued payment ID
  * @param $queuedPaymentId int
  */
 function setQueuedPaymentId($queuedPaymentId)
 {
     if (Config::getVar('debug', 'deprecation_warnings')) {
         trigger_error('Deprecated function.');
     }
     return parent::setPaymentId($queuedPaymentId);
 }
Пример #2
0
 function setQueuedPaymentId($queuedPaymentId)
 {
     parent::setPaymentId($queuedPaymentId);
 }
Пример #3
0
 /**
  * Set the  ID of the payment.
  * @param $queuedPaymentId int
  */
 function setCompletedPaymentId($queuedPaymentId)
 {
     parent::setPaymentId($queuedPaymentId);
 }
 public function getPaymentById($payId)
 {
     $stmh = $this->db->prepare("SELECT * from Payment WHERE paymentId = :id");
     $sid = intval($payId);
     $stmh->bindParam(':id', $sid);
     $stmh->execute();
     $stmh->setFetchMode(\PDO::FETCH_ASSOC);
     if ($row = $stmh->fetch()) {
         $paymentData = new Payment();
         $paymentData->setPaymentDate($row['paymentDate']);
         $paymentData->setHours($row['hours']);
         $paymentData->setPaymentId($row['paymentId']);
         $paymentData->setPaymentAmount($row['paymentAmount']);
         $paymentData->setCustomerId($row['customerId']);
         return $paymentData;
     } else {
         return new Payment();
     }
 }