/** * Constructor * * @param \XLite\Core\DataSource\Ecwid $dataSource Ecwid data source * * @return void */ public function __construct(\XLite\Core\DataSource\Ecwid $dataSource) { parent::__construct($dataSource); $this->allProducts = $this->getDataSource()->callApi('products'); $this->rewind(); // May be neccessary to use Ecwid `Batch` method to preload products data }