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']);
 }
Example #3
0
 function convertMerchantToDatatbase($merchant)
 {
     $dbName = Helper::clean_string($merchant);
     return 'prosp_' . str_replace('-', '_', $dbName);
 }
Example #4
0
 function convertMerchantToDbName($merchant)
 {
     $dbName = Helper::clean_string($merchant);
     $dbName = $this->setDatabaseNameForEachNetwork($this->getNetwork(), $dbName);
     return $dbName;
 }