<?php
/* 
 * Generated by CRUDigniter v3.2 
 * www.crudigniter.com
 */
 
class Calisantur_model extends CI_Model
{
    function __construct()
    {
        parent::__construct();
    }
    
    /*
     * Get calisantur by id
     */
    function get_calisantur($id)
    {
        return $this->db->get_where('calisantur',array('id'=>$id))->row_array();
    }
      
	/*
     * Get branş adını alma fonksiyonu
     */

	function get_calisantur_ad($id){
		 $this->db->select('brans');	 
		$this->db->where('id', $id);
		$query = $this->db->get('calisantur')->row_array();
				
		return $query['brans'];
		
	}


	  
    /*
     * Get all calisantur
     */
    function get_all_calisantur()
    {
        $this->db->order_by('id', 'desc');
        return $this->db->get('calisantur')->result_array();
    }
        
    
   
    
   
    
    
}
