Source of file File.php
Size: 0,940 Bytes - Last Modified: 2021-12-23T10:20:55+00:00
/var/www/docs.ssmods.com/process/src/thirdparty/css-crush/lib/CssCrush/File.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | <?php /** * * Output file resources. * */ namespace CssCrush; class File { public $url; public $path; public $process; public function __construct(Process $process) { $this->process = $process; $io = $process->io; Crush::runStat('paths'); if ($process->options->cache) { $process->cacheData = $io->getCacheData(); if ($io->validateCache()) { $this->url = $io->getOutputUrl(); $this->path = $io->getOutputDir() . '/' . $io->getOutputFilename(); $process->release(); return; } } $string = $process->compile(); if ($io->write($string)) { $this->url = $io->getOutputUrl(); $this->path = $io->getOutputDir() . '/' . $io->getOutputFilename(); } } public function __toString() { return $this->url; } } |