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


PHP getTimePhaseStr函数代码示例

本文整理汇总了PHP中getTimePhaseStr函数的典型用法代码示例。如果您正苦于以下问题:PHP getTimePhaseStr函数的具体用法?PHP getTimePhaseStr怎么用?PHP getTimePhaseStr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: index

 function index()
 {
     $this->common->cleanCurrentProduct();
     $this->data['category'] = $this->product->getProductCategory();
     $this->data['user_id'] = $this->common->getUserId();
     $today = date('Y-m-d', time());
     $yestoday = date("Y-m-d", strtotime("-1 day"));
     $query = $this->product->getProductListByPlatform(1, $this->data['user_id'], $today, $yestoday);
     $this->data['androidList'] = $query;
     // active users num
     $this->data['today_startuser'] = 0;
     $this->data['yestoday_startuser'] = 0;
     // new users num
     $this->data['today_newuser'] = 0;
     $this->data['yestoday_newuser'] = 0;
     // session num
     $this->data['today_startcount'] = 0;
     $this->data['yestoday_startcount'] = 0;
     $this->data['today_totaluser'] = 0;
     for ($i = 0; $i < count($this->data['androidList']); $i++) {
         $row = $this->data['androidList'][$i];
         $this->data['today_startuser'] += $row['startUserToday'];
         $this->data['yestoday_startuser'] += $row['startUserYestoday'];
         $this->data['today_newuser'] += $row['newUserToday'];
         $this->data['yestoday_newuser'] += $row['newUserYestoday'];
         $this->data['today_startcount'] += $row['startCountToday'];
         $this->data['yestoday_startcount'] += $row['startCountYestoday'];
         $this->data['today_totaluser'] += $row['totaluser'];
     }
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'activeUser' => lang("v_activeUserTrend"), 'newUser' => lang("v_newUserTrend"), 'session' => lang("v_sessoinsTrend"));
     $this->common->loadHeaderWithDateControl(lang('m_myapps'));
     $this->load->view('main_form', $this->data);
 }
开发者ID:newbeess,项目名称:razor,代码行数:35,代码来源:console.php

示例2: addversionviewreport

 function addversionviewreport($delete = null, $type = null)
 {
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'activeUser' => lang("v_rpt_ve_trendActiveUsers"), 'newUser' => lang("v_rpt_ve_trendsAnalytics"));
     //load markevent
     $currentProduct = $this->common->getCurrentProduct();
     $this->load->model('point_mark', 'pointmark');
     $markevnets = $this->pointmark->listPointviewtochart($this->common->getUserId(), $currentProduct->id, $fromTime, $toTime)->result_array();
     $marklist = $this->pointmark->listPointviewtochart($this->common->getUserId(), $currentProduct->id, $fromTime, $toTime, 'listcount');
     $this->data['marklist'] = $marklist;
     $this->data['markevents'] = $markevnets;
     $this->data['defdate'] = array();
     $j = 0;
     for ($i = strtotime($fromTime); $i <= strtotime($toTime); $i += 86400) {
         $this->data['defdate'][$j] = date('Y-m-d', $i);
         $j++;
     }
     //end load markevent
     if ($delete == null) {
         $this->data['add'] = "add";
     }
     if ($delete == "del") {
         $this->data['delete'] = "delete";
     }
     if ($type != null) {
         $this->data['type'] = $type;
     }
     $this->load->view('layout/reportheader');
     $this->load->view('widgets/versionview', $this->data);
 }
开发者ID:stdroom,项目名称:MKAnalytics,代码行数:31,代码来源:version.php

