private function getOkProducts($productsCsvUrl, $limit = 50) { $csvFile = new CsvFile($productsCsvUrl, "\t"); $this->okProductsArray = $csvFile->getAll(); array_splice($this->okProductsArray, $limit); $this->okProductsArray = Encoding::toPrintableAscii($this->okProductsArray); return $this->okProductsArray; }
private function getOkProductsUpdates($limit = 50) { $productsCsvUrl = E7_PATH . "/tests/E7/ConnectorsSets/OkToBf/Data/okProducts.csv"; $csvFile = new CsvFile($productsCsvUrl, "\t"); $this->okProductsArray = $csvFile->getAll(); array_splice($this->okProductsArray, $limit); $this->okProductsArray = Encoding::toPrintableAscii($this->okProductsArray); return $this->okProductsArray; }