From 361ee8808946fd92cc329584b6948d018784237c Mon Sep 17 00:00:00 2001 From: Vitaly Artemev Date: Tue, 6 Dec 2016 14:43:29 +0400 Subject: [PATCH] Delete RetailcrmHelpers.php --- .../classes/retailcrm/RetailcrmHelpers.php | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 classes/modules/RetailCRM/classes/retailcrm/RetailcrmHelpers.php diff --git a/classes/modules/RetailCRM/classes/retailcrm/RetailcrmHelpers.php b/classes/modules/RetailCRM/classes/retailcrm/RetailcrmHelpers.php deleted file mode 100644 index aad9620..0000000 --- a/classes/modules/RetailCRM/classes/retailcrm/RetailcrmHelpers.php +++ /dev/null @@ -1,41 +0,0 @@ - ', $mapItem); - $map[$mapItem[0]] = $mapItem[1]; - } - - return $map; - } - - /** - * @param $map array - * @param $item string - * @param $reversed bool - * @return string|null - */ - public function getRelationByMap($map, $item, $reversed = false) { - if(!$reversed) { - if(isset($map[$item]) && !empty($map[$item])) - return $map[$item]; - else - return null; - } else { - foreach ($map as $umiStatusOrder => $crmStatusOrder) { - if($crmStatusOrder == $item) - return $umiStatusOrder; - } - return null; - } - } -} \ No newline at end of file