/** * Returns an array with all albums * @return type */ function stat_album_get_all() { return album_get_all(); }
$earlier = date('Y-m-d H:i:s', strtotime('-' . $nDays . ' days', strtotime($todayTemp))); echo "testing threads_select_by_id" . '<br/>'; var_dump(threads_select_by_id($thread_id)); echo '<br/><br/>' . "*************************************************************************" . '<br/>'; echo "testing threads_select_all" . '<br/>'; var_dump(threads_select_all()); echo '<br/><br/>' . "*************************************************************************" . '<br/>'; echo "testing threads_select_all_by_asset" . '<br/>'; var_dump(threads_select_all_by_asset($albumName, $assetName)); echo '<br/><br/>' . "*************************************************************************" . '<br/>'; echo "testing comments_select_by_threadId" . '<br/>'; var_dump(comments_select_by_threadId($thread_id)); ##### 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));