예제 #1
0
 /**
  * Delete room.
  *
  * @access public
  * @param integer $id Room id
  * @retun mixed Result
  */
 public function delete($id)
 {
     $this->db->delete('pr_reservations', array('room_id' => $id));
     $this->db->delete('pr_gallery', array('room_id' => $id));
     $this->db->delete('pr_rooms', array('id' => $id));
     return true;
 }
 /**
  * Delete reservation.
  *
  * @access public
  * @param integer $id Reservation id
  * @retun mixed Result
  */
 public function delete($id)
 {
     if (isset($id) && $id != '' && ctype_digit((string) $id)) {
         return $this->db->delete('pr_reservations', array('id' => $id));
     }
 }
예제 #3
0
 /**
  * Delete photo.
  *
  * @access public
  * @param integer $id Photo id
  * @retun mixed Result
  */
 public function delete($id)
 {
     return $this->db->delete('pr_gallery', array('id' => $id));
 }
예제 #4
0
 /**
  * Delete customer.
  *
  * @access public
  * @param integer $id Customer id
  * @retun mixed Result
  */
 public function delete($id)
 {
     $this->db->delete('pr_reservations', array('customer_id' => $id));
     $this->db->delete('pr_customers', array('id' => $id));
     return true;
 }