Exemple #1
0
/**
 * Returns the rewest date saved
 * @return datetime
 */
function get_newest_date()
{
    return date_select_newest();
}
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;