Documentation

Base
in package

Abstract base map class.

Table of Contents

$additionalFieldsCrm  : array<string|int, string>
Fields which are not exist in Magento but needed in YetiForce.
$billingFields  : array<string|int, string>
Mapped billing fields.
$data  : array<string|int, mixed>
Data from Magento.
$dataCrm  : array<string|int, string>
Data from YetiForce.
$fieldsDefaultValue  : array<string|int, string>
Fields default value.
$fieldsType  : array<string|int, string>
Mapped fields type.
$gender  : array<string|int, string>
Contacts_gender map.
$mappedFields  : array<string|int, string>
Mapped fields.
$salutationtype  : array<string|int, string>
Contacts_gender map.
$shippingFields  : array<string|int, string>
Mapped shipping fields.
$moduleName  : string
Map module name.
$synchronizer  : Base
Synchronizer.
__construct()  : mixed
Constructor.
getAdditionalFieldsCrm()  : array<string|int, mixed>
Return additional YetiForce fields list.
getAddressDataByType()  : array<string|int, mixed>
Get given type address data.
getAddressDataCrm()  : array<string|int, mixed>
Return address data.
getAddressFieldsCrm()  : array<string|int, mixed>
Return address fields crm.
getAddressFieldValue()  : array<string|int, mixed>|mixed
Get address field value from Magento.
getCrmBirthday()  : string|null
Get birthday.
getCrmId()  : int
Get crm id by magento id.
getCustomAttributeValue()  : mixed
Get custom attribute value.
getDataCrm()  : array<string|int, mixed>
Return parsed data in YetiForce format.
getFieldNameCrm()  : mixed|string
Return YetiForce field name.
getFields()  : array<string|int, mixed>
Return fields list.
getFieldValue()  : array<string|int, mixed>|mixed
Get field value from Magento.
parsePhone()  : array<string|int, mixed>
Parse phone number.
setData()  : void
Set data.
setDataCrm()  : void
Set data YetiForce.

Properties

$additionalFieldsCrm

Fields which are not exist in Magento but needed in YetiForce.

public static array<string|int, string> $additionalFieldsCrm = []

$billingFields

Mapped billing fields.

public static array<string|int, string> $billingFields = ['addresslevel1a' => 'country_id', 'addresslevel2a' => 'region|region', 'addresslevel5a' => 'city', 'addresslevel7a' => 'postcode', 'addresslevel8a' => 'street|0', 'buildingnumbera' => 'street|1', 'first_name_a' => 'firstname', 'last_name_a' => 'lastname', 'phone_a' => 'telephone', 'email_a' => 'email', 'vat_id_a' => 'vat_id', 'company_name_a' => 'company', 'phone' => 'telephone', 'mobile' => 'fax']

$data

Data from Magento.

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

$dataCrm

Data from YetiForce.

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

$fieldsDefaultValue

Fields default value.

public static array<string|int, string> $fieldsDefaultValue = []

$fieldsType

Mapped fields type.

public static array<string|int, string> $fieldsType = ['salutationtype' => 'map', 'gender' => 'map', 'addresslevel1a' => 'country', 'addresslevel1b' => 'country']

$gender

Contacts_gender map.

public static array<string|int, string> $gender = ['1' => 'PLL_MAN', '2' => 'PLL_WOMAN']

$mappedFields

Mapped fields.

public static array<string|int, string> $mappedFields = []

$salutationtype

Contacts_gender map.

public static array<string|int, string> $salutationtype = ['1' => 'Mr.', '2' => 'Mrs.']

$shippingFields

Mapped shipping fields.

public static array<string|int, string> $shippingFields = ['addresslevel1b' => 'country_id', 'addresslevel2b' => 'region|region', 'addresslevel5b' => 'city', 'addresslevel7b' => 'postcode', 'addresslevel8b' => 'street|0', 'buildingnumberb' => 'street|1', 'first_name_b' => 'firstname', 'last_name_b' => 'lastname', 'phone_b' => 'telephone', 'email_b' => 'email', 'vat_id_b' => 'vat_id', 'company_name_b' => 'company', 'phone' => 'telephone', 'mobile' => 'fax']

$moduleName

Map module name.

protected string $moduleName

$synchronizer

Synchronizer.

protected Base $synchronizer

Methods

__construct()

Constructor.

public __construct(Base $synchronizer) : mixed
Parameters
$synchronizer : Base
Return values
mixed

getAdditionalFieldsCrm()

Return additional YetiForce fields list.

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

getAddressDataByType()

Get given type address data.

public getAddressDataByType(string $addressType) : array<string|int, mixed>
Parameters
$addressType : string
Return values
array<string|int, mixed>

getAddressDataCrm()

Return address data.

public getAddressDataCrm(string $type) : array<string|int, mixed>
Parameters
$type : string
Return values
array<string|int, mixed>

getAddressFieldsCrm()

Return address fields crm.

public getAddressFieldsCrm(string $type) : array<string|int, mixed>
Parameters
$type : string
Return values
array<string|int, mixed>

getAddressFieldValue()

Get address field value from Magento.

public getAddressFieldValue(string $type, string $fieldNameCrm, string $fieldName) : array<string|int, mixed>|mixed
Parameters
$type : string
$fieldNameCrm : string
$fieldName : string
Return values
array<string|int, mixed>|mixed

getCrmBirthday()

Get birthday.

public getCrmBirthday() : string|null
Return values
string|null

getCrmId()

Get crm id by magento id.

public getCrmId(int $magentoId[, string|null $moduleName = null ]) : int
Parameters
$magentoId : int
$moduleName : string|null = null
Return values
int

getCustomAttributeValue()

Get custom attribute value.

public getCustomAttributeValue(string $name) : mixed
Parameters
$name : string
Return values
mixed

getDataCrm()

Return parsed data in YetiForce format.

public getDataCrm([bool $onEdit = false ]) : array<string|int, mixed>
Parameters
$onEdit : bool = false
Return values
array<string|int, mixed>

getFieldNameCrm()

Return YetiForce field name.

public getFieldNameCrm(string $name) : mixed|string
Parameters
$name : string
Return values
mixed|string

getFields()

Return fields list.

public getFields([bool $onEdit = false ]) : array<string|int, mixed>
Parameters
$onEdit : bool = false
Return values
array<string|int, mixed>

getFieldValue()

Get field value from Magento.

public getFieldValue(string $magentoFieldName[, string|null $crmFieldName = null ]) : array<string|int, mixed>|mixed
Parameters
$magentoFieldName : string
$crmFieldName : string|null = null
Return values
array<string|int, mixed>|mixed

parsePhone()

Parse phone number.

public parsePhone(string $fieldName, array<string|int, mixed> $parsedData) : array<string|int, mixed>
Parameters
$fieldName : string
$parsedData : array<string|int, mixed>
Return values
array<string|int, mixed>

setData()

Set data.

public setData(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>
Return values
void

setDataCrm()

Set data YetiForce.

public setDataCrm(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>
Return values
void

        

Search results