Function Hook_import_smf2->data_to_disk

Definitions

sources/hooks/modules/admin_import/smf2.php

  • Convert an SMF database file to a software uploaded file (stored on disk).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$data string required parameter N/A N/A The file data
$filename string required parameter N/A N/A The optimal filename
$sections ID_TEXT required parameter N/A N/A The upload type (e.g. cns_photos)
$id_folder integer required parameter N/A N/A The attachmentUploadDir where the file is located
$db object required parameter N/A N/A The database connector to import from
$table_prefix string Blank (empty string) N/A N/A The table prefix the target prefix is using
$output_filename string Blank (empty string) N/A N/A The filename to output to
$file_base PATH Blank (empty string) N/A N/A The base directory we are importing from
$attachment_id string Blank (empty string) N/A N/A The attachment ID
$ext string .png N/A N/A The file extension to use

Return

  • The URL
  • Type: URLPATH
  • Set: N/A
  • Range: N/A