MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/lms_cafsinfotech_in/application/models/FooterModel.php
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class FooterModel extends CI_Model 
{
    
    public function __construct() 
    {
        parent::__construct();
        $this->load->database();
    }

    function insert_fotter_sections($data) 
    {
        return $this->db->insert_batch('footer_sections', $data);
    }

    function get_footer_section($section_no)
    {
        return $this->db->where('section_number',$section_no)->order_by("section_number", "asc")->get('footer_sections')->result();
    }

    function update_footer_section($section_no, $data) 
    {
        $this->db->set($data)->where('section_number', $section_no)->update('footer_sections');
        return $this->db->affected_rows();
    }

    function delete_fotter() 
    {
        return $this->db->truncate('footer_sections');
    }

}