當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Session_Namespace::__unset方法代碼示例

本文整理匯總了PHP中Zend_Session_Namespace::__unset方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Session_Namespace::__unset方法的具體用法?PHP Zend_Session_Namespace::__unset怎麽用?PHP Zend_Session_Namespace::__unset使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Session_Namespace的用法示例。


在下文中一共展示了Zend_Session_Namespace::__unset方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: logout

 public function logout()
 {
     $session = new Zend_Session_Namespace("LeadsChat_Auth");
     $db = $this->db;
     $db->update("available_agents", array("currently_served" => 0), "agent_id = {$session->agent_id}");
     $db->update("available_agents", array("available" => "N"), "agent_id = {$session->agent_id}");
     $session->__unset("agent_id");
     $session->__unset("agent");
     $session->__unset("chat_sessions");
 }
開發者ID:redhattaccoss,項目名稱:Leadschat,代碼行數:10,代碼來源:Auth.php

示例2: unsetSession

 public function unsetSession($name = null)
 {
     $ynblog_search = new Zend_Session_Namespace($name);
     // Search field
     if (isset($ynblog_search->session_array)) {
         $ynblog_search->__unset('session_array');
     }
 }
開發者ID:hoalangoc,項目名稱:ftf,代碼行數:8,代碼來源:Session.php

示例3: Remove

 public static function Remove($namespace)
 {
     $zendSession = new Zend_Session_Namespace($namespace);
     @$zendSession->__unset();
 }
開發者ID:rocknoon,項目名稱:TCVM,代碼行數:5,代碼來源:Session.php

示例4: logoutAction

 public function logoutAction()
 {
     $ns = new Zend_Session_Namespace('admin');
     $ns->__unset('islogin');
     $this->checkLogin();
 }
開發者ID:Gorp,項目名稱:pr,代碼行數:6,代碼來源:AdminController.php

示例5: adminxmldisplyAction

 function adminxmldisplyAction()
 {
     $smsSpace = new Zend_Session_Namespace('SMS');
     if ($this->_request->getParam('flag') == 0) {
         //			header("Content-Type: application/xml");
         if ($this->_request->getParam('create') == null) {
             $this->view->text = stripslashes($this->_request["xml"]);
         } else {
             $this->view->text = stripslashes($smsSpace->xml);
             $smsSpace->xml = "";
             $smsSpace->__unset('xml');
         }
     } else {
         //			if (strstr($smsSpace["respxml"],"</scp>")) header("Content-Type: application/xml");
         $this->view->text = $smsSpace->respxml;
         $smsSpace->respxml = "";
         $smsSpace->__unset('respxml');
     }
     $this->_helper->layout->disableLayout();
 }
開發者ID:omusico,項目名稱:wildfire_php,代碼行數:20,代碼來源:SmsController.php

示例6: __unset

 /**
  * __unset() - unset a variable in this object's namespace.
  *
  * @param string $name - programmatic name of a key, in a <key,value> pair in the current namespace
  * @return true
  */
 public function __unset($name)
 {
     if ($this->_persistObject) {
         $data = parent::_namespaceGet($this->_namespace);
         if (is_object($data)) {
             if (isset($data->{$name})) {
                 return $data->{$name};
             }
         }
     }
     return parent::__unset($name);
 }
開發者ID:sgdoc,項目名稱:sgdoce-codigo,代碼行數:18,代碼來源:Namespace.php

示例7: limpar

 /**
  * Limpa todas as notificações
  *
  * @return boolean
  */
 public static function limpar()
 {
     $oSessaoNotificacao = new Zend_Session_Namespace('notificacoes');
     $oSessaoNotificacao->__unset(self::TIPO_SUCESSO);
     $oSessaoNotificacao->__unset(self::TIPO_AVISO);
     $oSessaoNotificacao->__unset(self::TIPO_ERRO);
     return TRUE;
 }
開發者ID:arendasistemasintegrados,項目名稱:mateusleme,代碼行數:13,代碼來源:Notificacao.php

示例8: logoutAction

 public function logoutAction()
 {
     Zend_Auth::getInstance()->clearIdentity();
     $authNamespace = new Zend_Session_Namespace('Zend_Auth');
     $authNamespace->__unset('user');
     $appspace = new Zend_Session_Namespace('application');
     $appspace->__unset('popup');
     $cartspace = new Zend_Session_Namespace('Cart');
     $cartspace->__unset('list');
     $consumerExtraInfo = new Zend_Session_Namespace('consumerExtraInfo');
     $consumerExtraInfo->__unset('data');
     $clientCampaignList = new Zend_Session_Namespace('ClientCampaignList');
     $clientCampaignList->__unset('list');
     //unset client new message count
     $clientCampaignList = new Zend_Session_Namespace('ClientMessage');
     $clientCampaignList->__unset('count_' . $this->_currentUser->id);
     Zend_Debug::dump($clientCampaignList);
     $config = Zend_Registry::get('config');
     $url = $config->joomla->home;
     $this->_flashMessenger->addMessage('Logout successfully!');
     $this->_helper->redirector->gotoUrl($url);
 }
開發者ID:omusico,項目名稱:wildfire_php,代碼行數:22,代碼來源:LoginController.php


注:本文中的Zend_Session_Namespace::__unset方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。