@@ -224,6 +224,9 @@ discard block |
||
224 | 224 | // (to accommodate long [pre] lines) |
225 | 225 | // and the left column (author info) has fixed size |
226 | 226 | // |
227 | +/** |
|
228 | + * @param string[] $headings |
|
229 | + */ |
|
227 | 230 | function start_forum_table($headings) { |
228 | 231 | $a = array(); |
229 | 232 | foreach ($headings as $h) { |
@@ -504,6 +507,9 @@ discard block |
||
504 | 507 | // Display an individual post. |
505 | 508 | // Generates a table row with two cells: author and message |
506 | 509 | // |
510 | +/** |
|
511 | + * @param integer $controls |
|
512 | + */ |
|
507 | 513 | function show_post( |
508 | 514 | $post, $thread, $forum, $logged_in_user, $start=0, |
509 | 515 | $latest_viewed=0, $controls=FORUM_CONTROLS, $filter=true |
@@ -879,6 +885,9 @@ discard block |
||
879 | 885 | // These take care of counts and timestamps. |
880 | 886 | // Don't do these things directly - use these functions |
881 | 887 | // |
888 | +/** |
|
889 | + * @param integer $parent_id |
|
890 | + */ |
|
882 | 891 | function create_post($content, $parent_id, $user, $forum, $thread, $signature) { |
883 | 892 | global $forum_error; |
884 | 893 | if (POST_MAX_LINKS |
@@ -1133,6 +1142,9 @@ discard block |
||
1133 | 1142 | // $sort_style - string (checked by switch statement) |
1134 | 1143 | // $show_hidden - bool (not directly passed to SQL) |
1135 | 1144 | // |
1145 | +/** |
|
1146 | + * @param boolean $show_hidden |
|
1147 | + */ |
|
1136 | 1148 | function get_thread_posts($threadid, $sort_style, $show_hidden) { |
1137 | 1149 | $sql = "thread=$threadid"; |
1138 | 1150 | if (!$show_hidden) { |
@@ -1158,6 +1170,9 @@ discard block |
||
1158 | 1170 | // Show links for post moderation actions; |
1159 | 1171 | // logged in user has moderation rights. |
1160 | 1172 | // |
1173 | +/** |
|
1174 | + * @param string $config |
|
1175 | + */ |
|
1161 | 1176 | function show_post_moderation_links( |
1162 | 1177 | $config, $logged_in_user, $post, $forum, $tokens |
1163 | 1178 | ){ |