Uname:
Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software:
Apache
PHP version:
7.4.33 [ PHP INFO ] PHP os:
Linux
Server Ip:
54.36.31.145
Your Ip:
216.73.216.182
User:
homesquasz (91404) | Group:
users (100)
Safe Mode:
OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl
<?php
/*
* Generated by CRUDigniter v3.2
* www.crudigniter.com
*/
class Objetmission_model extends CI_Model
{
function __construct()
{
parent::__construct();
}
/*
* Get objetmission by id
*/
function get_objetmission($id)
{
return $this->db->get_where('objetmission',array('id'=>$id))->row_array();
}
/*
* Get all objetmission count
*/
function get_all_objetmission_count()
{
$this->db->from('objetmission');
return $this->db->count_all_results();
}
/*
* Get all objetmission
*/
function get_all_objetmission($params = array())
{
$this->db->order_by('id', 'desc');
if(isset($params) && !empty($params))
{
$this->db->limit($params['limit'], $params['offset']);
}
return $this->db->get('objetmission')->result_array();
}
/*
* function to add new objetmission
*/
function add_objetmission($params)
{
$this->db->insert('objetmission',$params);
return $this->db->insert_id();
}
/*
* function to update objetmission
*/
function update_objetmission($id,$params)
{
$this->db->where('id',$id);
return $this->db->update('objetmission',$params);
}
/*
* function to delete objetmission
*/
function delete_objetmission($id)
{
return $this->db->delete('objetmission',array('id'=>$id));
}
}