Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: extends CacheAdapter
Esempio n. 1
0
 public function __construct($fileName)
 {
     parent::__construct();
     $this->fileName = $fileName;
     try {
         $this->fileHandle = new \SplFileObject($fileName, 'c+');
         $this->fileHandle->setFlags(\SplFileObject::READ_CSV);
         $this->fileHandle->setCsvControl(self::CSV_DELIMITER, self::CSV_SEPARATOR);
     } catch (\Exception $exception) {
         throw new PinqException('Invalid cache file: %s is not readable with the message, "%s"', $fileName, $exception->getMessage());
     }
     $this->fileName = $fileName;
 }
Esempio n. 2
0
 public function __construct(\ArrayAccess $innerCache)
 {
     parent::__construct();
     $this->arrayAccess = $innerCache;
 }