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


PHP Date::getDatetimeFromTimestamp方法代码示例

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


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

示例1: onNewVisit

 /**
  * @param Request $request
  * @param Visitor $visitor
  * @param Action|null $action
  * @return mixed
  */
 public function onNewVisit(Request $request, Visitor $visitor, $action)
 {
     return Date::getDatetimeFromTimestamp($request->getCurrentTimestamp());
 }
开发者ID:diosmosis,项目名称:piwik,代码行数:10,代码来源:VisitLastActionTime.php

示例2: getGoalFromVisitor

 private function getGoalFromVisitor(Visitor $visitor, $visitorInformation, $action)
 {
     $goal = array('idvisit' => $visitorInformation['idvisit'], 'idvisitor' => $visitorInformation['idvisitor'], 'server_time' => Date::getDatetimeFromTimestamp($visitorInformation['visit_last_action_time']));
     $visitDimensions = VisitDimension::getAllDimensions();
     foreach ($visitDimensions as $dimension) {
         $value = $dimension->onAnyGoalConversion($this->request, $visitor, $action);
         if (false !== $value) {
             $goal[$dimension->getColumnName()] = $value;
         }
     }
     return $goal;
 }
开发者ID:bossrabbit,项目名称:piwik,代码行数:12,代码来源:GoalManager.php

示例3: getGoalFromVisitor

 private function getGoalFromVisitor(VisitProperties $visitProperties, Request $request, $action)
 {
     $goal = array('idvisit' => $visitProperties->getProperty('idvisit'), 'idvisitor' => $visitProperties->getProperty('idvisitor'), 'server_time' => Date::getDatetimeFromTimestamp($visitProperties->getProperty('visit_last_action_time')));
     $visitDimensions = VisitDimension::getAllDimensions();
     $visit = Visitor::makeFromVisitProperties($visitProperties, $request);
     foreach ($visitDimensions as $dimension) {
         $value = $dimension->onAnyGoalConversion($request, $visit, $action);
         if (false !== $value) {
             $goal[$dimension->getColumnName()] = $value;
         }
     }
     return $goal;
 }
开发者ID:annaduraig,项目名称:piwik,代码行数:13,代码来源:GoalManager.php

示例4: getDatetimeFromTimestamp

 /**
  * @deprecated since 2.10.0 use {@link Date::getDatetimeFromTimestamp()} instead
  */
 public static function getDatetimeFromTimestamp($timestamp)
 {
     return Date::getDatetimeFromTimestamp($timestamp);
 }
开发者ID:FluentDevelopment,项目名称:piwik,代码行数:7,代码来源:Tracker.php

示例5: onNewAction

 public function onNewAction(Request $request, Visitor $visitor, Action $action)
 {
     $timestamp = $request->getCurrentTimestamp();
     return Date::getDatetimeFromTimestamp($timestamp);
 }
开发者ID:FluentDevelopment,项目名称:piwik,代码行数:5,代码来源:ServerTime.php


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