SproutCMS

This is the code documentation for the SproutCMS project

function gettempfile()

Allows files to be downloaded from the temporary directory

Only certain files from the temp directory can be downloaded.
Each 'source' has a regex which is used to restrict downloads to only that particular type of file

Usage

void $DbToolsController->gettempfile ( string $source , string $tempfile [, string $orig ] );

Arguments

  1. string $source
    The source of the file, one of 'export-database', 'export-files', 'module-builder'
  2. string $tempfile
    File name in the temporary directory
  3. string $orig = NULL
    Alternate name to use when providing file to browser

Return value

  • void