📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
projetakipscripti.demodesign.com.tr
/
application
/
models
📝
Ayarlar_model.php
← Geri Dön
<?php /* * Generated by CRUDigniter v3.2 * www.crudigniter.com */ class Ayarlar_model extends CI_Model { function __construct() { parent::__construct(); } /* * Get ayarlar by id */ function get_ayarlar($id) { return $this->db->get_where('ayarlar',array('id'=>$id))->row_array(); } /* * Get Müşteri adını alma fonksiyonu */ function get_ayarlar_ad($id){ $this->db->select('ad'); $this->db->where('id', $id); $query = $this->db->get('ayarlar')->row_array(); return $query['ad']; } /* * Get Müşteri logo alma fonksiyonu */ function get_ayarlar_logo($id){ $this->db->select('logo'); $this->db->where('id', $id); $query = $this->db->get('ayarlar')->row_array(); return $query['logo']; } /* * Get all ayarlar */ function get_all_ayarlar() { $this->db->where('aktif', 1); $this->db->order_by('id', 'desc'); return $this->db->get('ayarlar')->result_array(); } /* * function to add new ayarlar */ function add_ayarlar($params) { $this->db->insert('ayarlar',$params); return $this->db->insert_id(); } /* * function to update ayarlar */ function update_ayarlar($id,$params) { $this->db->where('id',$id); return $this->db->update('ayarlar',$params); } /* * function to delete ayarlar */ function delete_ayarlar($id) { return $this->db->delete('ayarlar',array('id'=>$id)); } }
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula