private function doDetailCookie($response){ if(isset($_COOKIE['replyCase']) && $_COOKIE['replyCase'] == 1){ $response->patientReply =1; $cookie = new HdfCookie(); $cookie->clear('replyCase'); } }
private function _afterRecharge($request, $response) {/*{{{*/ //来自流的预充值,跳 if(isset($_COOKIE['rechargeSourceFlow'])) { $ref = DAL::get()->find('DoctorPatientRef', $_COOKIE['rechargeSourceFlow']); $cookie = new HdfCookie(); $cookie->clear('rechargeSourceFlow'); if($ref instanceof DoctorPatientRef) { $response->setRedirect($response->router->urlfor('telpayment/selectchargeorder', array( 'refid' => $ref->id, ))); } } $response->cashAccount = $this->user->getCashAccount(); return 'recharge'; }/*}}}*/
public function clearDebugContextCookie() { /*{{{*/ $cookie = new HdfCookie(); $cookie->clear('debugcontextkey'); return $this; }
private function cleanCookie() { /*{{{*/ $cookie = new HdfCookie(self::COOKIE_DOMAIN); $cookie->clear("operator"); }
private function clearCookieForReply() { /*{{{*/ //当患者回复时弹出积分图片,由于图片只弹出一次所以得把cookie清掉 $cookieReply = isset($_COOKIE['replyCase']) ? $_COOKIE['replyCase'] : ''; if ($cookieReply && $cookieReply == 1) { $cookie = new HdfCookie(); $cookie->clear('replyCase'); } }