/** * 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 }
/** * Get cell * * @return array */ protected function getCell() { return $this->collection->current(); }