SproutCMS

This is the code documentation for the SproutCMS project

function getDetails()

Gets the details of a file using its id.

Uses a prepared statement for speed when doing repeated queries.

N.B. If the file entry doesn't exist, a reference to 'missing.png' is returned

Usage

array File::getDetails ( int $id );

Arguments

  1. int $id
    The ID in the files table

Return value

  • array
    Contains keys 'filename' and 'date_file_modified'