SproutCMS

This is the code documentation for the SproutCMS project

function lookupReplacementName()

Checks the database for an updated name for a file.

This only works for full-sized images, e.g. 123_example.jpg, not 123_example.small.jpg

Usage

string File::lookupReplacementName ( string $filename );

Arguments

  1. string $filename
    Name of file, with no path, e.g. 123_image.jpg

Exceptions thrown

  • RowMissingException
    If no updated path was found
  • InvalidArgumentException
    If linkspec in DB invalid

Return value

  • string
    Updated filename, e.g. '123_new_image.png'