/** * Return the number of comments by album * @param type $albumName * @return numeric */ function stat_comments_count_by_album($albumName) { return comments_count_by_album($albumName); }
##### STATS FUNCTIONS ####################################################### echo '<br/><br/>' . "*************************************************************************" . '<br/>'; echo "testing album_get_all" . '<br/>'; var_dump(album_get_all()); echo '<br/><br/>' . "*************************************************************************" . '<br/>'; echo "testing threads_count_by_album" . '<br/>'; print_r(threads_count_by_album($albumName)); echo '<br/><br/>' . "*************************************************************************" . '<br/>'; echo "testing threads_count_by_album_and_month" . '<br/>'; print_r(threads_count_by_album_and_month($albumName, $month)); echo '<br/><br/>' . "*************************************************************************" . '<br/>'; echo "testing threads_count_by_album_and_date_interval" . '<br/>'; print_r(threads_count_by_album_and_date_interval($albumName, $earlier, $later)); echo '<br/><br/>' . "*************************************************************************" . '<br/>'; echo "testing comments_count_by_album" . '<br/>'; print_r(comments_count_by_album($albumName)); echo '<br/><br/>' . "*************************************************************************" . '<br/>'; echo "testing comments_count_by_album_and_month" . '<br/>'; print_r(comments_count_by_album_and_month($albumName, $month)); 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));