Properties

$id

$id : int

Widget ID as defined in cross sell management interface

Type

int

$startIndex

$startIndex : int

Index of first item, starting at 0

Type

int

$chunkSize

$chunkSize : int

Max numer of items to retrieve from rec service

Type

int

$template

$template : string

Template Html

Type

string

$templatePath

$templatePath : string

Path to file containing template html

Type

string

Methods

__construct()

__construct( $config)

Parameters

$config

setConfig()

setConfig(mixed $config) : \Econda\RecEngine\Widget\Widget

Set configuration

Parameters

mixed $config

ConfigInterface or array

Throws

\Econda\RecEngine\Exception\InvalidArgumentException

Returns

\Econda\RecEngine\Widget\Widget

getConfig()

getConfig() : \Econda\RecEngine\Widget\ConfigInterface

Returns

\Econda\RecEngine\Widget\ConfigInterface

getId()

getId()

setId()

setId( $id)

Parameters

$id

getRenderer()

getRenderer()

getContext()

getContext()

setContext()

setContext( $context)

Parameters

$context

setStartIndex()

setStartIndex( $startIndex)

Parameters

$startIndex

getStartIndex()

getStartIndex()

setChunkSize()

setChunkSize( $chunkSize)

Parameters

$chunkSize

getModel()

getModel()

setTemplate()

setTemplate( $template)

Parameters

$template

getTemplate()

getTemplate()

setTemplatePath()

setTemplatePath( $path)

Parameters

$path

getTemplatePath()

getTemplatePath()

render()

render()

executeRequest()

executeRequest()

Get recommendations from rec service and write to model property.

getLastRequestInfo()

getLastRequestInfo( $asString)

Parameters

$asString

initPropertiesFromArray()

initPropertiesFromArray( $data)

Parameters

$data