Пример #1
0
 /**
  * Creates reference to PrductFromCsv
  * @param MastroProduct $mastroProduct
  */
 public function __construct(MastroProduct $mastroProduct) {
     foreach($mastroProduct->getHeaders() as $header)
         self::$headers['MASTRO_'.$header]=null;
     $this->productFromCsv = $mastroProduct->getProductFromCsv();
 }
Пример #2
0
  /**
  * Gets a reference to the custom price handler
  */
 public function getMagentoExcludedCsvHandler() {
    if (ftell($this->magentoExcludedCsvHandler) == 0) {
        $tempMastro = new MastroProduct($this);
        fwrite($this->magentoExcludedCsvHandler, "\xEF\xBB\xBF".'"EAN","reason","info",' . implode(',',$tempMastro->getHeaders()) . PHP_EOL);
    }
    return $this->magentoExcludedCsvHandler;
 }