当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Session_Namespace::unsetAll方法代码示例

本文整理汇总了PHP中Zend_Session_Namespace::unsetAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Session_Namespace::unsetAll方法的具体用法?PHP Zend_Session_Namespace::unsetAll怎么用?PHP Zend_Session_Namespace::unsetAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Session_Namespace的用法示例。


在下文中一共展示了Zend_Session_Namespace::unsetAll方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: indexAction

 public function indexAction()
 {
     $this->_helper->layout()->setLayout("blank");
     $auth = new Zend_Session_Namespace('Zend_Auth');
     $auth->unsetAll();
     return $this->_redirect('/index');
 }
开发者ID:bajabob,项目名称:IdleGuard,代码行数:7,代码来源:LogoutController.php

示例2: clearSessionBYStep

 function clearSessionBYStep($step)
 {
     $session_step = new Zend_Session_Namespace('bookcitytour');
     if ($step == 1) {
         $session_step->unsetAll();
         // 			$session_step->pickup_date =null;
         // 			$session_step->pickup_time = null;
         // 			$session_step->pickup_mins = null;
         // 			$session_step->step2 =0;
         // 			$session_step->return_date = null;
         // 			$session_step->return_time =null;
         // 			$session_step->return_mins =null;
         // 			$session_step->vehiclevaliable = null;
     } elseif ($step == 2) {
         $session_step->step3 = 0;
         $session_step->vehicle_id = null;
         //$data get parram store value only not array
         $session_step->price = 0;
         $session_step->guideavaliable = null;
         $session_step->vehicle_name = null;
         $session_step->guide_id = null;
         $session_step->step4 = 0;
         $session_step->guidename = null;
         $session_step->guideprice = null;
     } elseif ($step == 3) {
         $session_step->guide_id = null;
         $session_step->step4 = 0;
         $session_step->guidename = null;
         $session_step->guideprice = null;
     }
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:31,代码来源:Dbbookingcitytour.php

示例3: finishAction

 /**
  * Finish Action
  */
 public function finishAction()
 {
     $filename = $this->_configDir . $this->_configFile;
     $config = $this->_store->config->production->resources;
     $config->frontController->defaultModule = 'index';
     $config->layout->layout = 'default/layout';
     $writer = new Core_Config_Writer_Yaml();
     $writer->setConfig($this->_store->config);
     if (is_writable($this->_configDir)) {
         $writer->write($filename);
         $this->_store->unsetAll();
         //remove install module
         $pathToModules = APPLICATION_PATH . '/modules/';
         $module = 'install';
         $pathToModule = $pathToModules . $module;
         if (is_dir($pathToModules) && is_writable($pathToModules) && is_dir($pathToModule)) {
             rename($pathToModule, APPLICATION_PATH . '/modules/.' . $module);
             $this->_helper->flashMessenger($this->view->__('Remove module Install'));
         }
         $this->_helper->flashMessenger("Installation complete");
         $this->_helper->redirector(false, false, false);
     } else {
         $this->view->filename = $filename;
         $this->view->config = $writer->render();
     }
 }
开发者ID:shahmaulik,项目名称:zfcore,代码行数:29,代码来源:IndexController.php

示例4: logoutAction

 public function logoutAction()
 {
     Zend_Auth::getInstance()->clearIdentity();
     $session = new Zend_Session_Namespace('userSession');
     $session->unsetAll();
     $this->_redirect("/giris/index");
 }
开发者ID:ugurcanelveren,项目名称:egitim,代码行数:7,代码来源:GirisController.php

示例5: indexAction

 /**
  * Renders the first form:
  * a list of available document types (that can be configured in config.ini
  * and different upload fields
  *
  * @return void
  *
  */
 public function indexAction()
 {
     $session = new Zend_Session_Namespace('Publish');
     //unset all possible session content
     $session->unsetAll();
     $this->view->title = 'publish_controller_index';
     $form = new Publish_Form_PublishingFirst();
     $this->view->action_url = $this->view->url(array('controller' => 'form', 'action' => 'upload'));
     $this->view->showBib = $form->bibliographie;
     $this->view->showRights = $form->showRights;
     $this->view->enableUpload = $form->enableUpload;
     if (!$form->enableUpload) {
         $this->view->subtitle = 'publish_controller_index_sub_without_file';
     } else {
         $this->view->subtitle = 'publish_controller_index_sub';
     }
     //initialize session variables
     // TODO hide initialization routine
     $session->documentType = "";
     $session->documentId = "";
     $session->additionalFields = array();
     $config = $this->getConfig();
     if (isset($config->publish->filetypes->allowed)) {
         $this->view->extensions = $config->publish->filetypes->allowed;
     }
     // Quick bug fix for OPUSVIER-3564
     $translate = Zend_Registry::get('Zend_Translate');
     if ($translate->isTranslated('tooltip_documentType')) {
         $this->view->documentType['hint'] = 'tooltip_documentType';
     }
 }
开发者ID:belapp,项目名称:opus4-application,代码行数:39,代码来源:IndexController.php

示例6: indexAction

 public function indexAction()
 {
     $ns = new Zend_Session_Namespace('login');
     $ns->unsetAll();
     $this->_redirect('manager');
     $this->_helper->viewRenderer->setNoRender();
 }
开发者ID:BGCX261,项目名称:zkiwi-svn-to-git,代码行数:7,代码来源:ExitController.php

示例7: testLoginWithoutSession

 /**
  * Test if login passes with user not logged it
  */
 public function testLoginWithoutSession()
 {
     $this->setExpectedException('Phprojekt_Auth_UserNotLoggedInException');
     $authNamespace = new Zend_Session_Namespace('Phprojekt_Auth-login');
     $authNamespace->unsetAll();
     Phprojekt_Auth::isLoggedIn();
 }
开发者ID:penSecIT,项目名称:PHProjekt,代码行数:10,代码来源:AuthTest.php

示例8: _checkForModifications

 protected function _checkForModifications($initialize = false)
 {
     return true;
     // Just disable it for now
     $currentSignature = $this->_session->currentInstallerSignature;
     $installedPackages = $this->_packageManager->listInstalledPackages();
     $currentInstallerPackage = $installedPackages->offsetGet('core-install');
     if (!$currentInstallerPackage || strlen($currentSignature) == 40) {
         $signature = sha1(file_get_contents(__FILE__));
     } else {
         $signature = $currentInstallerPackage->getVersion();
     }
     // Initialize
     if (true === $initialize) {
         $this->_session->currentInstallerSignature = $signature;
         return true;
     } else {
         if ($signature != $this->_session->currentInstallerSignature) {
             $extractedPackages = $this->_packageManager->listExtractedPackages();
             $this->view->extractedPackageKeys = $extractedPackages->getArrayKeys();
             $this->view->extractedPackageKeys = array_diff($this->view->extractedPackageKeys, array($extractedPackages->getKeyByGuid('core-install'), $extractedPackages->getKeyByGuid('library-engine')));
             $this->_session->unsetAll();
             $this->_helper->viewRenderer->renderScript('_installerUpdated.tpl');
             return false;
         }
     }
     // Was not updated
     return true;
 }
开发者ID:febryantosulistyo,项目名称:ClassicSocial,代码行数:29,代码来源:ManageController.php

示例9: preDispatch

 /**
  * Setzt alle Daten des Layouts aus den Einstellungsdateien
  * @throw Zend_Controller_Dispatcher_Exception
  */
 public function preDispatch()
 {
     parent::preDispatch();
     $modulename = $this->getRequest()->getModuleName();
     $this->view->modulename = $modulename;
     $controllername = $this->getRequest()->getControllerName();
     $this->view->controllername = $controllername;
     $actionname = $this->getRequest()->getActionName();
     $recordAccount = null;
     if (Zend_Registry::get('Dragon_Package_Registry')->isAvailable('DragonX', 'Account') && Zend_Registry::get('Dragon_Package_Registry')->isAvailable('DragonX', 'Emailaddress')) {
         $sessionNamespace = new Zend_Session_Namespace();
         if (isset($sessionNamespace->sessionhash)) {
             $logicSession = new DragonX_Account_Logic_Session();
             try {
                 $recordAccount = $logicSession->getAccount($sessionNamespace->sessionhash);
                 $this->view->sessionhash = $sessionNamespace->sessionhash;
                 Zend_Registry::set('recordAccount', $recordAccount);
                 $this->view->recordAccount = $recordAccount;
                 $logicEmailaddress = new DragonX_Emailaddress_Logic_Emailaddress();
                 $this->view->recordEmailaddress = $logicEmailaddress->getEmailaddress($recordAccount);
                 $logicDeletion = new DragonX_Account_Logic_Deletion();
                 $recordDeletion = $logicDeletion->getDeletion($recordAccount);
                 if (isset($recordDeletion)) {
                     $this->view->recordDeletion = $recordDeletion;
                 }
             } catch (Exception $exception) {
                 $sessionNamespace->unsetAll();
                 if ($modulename == 'homepage' && $controllername == 'account' && $actionname == 'logout') {
                     $this->_helper->FlashMessenger('<div class="alert alert-success">Abmeldung erfolgreich</div>');
                 } else {
                     $this->_helper->FlashMessenger('<div class="alert alert-error">Die Session ist abgelaufen. Profil muss neu angemeldet werden</div>');
                 }
             }
         }
     }
     $this->view->configApplication = new Dragon_Application_Config('dragon/application/application');
     $modulenamearray = explode('_', $modulename);
     $controllerarea = end($modulenamearray);
     $this->view->controllerarea = $controllerarea;
     switch ($controllerarea) {
         case 'homepage':
             $this->view->configNavigation = new Dragon_Application_Config('dragonx/homepage/navigation/homepage');
             break;
         case 'administration':
             if (!Zend_Registry::get('Dragon_Package_Registry')->isAvailable('DragonX', 'Account') || !Zend_Registry::get('Dragon_Package_Registry')->isAvailable('DragonX', 'Emailaddress')) {
                 throw new Dragon_Application_Exception_User('incorrect controller', array('controllername' => $controllername));
             }
             if (!isset($recordAccount)) {
                 $this->_helper->FlashMessenger('<div class="alert alert-error">Die Session wurde noch nicht gestartet oder ist abgelaufen. Profil muss angemeldet werden</div>');
                 $this->_redirect('account/showlogin?' . http_build_query(array('redirect' => $modulename . '/' . $controllername . '/' . $actionname)));
             }
             if (Zend_Registry::get('Dragon_Package_Registry')->isAvailable('DragonX', 'Acl')) {
                 $logicAcl = new DragonX_Acl_Logic_Acl();
                 $this->view->resources = $logicAcl->getResources($recordAccount);
             }
             $this->view->configNavigation = new Dragon_Application_Config('dragonx/homepage/navigation/administration');
             break;
     }
 }
开发者ID:dragonprojects,项目名称:dragonjsonserver,代码行数:63,代码来源:Abstract.php

示例10: logoutAction

 public function logoutAction()
 {
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender();
     $authNamespace = new Zend_Session_Namespace('identify');
     $authNamespace->unsetAll();
     $this->_redirect('/');
 }
开发者ID:rawatanil3,项目名称:Zend-Framework-1.12-Template,代码行数:8,代码来源:SigninController.php

示例11: index

 /**
  * Only page user sees, sets up the component and stores in session
  * 
  * @return void
  */
 public function index()
 {
     $ns = new Zend_Session_Namespace('quiz');
     $ns->unsetAll();
     $quiz = new MowattMedia_Components_Quiz();
     $values = $quiz->populate();
     $ns->quiz = serialize($quiz);
 }
开发者ID:rbmowatt,项目名称:samples-ajaxquiz-php,代码行数:13,代码来源:QuizController.php

示例12: logoutAction

 public function logoutAction()
 {
     $this->getHelper('viewRenderer')->setNoRender();
     //remove other display
     $ud = new Zend_Session_Namespace("visitor");
     $ud->unsetAll();
     $this->_helper->redirector("index", "index", "default");
 }
开发者ID:superchangme,项目名称:jsplugin,代码行数:8,代码来源:IndexController.php

示例13: destroy

 /**
  * Remove a certain key from the store
  * @param String $key
  * @return $this
  */
 public function destroy($key = false)
 {
     if ($key) {
         unset($this->_session->{$key});
     } else {
         $this->_session->unsetAll();
     }
     return $this;
 }
开发者ID:grrr-amsterdam,项目名称:garp3,代码行数:14,代码来源:Session.php

示例14: logout

 public function logout()
 {
     $owner = UserMap::getUser();
     $dataToLog["owner_name"] = $owner["first_name"] . " " . $owner["last_name"];
     $dataToLog["owner_id"] = $owner["owner_id"];
     Mongo_Logger::logEvent($dataToLog, Mongo_Logs_LogFactory::LogoutOwer, Mongo_Interface::LOGS);
     $session = new Zend_Session_Namespace("LeadsChat_Owner_Auth");
     $session->unsetAll();
 }
开发者ID:redhattaccoss,项目名称:Leadschat,代码行数:9,代码来源:Auth.php

示例15: doDeleteAction

 function doDeleteAction()
 {
     $batch = new Am_BatchProcessor(array($this, 'deleteUser'));
     $context = null;
     if (!$batch->run($context)) {
         $this->sendDelRedirect();
     }
     $this->delDemoHistory($this->session->params['demo-id']);
     $this->session->unsetAll();
     $this->_redirect('admin-build-demo');
 }
开发者ID:grlf,项目名称:eyedock,代码行数:11,代码来源:AdminBuildDemoController.php


注:本文中的Zend_Session_Namespace::unsetAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。