示例3: view

 function view($productId = 0)
 {
     $currentProduct = $this->common->getCurrentProduct();
     if ($currentProduct != null) {
         $this->common->cleanCurrentProduct();
         // 			$productId = $currentProduct->id;
         $this->common->setCurrentProduct($productId);
         $this->data['productId'] = $currentProduct->id;
     } else {
         $this->data['productId'] = $productId;
         $this->common->setCurrentProduct($productId);
     }
     $currentProduct = $this->common->getCurrentProduct();
     $this->common->loadHeaderWithDateControl();
     $toTime = date('Y-m-d', time());
     $yestodayTime = date("Y-m-d", strtotime("-1 day"));
     $this->data['today1'] = $this->productanalyze->getTodayInfo($productId, $toTime);
     $this->data['yestoday'] = $this->productanalyze->getTodayInfo($productId, $yestodayTime);
     $this->data['overall'] = $this->productanalyze->getOverallInfo($productId);
     $fromTime = $this->common->getFromTime();
     $toreTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toreTime), 'newUser' => lang("t_newUserSta"), 'totalUser' => lang("t_accumulatedUserSta"), 'activeUser' => lang("t_activeUserSta"), 'sessionNum' => lang("t_sessionsSta"), 'avgUsage' => lang("t_averageUsageDuration"));
     $this->data['dashboardDetailData'] = $this->newusermodel->getDetailUserDataByDay($fromTime, $toTime);
     $this->load->view('overview/productview', $this->data);
 }
开发者ID:npk,项目名称:razor,代码行数:25,代码来源:productbasic.php

示例4: index

 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('reportName' => lang("m_rpt_usageDuration"), 'timePase' => getTimePhaseStr($fromTime, $toTime));
     $this->load->view('usage/usetimeview', $this->data);
 }
开发者ID:npk,项目名称:razor,代码行数:8,代码来源:usetime.php

示例5: index

 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $productId = $this->common->getCurrentProduct();
     $productId = $productId->id;
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['deviceDetails'] = $this->device->getDeviceTypeDetail($productId, $fromTime, $toTime);
     $this->data['reportTitle'] = array('activeUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_de_top10"), $fromTime, $toTime), 'newUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_de_top10"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     $this->load->view('terminalandnet/deviceview', $this->data);
 }
开发者ID:npk,项目名称:razor,代码行数:11,代码来源:device.php

示例6: index

 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $productId = $this->common->getCurrentProduct();
     $productId = $productId->id;
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['details'] = $this->orientationmodel->getTotalUsersPercentByResolution($fromTime, $toTime, $productId);
     $this->data['reportTitle'] = array('activeUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_re_top10"), $fromTime, $toTime), 'newUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_re_top10"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     $this->load->view('terminalandnet/resolutionview', $this->data);
 }
开发者ID:npk,项目名称:razor,代码行数:11,代码来源:resolution.php

示例7: index

 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $productId = $this->common->getCurrentProduct();
     $productId = $productId->id;
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     // init detailed data
     $this->data['details'] = $this->os->getTotalUserPercentByOS($productId, $fromTime, $toTime);
     $this->data['reportTitle'] = array('activeUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_os_top10"), $fromTime, $toTime), 'newUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_os_top10"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     $this->load->view('terminalandnet/osview', $this->data);
 }
开发者ID:npk,项目名称:razor,代码行数:12,代码来源:os.php

示例8: viewDetail

 function viewDetail($targetid)
 {
     $this->common->loadHeaderWithDateControl();
     $productId = $this->common->getCurrentProduct();
     $productId = $productId->id;
     $fromdate = $this->common->getFromTime();
     $todate = $this->common->getToTime();
     $this->data['reportTitle'] = array('eventCount' => getReportTitle(lang("v_rpt_re_eventcount"), $fromdate, $todate), 'timePhase' => getTimePhaseStr($fromdate, $todate));
     $this->data['versions'] = $this->event->getProductVersions($productId);
     $this->data['targetid'] = $targetid;
     $this->load->view('conversionrate/funneldetailview', $this->data);
 }
开发者ID:npk,项目名称:razor,代码行数:12,代码来源:funnels.php

