SproutCMS

This is the code documentation for the SproutCMS project

function findUsage()

Searches the whole database to find all records in all columns
which contain a given filename.

The search looks in VARCHAR columns with more than 200 chars (exact match)
and in TEXT columns (contains match)

Return value is an array of matches, in the format:
  [0] => table
  [1] => record id
  [2] => record name, if available

Usage

unknown File::findUsage ( string $filename );

Arguments

  1. string $filename
    The name of the file to search