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