concrete/src/File/Image/Thumbnail/Path/Resolver.php
protected function storeThumbnailPath($path, $file_id, $version_id, $storage_location_id, $thumbnail_handle, $format, $isBuilt = true)
    {
        try {
            $this->connection->insert('FileImageThumbnailPaths', array(
                'path' => $path,
                'fileID' => $file_id,
                'fileVersionID' => $version_id,
                'storageLocationID' => $storage_location_id,
                'thumbnailTypeHandle' => $thumbnail_handle,
                'thumbnailFormat' => $format,
                'isBuilt' => $isBuilt ? 1 : 0
            ));
        } catch (InvalidFieldNameException $e) {
            // User needs to run the database upgrade routine
        } catch (UniqueConstraintViolationException $e) {
            // We tried to generate a thumbnail for something we already generated (race condition)
        }
    }
protected function storeThumbnailPath($path, $file_id, $version_id, $storage_location_id, $thumbnail_handle, $format, $isBuilt = true)
    {
        try {
            $this->connection->insert('FileImageThumbnailPaths', array(
                'path' => $path,
                'fileID' => $file_id,
                'fileVersionID' => $version_id,
                'storageLocationID' => $storage_location_id,
                'thumbnailTypeHandle' => $thumbnail_handle,
                'thumbnailFormat' => $format,
                'isBuilt' => $isBuilt ? 1 : 0
            ));
        } catch (InvalidFieldNameException $e) {
            // User needs to run the database upgrade routine
        } catch (UniqueConstraintViolationException $e) {
            // We tried to generate a thumbnail for something we already generated (race condition)
        }
    }
protected function storeThumbnailPath ( $ path , $ file_id , $ version_id , $ storage_location_id , $ thumbnail_handle , $ format , $ isBuilt = true ) { try { $ this -> connection -> insert ( 'FileImageThumbnailPaths' , array ( 'path' => $ path , 'fileID' => $ file_id , 'fileVersionID' => $ version_id , 'storageLocationID' => $ storage_location_id , 'thumbnailTypeHandle' => $ thumbnail_handle , 'thumbnailFormat' => $ format , 'isBuilt' => $ isBuilt ? 1 : 0 ) ) ; } catch ( InvalidFieldNameException $ e ) { // User needs to run the database upgrade routine } catch ( UniqueConstraintViolationException $ e ) { // We tried to generate a thumbnail for something we already generated (race condition) } }
Store a path against a storage location for a file version and a thumbnail handle and format
@param string $path
@param int $file_id
@param int $version_id
@param int $storage_location_id
@param string $thumbnail_handle
@param string $format
@param bool $isBuilt Have we had the configuration generate the path yet
Store a path against a storage location for a file version and a thumbnail handle and format