コード例 #1
0
ファイル: lib_statistics.php プロジェクト: jingyexu/ezcast
/**
 * Returns the comments count of an album between 2 date
 * @param string $albumName
 * @param date $earlier
 * @param date $later
 * @return numeric
 */
function stat_comments_count_by_album_and_date_interval($albumName, $earlier, $later)
{
    return comments_count_by_album_and_date_interval($albumName, $earlier, $later);
}
コード例 #2
0
echo '<br/><br/>' . "*************************************************************************" . '<br/>';
echo "testing threads_count_all" . '<br/>';
print_r(threads_count_all());
echo '<br/><br/>' . "*************************************************************************" . '<br/>';
echo "testing comments_count_all" . '<br/>';
print_r(comments_count_all());
echo '<br/><br/>' . "*************************************************************************" . '<br/>';
echo "testing threads_count_by_month" . '<br/>';
print_r(threads_count_by_month($year_month));
echo '<br/><br/>' . "*************************************************************************" . '<br/>';
echo "testing comments_count_by_month" . '<br/>';
print_r(comments_count_by_month($year_month));
echo '<br/><br/>' . "*************************************************************************" . '<br/>';
echo "testing threads_count_by_date_interval" . '<br/>';
print_r(threads_count_by_date_interval($earlier, $later));
echo '<br/><br/>' . "*************************************************************************" . '<br/>';
echo "testing comments_count_by_date_interval" . '<br/>';
print_r(comments_count_by_date_interval($earlier, $later));
echo '<br/><br/>' . "*************************************************************************" . '<br/>';
echo "testing comments_count_by_album_and_date_interval" . '<br/>';
var_dump(comments_count_by_album_and_date_interval($albumName, $earlier, $later));
echo '<br/><br/>' . "*************************************************************************" . '<br/>';
echo "testing date_select_oldest" . '<br/>';
print_r(date_select_oldest());
echo '<br/><br/>' . "*************************************************************************" . '<br/>';
echo "testing date_select_newest" . '<br/>';
print_r(date_select_newest());
echo '<br/><br/>' . "*************************************************************************" . '<br/>';
echo "testing threads_count_all_by_asset" . '<br/>';
print_r(threads_count_all_by_asset());
die;