Documentation

Currency extends Base
in package

Synchronization currencies class.

Table of Contents

$config  : Config
Config.
$controller  : Controller
Controller.
$lastScan  : array<string|int, mixed>
Last scan config data.
$connector  : Token
Connector.
__construct()  : mixed
Constructor.
findAdditionalData()  : array<string|int, mixed>
Parse additional data.
findProduct()  : int
Find product id by ean.
getCurrenciesFromApi()  : array<string|int, mixed>
Method to get customers form Magento.
getFormattedTime()  : string
Return parsed time to magento time zone.
log()  : void
Add log to db.
parseInventoryData()  : array<string|int, mixed>
Parse inventory data to YetiForce format.
parseShippingData()  : array<string|int, mixed>
Parse shipping data.
process()  : void
Main function.
saveInventoryCrm()  : bool
Save inventory elements.

Properties

$lastScan

Last scan config data.

public array<string|int, mixed> $lastScan = []

Methods

__construct()

Constructor.

public __construct(Controller $controller) : mixed
Parameters
$controller : Controller
Return values
mixed

findAdditionalData()

Parse additional data.

public findAdditionalData(Inventory $mapModel) : array<string|int, mixed>
Parameters
$mapModel : Inventory
Return values
array<string|int, mixed>

findProduct()

Find product id by ean.

public findProduct(string $ean) : int
Parameters
$ean : string
Return values
int

getCurrenciesFromApi()

Method to get customers form Magento.

public getCurrenciesFromApi() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFormattedTime()

Return parsed time to magento time zone.

public getFormattedTime(string $value) : string
Parameters
$value : string
Return values
string

log()

Add log to db.

public log(string $category[, Throwable|null $ex = null ]) : void
Parameters
$category : string
$ex : Throwable|null = null
Return values
void

parseInventoryData()

Parse inventory data to YetiForce format.

public parseInventoryData(Vtiger_Record_Model $recordModel, array<string|int, mixed> $item, Inventory $mapModel) : array<string|int, mixed>
Parameters
$recordModel : Vtiger_Record_Model
$item : array<string|int, mixed>
$mapModel : Inventory
Return values
array<string|int, mixed>

parseShippingData()

Parse shipping data.

public parseShippingData(Inventory $mapModel) : array<string|int, mixed>
Parameters
$mapModel : Inventory
Return values
array<string|int, mixed>

process()

Main function.

public process() : void
Return values
void

        

Search results