function parseData($catData) { foreach ($catData as $catName => $productFileArray) { $productFileKeys = array_keys($productFileArray); $slug = Helper::clean_string($catName); $data[$slug] = array('name' => $catName, 'items' => $productFileKeys); } return $data; }
function getCategorySlug($row) { return Helper::clean_string($row['category']); }
function convertMerchantToDatatbase($merchant) { $dbName = Helper::clean_string($merchant); return 'prosp_' . str_replace('-', '_', $dbName); }
function convertMerchantToDbName($merchant) { $dbName = Helper::clean_string($merchant); $dbName = $this->setDatabaseNameForEachNetwork($this->getNetwork(), $dbName); return $dbName; }