phpDocumentor

AfterbuyProductMapper
in package

Table of Contents

createAfterbuyProductFromXml()  : AfterbuyProduct
Maps incoming XML (from GetShopProducts) to an AfterbuyProduct instance.
convertDatetime()  : DateTimeImmutable
Converts a timestamp in Afterbuy’s format into a DateTimeImmutable.
convertFloat()  : float
Converts incoming „Floats“ from Afterbuy into real floats.
createAdditionalDescriptionFieldFromXml()  : AdditionalDescriptionField
createAttributFromXml()  : Attribut
createBaseProductFromXml()  : BaseProduct
createDiscountFromXml()  : Discount
createFeatureFromXml()  : Feature
createMultiLanguageFromXml()  : MultiLanguage
Creates a MultiLanguage instance from XML
createProductPictureFromXml()  : ProductPicture
Creates a ProductPicture instance from XML
createScaledDiscountFromXml()  : ScaledDiscount

Methods

createAfterbuyProductFromXml()

Maps incoming XML (from GetShopProducts) to an AfterbuyProduct instance.

public createAfterbuyProductFromXml(SimpleXMLElement $xmlProduct) : AfterbuyProduct
Parameters
$xmlProduct : SimpleXMLElement
Return values
AfterbuyProduct

convertDatetime()

Converts a timestamp in Afterbuy’s format into a DateTimeImmutable.

protected static convertDatetime(string $afterbuyDatetime) : DateTimeImmutable

Currently uses DateTime’s heuristics to parse the input, based on time zone Europe/Berlin.

Parameters
$afterbuyDatetime : string
Return values
DateTimeImmutable

convertFloat()

Converts incoming „Floats“ from Afterbuy into real floats.

protected static convertFloat(string $afterbuyFloat) : float

Afterbuy uses the German comma-as-decimal-point notation.

Parameters
$afterbuyFloat : string
Return values
float

createFeatureFromXml()

protected createFeatureFromXml(SimpleXMLElement $xmlFeature) : Feature
Parameters
$xmlFeature : SimpleXMLElement
Return values
Feature

createMultiLanguageFromXml()

Creates a MultiLanguage instance from XML

protected createMultiLanguageFromXml(SimpleXMLElement $xmlMultiLanguage) : MultiLanguage
Parameters
$xmlMultiLanguage : SimpleXMLElement
Return values
MultiLanguage

createProductPictureFromXml()

Creates a ProductPicture instance from XML

protected createProductPictureFromXml(SimpleXMLElement $xmlProductPicture) : ProductPicture
Parameters
$xmlProductPicture : SimpleXMLElement
Return values
ProductPicture

Search results