@@ -220,6 +220,9 @@ discard block |
||
220 | 220 | // (to accommodate long [pre] lines) |
221 | 221 | // and the left column (author info) has fixed size |
222 | 222 | // |
223 | +/** |
|
224 | + * @param string[] $headings |
|
225 | + */ |
|
223 | 226 | function start_forum_table($headings) { |
224 | 227 | $a = array(); |
225 | 228 | foreach ($headings as $h) { |
@@ -500,6 +503,9 @@ discard block |
||
500 | 503 | // Display an individual post. |
501 | 504 | // Generates a table row with two cells: author and message |
502 | 505 | // |
506 | +/** |
|
507 | + * @param integer $controls |
|
508 | + */ |
|
503 | 509 | function show_post( |
504 | 510 | $post, $thread, $forum, $logged_in_user, $start=0, |
505 | 511 | $latest_viewed=0, $controls=FORUM_CONTROLS, $filter=true |
@@ -875,6 +881,9 @@ discard block |
||
875 | 881 | // These take care of counts and timestamps. |
876 | 882 | // Don't do these things directly - use these functions |
877 | 883 | // |
884 | +/** |
|
885 | + * @param integer $parent_id |
|
886 | + */ |
|
878 | 887 | function create_post($content, $parent_id, $user, $forum, $thread, $signature) { |
879 | 888 | if (POST_MAX_LINKS |
880 | 889 | && link_count($content) > POST_MAX_LINKS |
@@ -1119,6 +1128,9 @@ discard block |
||
1119 | 1128 | // $sort_style - string (checked by switch statement) |
1120 | 1129 | // $show_hidden - bool (not directly passed to SQL) |
1121 | 1130 | // |
1131 | +/** |
|
1132 | + * @param boolean $show_hidden |
|
1133 | + */ |
|
1122 | 1134 | function get_thread_posts($threadid, $sort_style, $show_hidden) { |
1123 | 1135 | $sql = "thread=$threadid"; |
1124 | 1136 | if (!$show_hidden) { |
@@ -1144,6 +1156,9 @@ discard block |
||
1144 | 1156 | // Show links for post moderation actions; |
1145 | 1157 | // logged in user has moderation rights. |
1146 | 1158 | // |
1159 | +/** |
|
1160 | + * @param string $config |
|
1161 | + */ |
|
1147 | 1162 | function show_post_moderation_links( |
1148 | 1163 | $config, $logged_in_user, $post, $forum, $tokens |
1149 | 1164 | ){ |