コード例 #1
0
ファイル: lib_statistics.php プロジェクト: jingyexu/ezcast
/**
 * Returns the oldest date saved
 * @return datetime
 */
function get_oldest_date()
{
    return date_select_oldest();
}
コード例 #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;