示例9: index

 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $product = $this->common->getCurrentProduct();
     $productId = $product->id;
     $date = date('Y-m-d', strtotime("-1 day"));
     $ret = $this->versionmodel->getBasicVersionInfo($productId, $date);
     $this->data['versionList'] = $ret;
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'activeUser' => lang("v_rpt_ve_trendActiveUsers"), 'newUser' => lang("v_rpt_ve_trendsAnalytics"));
     $this->load->view('overview/versioncontrast', $this->data);
 }
开发者ID:npk,项目名称:razor,代码行数:13,代码来源:version.php

示例10: getEventDeatil

 function getEventDeatil($event_sk, $version, $event_name)
 {
     $this->common->loadHeaderWithDateControl();
     $productId = $this->common->getCurrentProduct();
     $productId = $productId->id;
     $this->data['event_sk'] = $event_sk;
     $this->data['event_version'] = $version;
     $this->data['event_name'] = $event_name;
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'eventMsgNum' => lang("v_rpt_el_eventNum"), 'eventMsgNumActive' => lang("v_rpt_el_eventNumA"), 'eventMsgNumSession' => lang("v_rpt_el_eventNumS"));
     $this->load->view('events/eventchartdetailview', $this->data);
 }
开发者ID:newbeess,项目名称:razor,代码行数:13,代码来源:eventlist.php

示例11: addcarrierreport

 function addcarrierreport($delete = null, $type = null)
 {
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('activeUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_op_top10"), $fromTime, $toTime), 'newUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_op_top10"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     if ($delete == null) {
         $this->data['add'] = "add";
     }
     if ($delete == "del") {
         $this->data['delete'] = "delete";
     }
     if ($type != null) {
         $this->data['type'] = $type;
     }
     $this->load->view('layout/reportheader');
     $this->load->view('widgets/carrier', $this->data);
 }
开发者ID:stdroom,项目名称:MKAnalytics,代码行数:17,代码来源:operator.php

示例12: addchannelmarketreport

 function addchannelmarketreport($delete = null, $type = null)
 {
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'newUser' => getReportTitle(lang("v_rpt_mk_newUserStatistics") . " " . null, $fromTime, $toTime), 'activeUser' => getReportTitle(lang("v_rpt_mk_activeuserS") . " " . null, $fromTime, $toTime), 'Session' => getReportTitle(lang("v_rpt_mk_sessionS") . " " . null, $fromTime, $toTime), 'avgUsageDuration' => getReportTitle(lang("t_averageUsageDuration") . " " . null, $fromTime, $toTime), 'activeWeekly' => getReportTitle(lang("t_activeRateW") . " " . null, $fromTime, $toTime), 'activeMonthly' => getReportTitle(lang("t_activeRateM") . " " . null, $fromTime, $toTime));
     if ($delete == null) {
         $data['add'] = "add";
     }
     if ($delete == "del") {
         $data['delete'] = "delete";
     }
     if ($type != null) {
         $data['type'] = $type;
     }
     $this->load->view('layout/reportheader');
     $this->load->view('widgets/channelmarket', $data);
 }
开发者ID:newbeess,项目名称:razor,代码行数:17,代码来源:market.php

