当前位置: 首页>>代码示例>>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;未经允许,请勿转载。