Documentation

Import_ZipReader_Reader extends Import_FileReader_Reader
in package

ZipReader class.

Tags
copyright

YetiForce Sp. z o.o

license

YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)

author

Radosław Skrzypczak r.skrzypczak@yetiforce.com

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

$numberOfRecordsRead

public mixed $numberOfRecordsRead = 0

$temp_status

public mixed $temp_status = 'success'

$importFolderLocation

protected mixed $importFolderLocation

Methods

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
deprecated

Use \App\Utils::convertCharacterEncoding()

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

read()

public read() : mixed
Return values
mixed

setInstanceProperties()

public setInstanceProperties(mixed $instance) : mixed
Parameters
$instance : mixed
Return values
mixed

Search results