/**
  *    退出登录
  *
  *    @author    Garbin
  *    @param    none
  *    @return    void
  */
 function logout()
 {
     /* 将购物车中的相关项的session_id置为空 */
     $mod_cart =& m('cart');
     $mod_cart->edit("user_id = '" . $this->get('user_id') . "'", array('session_id' => ''));
     /* 退出登录 */
     parent::logout();
 }
Beispiel #2
0
 function Visitor($object = null)
 {
     parent::__construct($object);
 }
Beispiel #3
0
 public function getPeer()
 {
     if (self::$peer === null) {
         self::$peer = new VisitorPeer();
     }
     return self::$peer;
 }