[*] BO #PSFV-94 : Added AdminCarrierController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9462 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-10-19 14:34:37 +00:00
parent af9dc8707a
commit 2f9e2b313f
13 changed files with 530 additions and 440 deletions
+13 -2
View File
@@ -546,9 +546,7 @@ class CarrierCore extends ObjectModel
if (Configuration::get('PS_CARRIER_DEFAULT_SORT') == Carrier::SORT_BY_PRICE)
{
foreach ($results_array as $r)
{
$prices[] = $r['price'];
}
array_multisort($prices, SORT_NUMERIC, $results_array);
}
@@ -619,6 +617,19 @@ class CarrierCore extends ObjectModel
AND `id_zone` = '.(int)$id_zone.' LIMIT 1');
}
/**
* Get a specific group
*
* @return array Group
*/
public function getGroups()
{
return Db::getInstance()->executeS('
SELECT id_group
FROM '._DB_PREFIX_.'carrier_group
WHERE id_carrier='.(int)$this->id);
}
/**
* Clean delivery prices (weight/price)
*