Documentation

Import_FileReader_Reader
in package

Table of Contents

$errorMessage  : mixed
$moduleModel  : mixed
$numberOfRecordsRead  : mixed
$request  : mixed
$temp_status  : mixed
$user  : mixed
__construct()  : mixed
Constructor.
addInventoryToDB()  : mixed
Function adds imported inventory data to database.
addRecordToDB()  : int
Function adds imported data to database.
convertCharacterEncoding()  : mixed
createTable()  : mixed
Function creates tables for import in database.
deleteFile()  : mixed
getErrorMessage()  : mixed
getFileHandler()  : mixed
getFilePath()  : mixed
getFirstRowData()  : mixed
getNumberOfRecordsRead()  : mixed
getStatus()  : mixed
hasHeader()  : mixed
read()  : mixed

Properties

$numberOfRecordsRead

public mixed $numberOfRecordsRead = 0

$temp_status

public mixed $temp_status = 'success'

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

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

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

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

Search results