\Ebox_GoogleBase

Returns template file which has exported file link to download

Summary

Methods
Properties
Constants
render()
googleBaseGenerateXML()
prepareXML()
update_xml_file()
getManufacturer()
getStock()
getAdditionalImg()
getCategory()
getVariant()
getProdCate()
saveSettings()
No public properties found
No constants found
getSavedGshopSettings()
$sExportPath
$sFolderName
$varcount
$sExportFileExt
N/A
No private methods found
No private properties found
N/A

Properties

$sExportPath

$sExportPath : string

Name of the export path.

Type

string

$sFolderName

$sFolderName : string

Name of the module folder.

Type

string

$varcount

$varcount : integer

Counter to maintain article count

Type

integer

$sExportFileExt

$sExportFileExt : string

Extention of the export file.

Type

string

Methods

render()

render() : string

Returns ebox_googlebase.tpl file

Returns

string

googleBaseGenerateXML()

googleBaseGenerateXML() : \xml

Generate XML on success.

Returns

\xml

prepareXML()

prepareXML(string  $sInput) : \$sOutput

Returns cleaned output by replacing strings

Parameters

string $sInput

input string

Returns

\$sOutput

update_xml_file()

update_xml_file(string  $content, string  $GBaseSuffix) : null

Updates XML file

Parameters

string $content

content in it

string $GBaseSuffix

suffix to be added

Returns

null

getManufacturer()

getManufacturer(string  $blShopCheck = true) : string

Returns Manufacture/brand values on success.

Parameters

string $blShopCheck

null

Returns

string

getStock()

getStock(string  $oArticle) : \value

Returns stock values on success.

Parameters

string $oArticle

article

Returns

\value

getAdditionalImg()

getAdditionalImg(string  $oArticle) : \url

Returns additionalImage values on success.

Parameters

string $oArticle

article

Returns

\url

getCategory()

getCategory(string  $oArticle) : \value

Returns category values on success.

Parameters

string $oArticle

article

Returns

\value

getVariant()

getVariant(string  $oxid, string  $oArticle, \value  $parentPrice) : \xml

Returns variant values on success.

Parameters

string $oxid

id

string $oArticle

article

\value $parentPrice

price

Returns

\xml

getProdCate()

getProdCate(integer  $lang = null) : \value

Returns Google Product Category values on success.

Parameters

integer $lang

language id

Returns

\value

saveSettings()

saveSettings() : null

Function to save the settings in the database The settings are later used for CRON job

Returns

null

getSavedGshopSettings()

getSavedGshopSettings(integer  $oShopId) : array

Returns saved CRON settings for Gshop XML exporting

Parameters

integer $oShopId

id of shop

Returns

array