📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv11.demodesign.com.tr
/
system
/
library
/
Spout
/
Reader
📝
ReaderFactory.php
← Geri Dön
<?php namespace Box\Spout\Reader; use Box\Spout\Common\Exception\UnsupportedTypeException; use Box\Spout\Common\Helper\GlobalFunctionsHelper; use Box\Spout\Common\Type; /** * Class ReaderFactory * This factory is used to create readers, based on the type of the file to be read. * It supports CSV and XLSX formats. * * @package Box\Spout\Reader */ class ReaderFactory { /** * This creates an instance of the appropriate reader, given the type of the file to be read * * @api * @param string $readerType Type of the reader to instantiate * @return ReaderInterface * @throws \Box\Spout\Common\Exception\UnsupportedTypeException */ public static function create($readerType) { $reader = null; switch ($readerType) { case Type::CSV: $reader = new CSV\Reader(); break; case Type::XLSX: $reader = new XLSX\Reader(); break; case Type::ODS: $reader = new ODS\Reader(); break; default: throw new UnsupportedTypeException('No readers supporting the given type: ' . $readerType); } $reader->setGlobalFunctionsHelper(new GlobalFunctionsHelper()); return $reader; } }
💾 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