ok

Mini Shell

Direktori : /home2/selectio/www/geniusgroove.in/crm/application/models/
Upload File :
Current File : //home2/selectio/www/geniusgroove.in/crm/application/models/Modulepermission_model.php

<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}

class Modulepermission_model extends CI_Model
{

    public function __construct()
    {
        parent::__construct();
    }

    public function get($id = null)
    {
        $this->db->select()->from('module_permissions');
        if ($id != null) {
            $this->db->where('id', $id);
        } else {
            $this->db->order_by('id');
        }
        $query = $this->db->get();
        if ($id != null) {
            return $query->row_array();
        } else {
            return $query->result_array();
        }
    }

}

Zerion Mini Shell 1.0