Lines Matching refs:basePath
10 private $basePath;
14 public function __construct($basePath, $cleanupInterval = 3600)
20 if (!$this->createBasePath($basePath)) {
21 throw new \Mpdf\MpdfException(sprintf('Temporary files directory "%s" is not writable', $basePath));
24 $this->basePath = $basePath;
28 protected function createBasePath($basePath)
30 if (!file_exists($basePath)) {
31 if (!$this->createBasePath(dirname($basePath))) {
35 if (!$this->createDirectory($basePath)) {
40 if (!is_writable($basePath) || !is_dir($basePath)) {
47 protected function createDirectory($basePath)
49 if (!mkdir($basePath)) {
53 if (!chmod($basePath, 0777)) {
77 $tempFile = tempnam($this->basePath, 'cache_tmp_');
94 $iterator = new DirectoryIterator($this->basePath);
109 return $this->basePath . '/' . $filename;