Pinq\Caching\OneDimensionalCacheAdapter::__construct PHP Method

__construct() public method

public __construct ( )
    public function __construct()
    {
        parent::__construct(null);
    }

Usage Example

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;
 }
All Usage Examples Of Pinq\Caching\OneDimensionalCacheAdapter::__construct