Import_ZipReader_Reader
extends Import_FileReader_Reader
in package
ZipReader class.
Tags
Table of Contents
- $errorMessage : mixed
- $moduleModel : mixed
- $numberOfRecordsRead : mixed
- $request : mixed
- $temp_status : mixed
- $user : mixed
- $filelist : mixed
- $importFolderLocation : mixed
- $moduleName : mixed
- __construct() : mixed
- Construct.
- addInventoryToDB() : mixed
- Function adds imported inventory data to database.
- addRecordToDB() : int
- Function adds imported data to database.
- checkExtension() : mixed
- convertCharacterEncoding() : mixed
- createTable() : mixed
- Function creates tables for import in database.
- deleteFile() : mixed
- deleteFolder() : mixed
- getAllowedExtension() : array<string|int, string>
- Returns allowed extension files in zip package.
- getErrorMessage() : mixed
- getFileHandler() : mixed
- getFilePath() : mixed
- getFirstRowData() : mixed
- getNextFile() : mixed
- getNumberOfRecordsRead() : mixed
- getStatus() : mixed
- hasHeader() : mixed
- initialize() : mixed
- Initialize zip file.
- read() : mixed
- setInstanceProperties() : mixed
Properties
$errorMessage
public
mixed
$errorMessage
= ''
$moduleModel
public
mixed
$moduleModel
$numberOfRecordsRead
public
mixed
$numberOfRecordsRead
= 0
$request
public
mixed
$request
$temp_status
public
mixed
$temp_status
= 'success'
$user
public
mixed
$user
$filelist
protected
mixed
$filelist
= []
$importFolderLocation
protected
mixed
$importFolderLocation
$moduleName
protected
mixed
$moduleName
Methods
__construct()
Construct.
public
__construct(Request $request, User $user) : mixed
Parameters
Return values
mixed —addInventoryToDB()
Function adds imported inventory data to database.
public
addInventoryToDB(array<string|int, mixed> $inventoryData, int $importId) : mixed
Parameters
- $inventoryData : array<string|int, mixed>
- $importId : int
Return values
mixed —addRecordToDB()
Function adds imported data to database.
public
addRecordToDB(array<string|int, mixed> $data) : int
Parameters
- $data : array<string|int, mixed>
Return values
int —checkExtension()
public
checkExtension(mixed $filelist) : mixed
Parameters
- $filelist : mixed
Return values
mixed —convertCharacterEncoding()
public
convertCharacterEncoding(mixed $value, mixed $fromCharset, mixed $toCharset) : mixed
Parameters
- $value : mixed
- $fromCharset : mixed
- $toCharset : mixed
Tags
Return values
mixed —createTable()
Function creates tables for import in database.
public
createTable() : mixed
Return values
mixed —deleteFile()
public
deleteFile() : mixed
Return values
mixed —deleteFolder()
public
deleteFolder() : mixed
Return values
mixed —getAllowedExtension()
Returns allowed extension files in zip package.
public
static getAllowedExtension() : array<string|int, string>
Return values
array<string|int, string> —getErrorMessage()
public
getErrorMessage() : mixed
Return values
mixed —getFileHandler()
public
getFileHandler() : mixed
Return values
mixed —getFilePath()
public
getFilePath() : mixed
Return values
mixed —getFirstRowData()
public
getFirstRowData([mixed $hasHeader = true ]) : mixed
Parameters
- $hasHeader : mixed = true
Return values
mixed —getNextFile()
public
getNextFile([mixed $del = true ]) : mixed
Parameters
- $del : mixed = true
Return values
mixed —getNumberOfRecordsRead()
public
getNumberOfRecordsRead() : mixed
Return values
mixed —getStatus()
public
getStatus() : mixed
Return values
mixed —hasHeader()
public
hasHeader() : mixed
Return values
mixed —initialize()
Initialize zip file.
public
initialize(Request $request, User $user) : mixed
Parameters
Tags
Return values
mixed —read()
public
read() : mixed
Return values
mixed —setInstanceProperties()
public
setInstanceProperties(mixed $instance) : mixed
Parameters
- $instance : mixed