本文整理汇总了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");
}
示例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');
}
}
示例3: Remove
public static function Remove($namespace)
{
$zendSession = new Zend_Session_Namespace($namespace);
@$zendSession->__unset();
}
示例4: logoutAction
public function logoutAction()
{
$ns = new Zend_Session_Namespace('admin');
$ns->__unset('islogin');
$this->checkLogin();
}
示例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();
}
示例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);
}
示例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;
}
示例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);
}