10 public function __construct($name)
15 public function getMimeType()
17 $ext = substr($this->name, -4);
20 } else if ($ext == '.png') {
22 } else if ($ext == '.png') {
23 return 'application/pdf';
25 return 'application/octet-stream';
28 public function getPath()
30 return $this->config->cacheDir . $this->name;
33 public function getUrl()
35 return $this->config->cacheDirUrl . $this->name;
38 public function setConfig(Config $config)
40 $this->config = $config;