📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
tarimscripti.demodesign.com.tr
/
application
/
models
📝
Content.php
← Geri Dön
<?php class Content extends CI_Model { public function findId($id) { $result = $this->db ->from('contents') ->where('id', $id) ->where('language', $this->language) ->get() ->row(); if ($result) { $result->childs = $this->childs($result); $result->parent = $this->parent($result); } return $result; } public function parent($content) { if ($content->parentId > 0) { $result = $this->db ->from('contents') ->where('id', $content->parentId) ->where('language', $this->language) ->get() ->row(); if ($result) { $result->childs = $this->childs($result); } return $result; } return false; } public function childs($content) { return $this->db ->from('contents') ->where('parentId', $content->id) ->where('language', $this->language) ->get() ->result(); } public function reserved($key = null) { if ($key === null) return false; return $this->db ->from('contents') ->where('reserved', $key) ->where('language', $this->language) ->get() ->row(); } }
💾 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