// MERGE with 1.4 r7770
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7776 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -61,7 +61,7 @@ class ReferralProgramModule extends ObjectModel
|
||||
return $fields;
|
||||
}
|
||||
|
||||
static public function getDiscountPrefix()
|
||||
public static function getDiscountPrefix()
|
||||
{
|
||||
return 'SP';
|
||||
}
|
||||
@@ -126,7 +126,7 @@ class ReferralProgramModule extends ObjectModel
|
||||
*
|
||||
* @return array Sponsor
|
||||
*/
|
||||
static public function getSponsorFriend($id_customer, $restriction = false)
|
||||
public static function getSponsorFriend($id_customer, $restriction = false)
|
||||
{
|
||||
if (!(int)($id_customer))
|
||||
return array();
|
||||
@@ -151,7 +151,7 @@ class ReferralProgramModule extends ObjectModel
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
static public function isSponsorised($id_customer, $getId=false)
|
||||
public static function isSponsorised($id_customer, $getId=false)
|
||||
{
|
||||
$result = Db::getInstance()->getRow('
|
||||
SELECT s.`id_referralprogram`
|
||||
@@ -164,7 +164,7 @@ class ReferralProgramModule extends ObjectModel
|
||||
return isset($result['id_referralprogram']);
|
||||
}
|
||||
|
||||
static public function isSponsorFriend($id_sponsor, $id_friend)
|
||||
public static function isSponsorFriend($id_sponsor, $id_friend)
|
||||
{
|
||||
if (!(int)($id_sponsor) OR !(int)($id_friend))
|
||||
return false;
|
||||
@@ -182,7 +182,7 @@ class ReferralProgramModule extends ObjectModel
|
||||
*
|
||||
* @return boolean OR int idReferralProgram
|
||||
*/
|
||||
static public function isEmailExists($email, $getId = false, $checkCustomer = true)
|
||||
public static function isEmailExists($email, $getId = false, $checkCustomer = true)
|
||||
{
|
||||
if (empty($email) OR !Validate::isEmail($email))
|
||||
die (Tools::displayError('Email invalid.'));
|
||||
|
||||
Reference in New Issue
Block a user