@@ -578,7 +578,7 @@ |
||
578 | 578 | /** |
579 | 579 | * Return the with the passed ID (via URL parameters) or the current user |
580 | 580 | * |
581 | - * @return null|Member Returns the member object or NULL if the member |
|
581 | + * @return DataObject|null Returns the member object or NULL if the member |
|
582 | 582 | * was not found |
583 | 583 | */ |
584 | 584 | public function Member() |
@@ -31,6 +31,10 @@ |
||
31 | 31 | return i18n::get_locale(); |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $name |
|
36 | + * @param string $title |
|
37 | + */ |
|
34 | 38 | public function __construct($name, $title = null, $source = null, $value = "", $form=null) |
35 | 39 | { |
36 | 40 | if (!is_array($source)) { |
@@ -165,7 +165,7 @@ |
||
165 | 165 | * Check if they have visited this thread before. If they haven't increment |
166 | 166 | * the NumViews value by 1 and set visited to true. |
167 | 167 | * |
168 | - * @return void |
|
168 | + * @return false|null |
|
169 | 169 | */ |
170 | 170 | public function incNumViews() |
171 | 171 | { |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | |
424 | 424 | /** |
425 | 425 | * Returns the Topics (the first Post of each Thread) for this Forum |
426 | - * @return DataList |
|
426 | + * @return PaginatedList |
|
427 | 427 | */ |
428 | 428 | public function getTopics() |
429 | 429 | { |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | * |
639 | 639 | * Designed to be called via AJAX so return true / false |
640 | 640 | * |
641 | - * @return bool |
|
641 | + * @return null|false |
|
642 | 642 | */ |
643 | 643 | public function unsubscribe(SS_HTTPRequest $request) |
644 | 644 | { |
@@ -785,7 +785,7 @@ discard block |
||
785 | 785 | /** |
786 | 786 | * Get posts to display. This method assumes an URL parameter "ID" which contains the thread ID. |
787 | 787 | * @param string sortDirection The sort order direction, either ASC for ascending (default) or DESC for descending |
788 | - * @return DataObjectSet Posts |
|
788 | + * @return PaginatedList Posts |
|
789 | 789 | */ |
790 | 790 | public function Posts($sortDirection = "ASC") |
791 | 791 | { |
@@ -817,7 +817,7 @@ discard block |
||
817 | 817 | /** |
818 | 818 | * Get the usable BB codes |
819 | 819 | * |
820 | - * @return DataObjectSet Returns the usable BB codes |
|
820 | + * @return ArrayList Returns the usable BB codes |
|
821 | 821 | * @see BBCodeParser::usable_tags() |
822 | 822 | */ |
823 | 823 | public function BBTags() |
@@ -1112,6 +1112,8 @@ discard block |
||
1112 | 1112 | |
1113 | 1113 | /** |
1114 | 1114 | * Send email to moderators notifying them the thread has been created or post added/edited. |
1115 | + * @param DataObject $post |
|
1116 | + * @param DataObject $thread |
|
1115 | 1117 | */ |
1116 | 1118 | public function notifyModerators($post, $thread, $starting_thread = false) |
1117 | 1119 | { |
@@ -1452,6 +1454,9 @@ discard block |
||
1452 | 1454 | */ |
1453 | 1455 | class Forum_DataQuery extends DataQuery |
1454 | 1456 | { |
1457 | + /** |
|
1458 | + * @param string $dataClass |
|
1459 | + */ |
|
1455 | 1460 | public function __construct($dataClass, $query) |
1456 | 1461 | { |
1457 | 1462 | parent::__construct($dataClass); |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | |
367 | 367 | /** |
368 | 368 | * Get a list of Forum Categories |
369 | - * @return DataList |
|
369 | + * @return boolean |
|
370 | 370 | */ |
371 | 371 | public function getShowInCategories() |
372 | 372 | { |
@@ -532,7 +532,7 @@ discard block |
||
532 | 532 | * it (keys: 'last_id', 'last_created') |
533 | 533 | * @param int $lastVisit Unix timestamp of the last visit (GMT) |
534 | 534 | * @param int $lastPostID ID of the last read post |
535 | - * @param int $thread ID of the relevant topic (set to NULL for all |
|
535 | + * @param int $threadID ID of the relevant topic (set to NULL for all |
|
536 | 536 | * topics) |
537 | 537 | * @return bool Returns TRUE if there are new posts available, otherwise |
538 | 538 | * FALSE. |
@@ -940,7 +940,7 @@ discard block |
||
940 | 940 | /** |
941 | 941 | * Return the GlobalAnnouncements from the individual forums |
942 | 942 | * |
943 | - * @return DataObjectSet |
|
943 | + * @return ArrayList |
|
944 | 944 | */ |
945 | 945 | public function GlobalAnnouncements() |
946 | 946 | { |