All Data Structures Functions Variables Pages
Static Public Member Functions
ImportUploadedFileUtil Class Reference
Inheritance diagram for ImportUploadedFileUtil:
UploadedFileUtil

Static Public Member Functions

static getByNameCatchErrorAndEnsureFileIsACSV ($filesVariableName)
 
static convertWindowsAndMacLineEndingsIntoUnixLineEndings ($uploadedFilePath)
 
- Static Public Member Functions inherited from UploadedFileUtil
static getByNameAndCatchError ($filesVariableName)
 

Detailed Description

Helper class for handling file upload for imports.

Definition at line 40 of file ImportUploadedFileUtil.php.

Member Function Documentation

static getByNameCatchErrorAndEnsureFileIsACSV (   $filesVariableName)
static

Check the $_FILES array by the $filesVariableName and make sure the file is a CSV and that the file is uploaded ok.

Parameters
string$filesVariableName
Returns
CUploadedFile if successful, otherwise throw an exception.

Definition at line 48 of file ImportUploadedFileUtil.php.

static convertWindowsAndMacLineEndingsIntoUnixLineEndings (   $uploadedFilePath)
static
Parameters
$uploadedFilePath
Returns
bool

Definition at line 65 of file ImportUploadedFileUtil.php.


The documentation for this class was generated from the following file:
Generated on Tue Jan 28 2020 07:10:32