示例13: index

 function index()
 {
     $this->common->loadHeaderWithDateControl();
     $currentProduct = $this->common->getCurrentProduct();
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $country = "中国";
     $this->data['counum'] = $this->region->gettotalacbycountry($fromTime, $toTime, $currentProduct->id);
     $activepagecoun = $this->region->getactivebycountry($fromTime, $toTime, $currentProduct->id, 0, PAGE_NUMS);
     $this->data['activepagecoun'] = $activepagecoun;
     $this->data['pronum'] = $this->region->gettotalactivebypro($fromTime, $toTime, $currentProduct->id, $country);
     $activepagepro = $this->region->getactivebypro($fromTime, $toTime, $currentProduct->id, $country, 0, PAGE_NUMS);
     $this->data['activepagepro'] = $activepagepro;
     $this->data['reportTitle'] = array('activeUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_re_top10Nations"), $fromTime, $toTime), 'newUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_re_top10Nations"), $fromTime, $toTime), 'regionActiveUserReport' => getReportTitle(lang("t_activeUsers") . " " . lang("v_rpt_re_top10Provinces"), $fromTime, $toTime), 'regionNewUserReport' => getReportTitle(lang("t_newUsers") . " " . lang("v_rpt_re_top10Provinces"), $fromTime, $toTime), 'timePhase' => getTimePhaseStr($fromTime, $toTime));
     $this->data['from'] = $fromTime;
     $this->data['to'] = $toTime;
     $this->load->view('usage/regionview', $this->data);
 }
开发者ID:npk,项目名称:razor,代码行数:18,代码来源:region.php

示例14: addsessiondistributionreport

 /**
  * Addsessiondistributionreport function , load usefrequency report
  *
  *@param string $delete delete
  *@param string $type   type
  *
  * @return void
  */
 function addsessiondistributionreport($delete = null, $type = null)
 {
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $this->data['reportTitle'] = array('reportName' => lang("v_rpt_uf_distribution"), 'timePase' => getTimePhaseStr($fromTime, $toTime));
     $productId = $this->common->getCurrentProduct();
     if (!empty($productId) && $delete == null) {
         $this->data['add'] = "add";
     }
     if ($delete == "del") {
         $this->data['delete'] = "delete";
     }
     if ($type != null) {
         $this->data['type'] = $type;
     }
     $this->load->view('layout/reportheader');
     $this->load->view('widgets/sessiondistribution', $this->data);
 }
开发者ID:BellyWong,项目名称:razor,代码行数:26,代码来源:usefrequency.php

示例15: viewMarket

 function viewMarket()
 {
     $product = $this->common->getCurrentProduct();
     $productId = $product->id;
     $data['productId'] = $productId;
     $today = date('Y-m-d', time());
     $yestodayTime = date("Y-m-d", strtotime("-1 day"));
     $seven_day = date("Y-m-d", strtotime("-6 day"));
     $thirty_day = date("Y-m-d", strtotime("-30 day"));
     $sevendayactive = $this->product->getActiveUsersNum($seven_day, $today, $productId);
     $data['sevendayactive'] = $sevendayactive;
     $thirty_day_active = $this->product->getActiveUsersNum($thirty_day, $today, $productId);
     $data['thirty_day_active'] = $thirty_day_active;
     $todayData = $this->product->getAnalyzeDataByDateAndProductID($today, $productId);
     $yestodayData = $this->product->getAnalyzeDataByDateAndProductID($yestodayTime, $productId);
     $data['count'] = $todayData->num_rows();
     $data['todayData'] = $todayData;
     $data['yestodayData'] = $yestodayData;
     $this->common->loadHeaderWithDateControl();
     $fromTime = $this->common->getFromTime();
     $toTime = $this->common->getToTime();
     $data['reportTitle'] = array('timePase' => getTimePhaseStr($fromTime, $toTime), 'newUser' => getReportTitle(lang("v_rpt_mk_newUserStatistics") . " " . null, $fromTime, $toTime), 'activeUser' => getReportTitle(lang("v_rpt_mk_activeuserS") . " " . null, $fromTime, $toTime), 'Session' => getReportTitle(lang("v_rpt_mk_sessionS") . " " . null, $fromTime, $toTime), 'avgUsageDuration' => getReportTitle(lang("t_averageUsageDuration") . " " . null, $fromTime, $toTime), 'activeWeekly' => getReportTitle(lang("t_activeRateW") . " " . null, $fromTime, $toTime), 'activeMonthly' => getReportTitle(lang("t_activeRateM") . " " . null, $fromTime, $toTime));
     $this->load->view('overview/productmarket', $data);
 }
开发者ID:npk,项目名称:razor,代码行数:24,代码来源:market.php


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