/** * 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(); }
/** * 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; }