コード例 #1
0
ファイル: AbstractProcessor.php プロジェクト: kabarakh/yag
 /**
  * Build and return the target file path of the resolution file
  * 
  * @param string $extension
  * @param string $imageName
  * @return string $targetFilePath
  */
 protected function generateAbsoluteResolutionPathAndFilename($extension = 'jpg', $imageName = '')
 {
     // We need an UID for the item file
     $nextUid = $this->resolutionFileCacheRepository->getCurrentUid();
     // Get a path in the hash filesystem
     $resolutionFileName = $this->getMeaningfulTempFilePrefix($imageName) . substr(uniqid($nextUid . '_'), 0, 16);
     $targetFilePath = $this->hashFileSystem->createAndGetAbsolutePathById($nextUid) . '/' . $resolutionFileName . '.' . $extension;
     return $targetFilePath;
 }
コード例 #2
0
ファイル: ResolutionFileCache.php プロジェクト: rabe69/yag
 /**
  * @return int file count 
  */
 public function getCacheFileCount()
 {
     return $this->resolutionFileCacheRepository->countAll();
 }