本文整理汇总了PHP中Piwik\Tracker\Request::setCurrentTimestamp方法的典型用法代码示例。如果您正苦于以下问题:PHP Request::setCurrentTimestamp方法的具体用法?PHP Request::setCurrentTimestamp怎么用?PHP Request::setCurrentTimestamp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Piwik\Tracker\Request
的用法示例。
在下文中一共展示了Request::setCurrentTimestamp方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildRequest
private function buildRequest($idsite)
{
$request = new Request(array('idsite' => '' . $idsite));
$request->setCurrentTimestamp($this->time);
return $request;
}
示例2: prepareVisitWithRequest
private function prepareVisitWithRequest($requestParams, $requestDate)
{
$request = new Request($requestParams);
$request->setCurrentTimestamp(Date::factory($requestDate)->getTimestamp());
$visit = new Visit();
$visit->setRequest($request);
$visit->handle();
return array($visit, $request);
}
示例3: prepareVisitWithRequest
private function prepareVisitWithRequest($requestParams, $requestDate)
{
$request = new Request($requestParams);
$request->setCurrentTimestamp(Date::factory($requestDate)->getTimestamp());
$visit = self::$fixture->piwikEnvironment->getContainer()->get('Piwik\\Plugins\\CoreHome\\Tracker\\VisitRequestProcessor');
return array($visit, $request);
}