Documentation

Import_XmlReader_Reader extends Import_FileReader_Reader
in package

XmlReader Class.

Tags
copyright

YetiForce Sp. z o.o

license

YetiForce Public License 4.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
$importedRecords  : mixed
$moduleName  : mixed
$relatedInventoryField  : mixed
$skipField  : mixed
$skipRecord  : mixed
__construct()  : mixed
Constructor.
addInventoryToDB()  : mixed
Function adds imported inventory data to database.
addRecordToDB()  : int
Function adds imported data to database.
arrayCombine()  : mixed
convertCharacterEncoding()  : mixed
createTable()  : mixed
Function creates tables for import in database.
deleteFile()  : mixed
getErrorMessage()  : mixed
getFileHandler()  : mixed
getFilePath()  : mixed
getFirstRowData()  : mixed
getInventoryData()  : mixed
getNumberOfRecordsRead()  : mixed
getRecordDataFromXML()  : mixed
getRecordDataFromXMLTemplate()  : mixed
getStatus()  : mixed
hasHeader()  : mixed
isTemplate()  : mixed
read()  : mixed
Function reads data from file and adds to database.

Properties

$numberOfRecordsRead

public mixed $numberOfRecordsRead = 0

$temp_status

public mixed $temp_status = 'success'

$importedRecords

protected mixed $importedRecords = 0

$relatedInventoryField

protected mixed $relatedInventoryField = []

$skipField

protected mixed $skipField = ['assigned_user_id', 'productid']

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

arrayCombine()

public arrayCombine(mixed $key, mixed $value) : mixed
Parameters
$key : mixed
$value : 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

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

getInventoryData()

public getInventoryData(XMLReader $xmlToImport, mixed $keyType) : mixed
Parameters
$xmlToImport : XMLReader
$keyType : mixed
Return values
mixed

getNumberOfRecordsRead()

public getNumberOfRecordsRead() : mixed
Return values
mixed

getRecordDataFromXML()

public getRecordDataFromXML(XMLReader $xmlToImport[, mixed $keyType = 'label' ]) : mixed
Parameters
$xmlToImport : XMLReader
$keyType : mixed = 'label'
Return values
mixed

getRecordDataFromXMLTemplate()

public getRecordDataFromXMLTemplate(XMLReader $xmlToImport) : mixed
Parameters
$xmlToImport : XMLReader
Return values
mixed

getStatus()

public getStatus() : mixed
Return values
mixed

hasHeader()

public hasHeader() : mixed
Return values
mixed

isTemplate()

public isTemplate() : mixed
Return values
mixed

read()

Function reads data from file and adds to database.

public read() : mixed
Return values
mixed

        

Search results