本文整理汇总了PHP中owa_coreAPI::registerStateStore方法的典型用法代码示例。如果您正苦于以下问题:PHP owa_coreAPI::registerStateStore方法的具体用法?PHP owa_coreAPI::registerStateStore怎么用?PHP owa_coreAPI::registerStateStore使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类owa_coreAPI
的用法示例。
在下文中一共展示了owa_coreAPI::registerStateStore方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Class Constructor
*
* @return owa_auth
*/
function __construct()
{
// register auth cookies
owa_coreAPI::registerStateStore('u', time() + 3600 * 24 * 365 * 10, '', '', 'cookie');
owa_coreAPI::registerStateStore('p', time() + 3600 * 2, '', '', 'cookie');
parent::__construct();
$this->eq = owa_coreAPI::getEventDispatch();
}
示例2: __construct
public function __construct($config = null)
{
parent::__construct($config);
$this->pageview_event = $this->makeEvent();
$this->pageview_event->setEventType('base.page_request');
owa_coreAPI::registerStateStore('v', time() + 3600 * 24 * 365 * 10, '', 'assoc', 'cookie', true);
owa_coreAPI::registerStateStore('s', time() + 3600 * 24 * 365 * 10, '', 'assoc', 'cookie', true);
owa_coreAPI::registerStateStore('b', null, '', 'json', 'cookie', true);
$cwindow = owa_coreAPI::getSetting('base', 'campaignAttributionWindow');
owa_coreAPI::registerStateStore('c', time() + 3600 * 24 * $cwindow, '', 'json', 'cookie', true);
$this->organicSearchEngines = array(array('d' => 'google', 'q' => 'q'), array('d' => 'yahoo', 'q' => 'p'), array('d' => 'msn', 'q' => 'q'), array('d' => 'bing', 'q' => 'q'), array('d' => 'images.google', 'q' => 'q'), array('d' => 'images.search.yahoo.com', 'q' => 'p'), array('d' => 'aol', 'q' => 'query'), array('d' => 'aol', 'q' => 'encquery'), array('d' => 'aol', 'q' => 'q'), array('d' => 'lycos', 'q' => 'query'), array('d' => 'ask', 'q' => 'q'), array('d' => 'altavista', 'q' => 'q'), array('d' => 'netscape', 'q' => 'query'), array('d' => 'cnn', 'q' => 'query'), array('d' => 'about', 'q' => 'terms'), array('d' => 'mamma', 'q' => 'q'), array('d' => 'daum', 'q' => 'q'), array('d' => 'eniro', 'q' => 'search_word'), array('d' => 'naver', 'q' => 'query'), array('d' => 'pchome', 'q' => 'q'), array('d' => 'alltheweb', 'q' => 'q'), array('d' => 'voila', 'q' => 'rdata'), array('d' => 'virgilio', 'q' => 'qs'), array('d' => 'live', 'q' => 'q'), array('d' => 'baidu', 'q' => 'wd'), array('d' => 'alice', 'q' => 'qs'), array('d' => 'yandex', 'q' => 'text'), array('d' => 'najdi', 'q' => 'q'), array('d' => 'mama', 'q' => 'query'), array('d' => 'seznam', 'q' => 'q'), array('d' => 'search', 'q' => 'q'), array('d' => 'wp', 'q' => 'szukaj'), array('d' => 'onet', 'q' => 'qt'), array('d' => 'szukacz', 'q' => 'q'), array('d' => 'yam', 'q' => 'k'), array('d' => 'kvasir', 'q' => 'q'), array('d' => 'sesam', 'q' => 'q'), array('d' => 'ozu', 'q' => 'q'), array('d' => 'terra', 'q' => 'query'), array('d' => 'mynet', 'q' => 'q'), array('d' => 'ekolay', 'q' => 'q'), array('d' => 'rambler', 'q' => 'query'), array('d' => 'rambler', 'q' => 'words'));
}