[-] Classes : all classes and controllers now use their name in static calls instead of self (improve override) #PSFV-376

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12552 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-19 10:14:10 +00:00
parent 81832703f2
commit 6887541bdd
82 changed files with 432 additions and 431 deletions
+3 -3
View File
@@ -123,7 +123,7 @@ class GroupCore extends ObjectModel
public static function getPriceDisplayMethod($id_group)
{
if (!isset(self::$group_price_display_method[$id_group]))
if (!isset(Group::$group_price_display_method[$id_group]))
self::$group_price_display_method[$id_group] = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
SELECT `price_display_method`
FROM `'._DB_PREFIX_.'group`
@@ -133,7 +133,7 @@ class GroupCore extends ObjectModel
public static function getDefaultPriceDisplayMethod()
{
return self::getPriceDisplayMethod((int)Configuration::get('PS_CUSTOMER_GROUP'));
return Group::getPriceDisplayMethod((int)Configuration::get('PS_CUSTOMER_GROUP'));
}
public function add($autodate = true, $null_values = false)
@@ -163,7 +163,7 @@ class GroupCore extends ObjectModel
$this->truncateModulesRestrictions($this->id);
// Refresh cache of feature detachable
Configuration::updateGlobalValue('PS_GROUP_FEATURE_ACTIVE', self::isCurrentlyUsed());
Configuration::updateGlobalValue('PS_GROUP_FEATURE_ACTIVE', Group::isCurrentlyUsed());
// Add default group (id 3) to customers without groups
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'customer_group` (