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


PHP owa_coreAPI::clearState方法代碼示例

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


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

示例1: action

 function action()
 {
     // Control logic
     // Do not log if the first_hit cookie is still present.
     $fh_state_name = owa_coreAPI::getSetting('base', 'first_hit_param');
     $fh = owa_coreAPI::getStateParam($fh_state_name);
     if (!empty($fh)) {
         $this->e->debug('Clearing left over first first hit cookie.');
         owa_coreAPI::clearState($fh_state_name);
         $this->e->debug('Left over first first hit cookie found...aborting request as likely a robot.');
         $this->event->set('do_not_log', true);
         return;
     }
     // set variety of new session properties.
     if ($this->event->get('is_new_session')) {
     }
 }
開發者ID:ashutoshdev,項目名稱:Open-Web-Analytics,代碼行數:17,代碼來源:processRequest.php

示例2: action

 function action()
 {
     $fh_state_name = owa_coreAPI::getSetting('base', 'first_hit_param');
     //print_r($fh_state_name);
     $fh = owa_coreAPI::getStateParam($fh_state_name);
     owa_coreAPI::debug('cookiename: ' . $fh_state_name);
     //owa_coreAPI::debug(print_r($_COOKIE, true));
     if (!empty($fh)) {
         $this->event->replaceProperties($fh);
         $this->event->setEventType('base.first_page_request');
         //owa_coreAPI::debug(print_r($this->event, true));
         // Delete first_hit Cookie
         owa_coreAPI::clearState($fh_state_name);
     }
     $this->setView('base.pixel');
     $this->setViewMethod('image');
 }
開發者ID:ashutoshdev,項目名稱:Open-Web-Analytics,代碼行數:17,代碼來源:processFirstRequest.php

示例3: resetSessionState

 private function resetSessionState()
 {
     $last_req = owa_coreAPI::getState('s', 'last_req');
     owa_coreAPI::clearState('s');
     owa_coreAPI::setState('s', 'last_req', $last_req);
 }
開發者ID:nishantmendiratta,項目名稱:Open-Web-Analytics,代碼行數:6,代碼來源:client.php

示例4: deleteSiteSessionState

 function deleteSiteSessionState($site_id, $store_type = 'cookie')
 {
     $store_name = owa_coreAPI::getSetting('base', 'site_session_param') . '_' . $site_id;
     return owa_coreAPI::clearState($store_name);
 }
開發者ID:ashutoshdev,項目名稱:Open-Web-Analytics,代碼行數:5,代碼來源:event.php

示例5: deleteCredentials

 /**
  * Removes credentials
  * @return boolean
  */
 function deleteCredentials()
 {
     return owa_coreAPI::clearState('p');
 }
開發者ID:nishantmendiratta,項目名稱:Open-Web-Analytics,代碼行數:8,代碼來源:owa_auth.php


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