// Context part 31

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8087 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-08-17 10:07:12 +00:00
parent b8706ddd8a
commit cb3d802346
57 changed files with 200 additions and 165 deletions
+21 -1
View File
@@ -73,7 +73,7 @@ class CustomerCore extends ObjectModel
public $passwd;
/** @var datetime Password */
public $last_passwd_gen;
public $last_passwd_gen;
/** @var boolean Status */
public $active = true;
@@ -620,4 +620,24 @@ class CustomerCore extends ObjectModel
return false;
}
/**
* Logout
*/
public function logout()
{
if (isset(Context::getContext()->cookie))
Context::getContext()->cookie->logout();
$this->logged = 0;
}
/**
* Soft logout, delete everything links to the customer
* but leave there affiliate's informations
*/
public function mylogout()
{
if (isset(Context::getContext()->cookie))
Context::getContext()->cookie->mylogout();
$this->logged = 0;
}
}