[-] 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
@@ -498,7 +498,7 @@ class CustomerCore extends ObjectModel
// DEPRECATED
public function customerIdExists($id_customer)
{
return self::customerIdExistsStatic((int)$id_customer);
return Customer::customerIdExistsStatic((int)$id_customer);
}
public static function customerIdExistsStatic($id_customer)
@@ -559,7 +559,7 @@ class CustomerCore extends ObjectModel
public function getGroups()
{
return self::getGroupsStatic((int)$this->id);
return Customer::getGroupsStatic((int)$this->id);
}
/**
@@ -687,7 +687,7 @@ class CustomerCore extends ObjectModel
return false;
/* Customer is valid only if it can be load and if object password is the same as database one */
if ($this->logged == 1 && $this->id && Validate::isUnsignedId($this->id) && self::checkPassword($this->id, $this->passwd))
if ($this->logged == 1 && $this->id && Validate::isUnsignedId($this->id) && Customer::checkPassword($this->id, $this->passwd))
return true;
return false;
}