src/ImageStack/ImageBackend/CacheImageBackend.php
protected function getCacheId(ImagePathInterface $path) {
        if ($cid = $this->getOption('cache_prefix')) {
            $cid .= DIRECTORY_SEPARATOR;
        }
        $cid .= $path->getPath();
        if ($sanitizer = $this->getOption('cache_id_sanitizer')) {
            $cid = call_user_func($sanitizer, $cid);
        }
        return $cid;
    }
protected function getCacheId(ImagePathInterface $path) {
        if ($cid = $this->getOption('cache_prefix')) {
            $cid .= DIRECTORY_SEPARATOR;
        }
        $cid .= $path->getPath();
        if ($sanitizer = $this->getOption('cache_id_sanitizer')) {
            $cid = call_user_func($sanitizer, $cid);
        }
        return $cid;
    }
protected function getCacheId ( ImagePathInterface $ path ) { if ( $ cid = $ this -> getOption ( 'cache_prefix' ) ) { $ cid .= DIRECTORY_SEPARATOR ; } $ cid .= $ path -> getPath ( ) ; if ( $ sanitizer = $ this -> getOption ( 'cache_id_sanitizer' ) ) { $ cid = call_user_func ( $ sanitizer , $ cid ) ; } return $ cid ; }
Get the cache ID from the path and can do sanitize stuff.
@param ImagePathInterface $path
@return string
Get the cache ID from the path and can do sanitize stuff .