Changeset 14447
- Timestamp:
- 01/17/08 09:49:32 (11 months ago)
- Files:
-
- branches/MidCOM_2_8/net.nemein.discussion/config/manifest.inc (modified) (1 diff)
- branches/MidCOM_2_8/net.nemein.discussion/handler/index.php (modified) (1 diff)
- branches/MidCOM_2_8/net.nemein.discussion/handler/latest.php (modified) (4 diffs)
- branches/MidCOM_2_8/net.nemein.discussion/handler/moderate.php (modified) (4 diffs)
- branches/MidCOM_2_8/net.nemein.discussion/handler/post.php (modified) (5 diffs)
- branches/MidCOM_2_8/net.nemein.discussion/handler/thread.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/MidCOM_2_8/net.nemein.discussion/config/manifest.inc
r14363 r14447 2 2 'icon' => 'stock-icons/16x16/stock-discussion.png', 3 3 'purecode' => false, 4 'version' => '2.0.3beta1 3',4 'version' => '2.0.3beta14', 5 5 'state' => 'beta', 6 6 'privileges' => array branches/MidCOM_2_8/net.nemein.discussion/handler/index.php
r14361 r14447 49 49 } 50 50 51 /** 52 * 53 * @param mixed $handler_id The ID of the handler. 54 * @param mixed &$data The local request data. 55 */ 51 56 function _show_index($handler_id, &$data) 52 57 { branches/MidCOM_2_8/net.nemein.discussion/handler/latest.php
r14361 r14447 80 80 } 81 81 82 /** 83 * @param mixed $handler_id The ID of the handler. 84 * @param mixed &$data The local request data. 85 */ 82 86 function _show_latest($handler_id, &$data) 83 87 { … … 162 166 } 163 167 168 /** 169 * @param mixed $handler_id The ID of the handler. 170 * @param mixed &$data The local request data. 171 */ 164 172 function _show_latest_all($handler_id, &$data) 165 173 { … … 176 184 /** 177 185 * Show latest posts in HTML format 186 * 187 * @param mixed &$data The local request data. 178 188 */ 179 189 function _show_latest_posts(&$data) … … 195 205 /** 196 206 * Show latest posts as RSS feed 207 * 208 * @param mixed $handler_id The ID of the handler. 209 * @param mixed &$data The local request data. 197 210 */ 198 211 function _show_rss(&$data) branches/MidCOM_2_8/net.nemein.discussion/handler/moderate.php
r14334 r14447 57 57 * @param Array $args The argument list. 58 58 * @param Array &$data The local request data. 59 * @return bool Indicating success.59 * @return boolean Indicating success. 60 60 */ 61 61 function _handler_report($handler_id, $args, &$data) … … 183 183 * @param Array $args The argument list. 184 184 * @param Array &$data The local request data. 185 * @return bool Indicating success.185 * @return boolean Indicating success. 186 186 */ 187 187 function _handler_moderate($handler_id, $args, &$data) … … 189 189 $_MIDCOM->auth->require_valid_user(); 190 190 $_MIDCOM->cache->content->enable_live_mode(); 191 $this->_topic->require_do('net.nemein.discussion:moderation'); 191 192 192 193 $qb = new org_openpsa_qbpager('net_nemein_discussion_post_dba', 'net_nemein_discussion_posts'); … … 229 230 } 230 231 232 /** 233 * 234 * @param mixed $handler_id The ID of the handler. 235 * @param mixed &$data The local request data. 236 */ 231 237 function _show_moderate($handler_id, &$data) 232 238 { branches/MidCOM_2_8/net.nemein.discussion/handler/post.php
r14187 r14447 222 222 * @param Array $args The argument list. 223 223 * @param Array &$data The local request data. 224 * @return bool Indicating success.224 * @return boolean Indicating success. 225 225 */ 226 226 function _handler_create($handler_id, $args, &$data) … … 237 237 $this->_thread->name = midcom_generate_urlname_from_string($this->_post->subject); 238 238 $this->_thread->posts = 1; 239 $this->_thread->firstpost = $this->_post->id; 239 240 $this->_thread->latestpost = $this->_post->id; 240 $this->_thread->firstpost = $this->_post->id;241 241 $this->_thread->latestposttime = $this->_post->metadata->published; 242 242 $i = 0; … … 303 303 /** 304 304 * Show thread posting form 305 * 306 * @param mixed $handler_id The ID of the handler. 307 * @param mixed &$data The local request data. 305 308 */ 306 309 function _show_create($handler_id, &$data) … … 316 319 * @param Array $args The argument list. 317 320 * @param Array &$data The local request data. 318 * @return bool Indicating success.321 * @return boolean Indicating success. 319 322 */ 320 323 function _handler_reply($handler_id, $args, &$data) … … 410 413 /** 411 414 * Show reply form 415 * 416 * @param mixed $handler_id The ID of the handler. 417 * @param mixed &$data The local request data. 412 418 */ 413 419 function _show_reply($handler_id, &$data) branches/MidCOM_2_8/net.nemein.discussion/handler/thread.php
r14361 r14447 192 192 } 193 193 194 /** 195 * 196 * @param mixed $handler_id The ID of the handler. 197 * @param mixed &$data The local request data. 198 */ 194 199 function _show_thread($handler_id, &$data) 195 200 { … … 206 211 } 207 212 213 /** 214 * 215 * @param mixed $handler_id The ID of the handler. 216 * @param mixed &$data The local request data. 217 */ 208 218 function _show_thread_threaded($handler_id, &$data) 209 219 { … … 322 332 } 323 333 334 /** 335 * 336 * @param mixed $handler_id The ID of the handler. 337 * @param mixed &$data The local request data. 338 */ 324 339 function _show_thread_flat($handler_id, &$data) 325 340 { … … 431 446 } 432 447 448 /** 449 * 450 * @param mixed $handler_id The ID of the handler. 451 * @param mixed &$data The local request data. 452 */ 433 453 function _show_post($handler_id, &$data) 434 454 {
