本文整理汇总了PHP中COMMONFUNC::reset_weekly_counter方法的典型用法代码示例。如果您正苦于以下问题:PHP COMMONFUNC::reset_weekly_counter方法的具体用法?PHP COMMONFUNC::reset_weekly_counter怎么用?PHP COMMONFUNC::reset_weekly_counter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COMMONFUNC
的用法示例。
在下文中一共展示了COMMONFUNC::reset_weekly_counter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: where
}
########################################################
########### FEEDBAK_FROM_OPPOSING_COACH #############
$query_6 = "select * from tbl_opp_comments where (date(fldaddedDate) >= (DATE_SUB(now(), INTERVAL 8 day)) AND date(fldaddedDate)< (now())) GROUP BY fldathleteid,fldcoachid";
$rating_db_6->query($query_6);
$arr_info = array();
$totalPages = $rating_db_6->num_rows();
if ($totalPages > 0) {
$rating_db_6->next_record();
for ($k = 0; $k < $totalPages; $k++) {
$UserID = $rating_db_6->f('fldId');
$rating_func->setAtheleteRating("WEEKLY", $UserID, "FEEDBAK_FROM_OPPOSING_COACH", true);
$rating_db_6->next_record();
}
}
########################################################
########### MOST_PROFILE_VIEW #############
$query_7 = "select * from tbl_athelete_register where fldStatus='Active' ORDER BY fldWeeklycounter DESC";
$rating_db_7->query($query_7);
$arr_info = array();
$totalPages = $rating_db_7->num_rows();
$rating_func->reset_weekly_counter();
if ($totalPages > 0) {
$rating_db_7->next_record();
$UserID = $rating_db_7->f('fldId');
$rating_func->setAtheleteRating("WEEKLY", $UserID, "MOST_PROFILE_VIEW", true);
}
##############################################
######### WEEKLY RATING END ##################
##############################################
die;