本文整理匯總了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;