📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv11.demodesign.com.tr
/
propanel
/
model
/
gkd_export
📝
processor_json.php
← Geri Dön
<?php class ModelGkdExportProcessorJson extends Model { public function getFile($file, $create = false) { if ($create) { $fh = fopen($file, 'w'); } else { $fh = fopen($file, 'a'); } return $fh; } public function closeFile($fh) { fclose($fh); } public function getTotalItems($config) { return $this->{'model_gkd_export_driver_'.$config['export_type']}->getTotalItems($config); } public function writeHeader($fh, $config) { fwrite($fh, '['); } public function writeBody($fh, $config) { $items = $this->{'model_gkd_export_driver_'.$config['export_type']}->getItems($config); $row = 0; foreach ($items as $item) { $addComa = ($row > 0 || empty($config['init'])) ? ',' : ''; fwrite($fh, $addComa . json_encode($item)); $row++; } // return false when no more items return count($items); } public function writeFooter($fh) { fwrite($fh, ']'); } }
💾 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