modules/Import/ImportCacheFiles.php

Show: inherited
Table of Contents

\ImportCacheFiles

Package:

Constants

Constant  FILE_MISCELLANEOUS = 'misc'
Constant  FILE_DUPLICATES = 'dupes'
Constant  FILE_DUPLICATES_DISPLAY = 'dupesdisplay'
Constant  FILE_ERRORS = 'error'
Constant  FILE_ERROR_RECORDS = 'errorrecords'
Constant  FILE_ERROR_RECORDS_ONLY = 'errorrecordsonly'
Constant  FILE_STATUS = 'status'

Properties

Propertyprotectedarray  $all_files= 'array( self::FILE_MISCELLANEOUS, self::FILE_DUPLICATES, self::FILE_DUPLICATES_DISPLAY, self::FILE_ERRORS, self::FILE_ERROR_RECORDS, self::FILE_ERROR_RECORDS_ONLY, self::FILE_STATUS, )'
static

List of all cache file names

Default valuearray( self::FILE_MISCELLANEOUS, self::FILE_DUPLICATES, self::FILE_DUPLICATES_DISPLAY, self::FILE_ERRORS, self::FILE_ERROR_RECORDS, self::FILE_ERROR_RECORDS_ONLY, self::FILE_STATUS, )Details
Type
array

Methods

methodprivate_createFileName( string $type = self::FILE_MISCELLANEOUS ) : string
static

Returns the filename for a temporary file

Parameters
Name Type Description
$type string

string to prepend to the filename, typically to indicate the file's use

Returns
Type Description
string filename
methodpublicclearCacheFiles( ) : void
static

Clears out all cache files in the import directory

methodpublicconvertFileNameToUrl( string $fileName ) : string
static

Function generates a download link for the given import file

Parameters
Name Type Description
$fileName string

String value of the upload file name

Returns
Type Description
string The converted URL of the file name
methodpublicensureWritable( ) : bool
static

Ensure that all cache files are writable or can be created

Returns
Type Description
bool
methodpublicgetDuplicateFileDisplayName( ) : string
static

Returns the duplicates display filename (the one used for display in html)

Returns
Type Description
string filename
methodpublicgetDuplicateFileName( ) : string
static

Returns the duplicates filename (the ones used to download to csv file

Returns
Type Description
string filename
methodpublicgetErrorFileName( ) : string
static

Returns the error filename

Returns
Type Description
string filename
methodpublicgetErrorRecordsFileName( ) : string
static

Returns the error records filename

Returns
Type Description
string filename
methodpublicgetErrorRecordsWithoutErrorFileName( ) : string
static

Returns the error records filename

Returns
Type Description
string filename
methodpublicgetImportDir( ) : string
static

Get import directory name

Returns
Type Description
string
methodpublicgetStatusFileName( ) : string
static

Returns the status filename

Returns
Type Description
string filename
Documentation was generated by DocBlox 0.18.1.