示例#1
0
文件: Products.php 项目: kingsj/core
 /**
  * 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
 }
示例#2
0
 /**
  * Get cell 
  * 
  * @return array
  */
 protected function getCell()
 {
     return $this->collection->current();
 }