@@ -32,6 +32,10 @@ |
||
| 32 | 32 | return i18n::get_locale(); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $name |
|
| 37 | + * @param string $title |
|
| 38 | + */ |
|
| 35 | 39 | public function __construct($name, $title = null, $source = null, $value = "", $form = null) |
| 36 | 40 | { |
| 37 | 41 | if (!is_array($source)) { |
@@ -169,7 +169,7 @@ |
||
| 169 | 169 | * Check if they have visited this thread before. If they haven't increment |
| 170 | 170 | * the NumViews value by 1 and set visited to true. |
| 171 | 171 | * |
| 172 | - * @return void |
|
| 172 | + * @return false|null |
|
| 173 | 173 | */ |
| 174 | 174 | public function incNumViews() |
| 175 | 175 | { |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | /** |
| 242 | 242 | * Get the number of total posts |
| 243 | 243 | * |
| 244 | - * @return int Returns the number of posts |
|
| 244 | + * @return string Returns the number of posts |
|
| 245 | 245 | */ |
| 246 | 246 | public function getNumPosts() |
| 247 | 247 | { |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | /** |
| 260 | 260 | * Get the number of total topics (threads) |
| 261 | 261 | * |
| 262 | - * @return int Returns the number of topics (threads) |
|
| 262 | + * @return string Returns the number of topics (threads) |
|
| 263 | 263 | */ |
| 264 | 264 | public function getNumTopics() |
| 265 | 265 | { |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | /** |
| 278 | 278 | * Get the number of distinct authors |
| 279 | 279 | * |
| 280 | - * @return int Returns the number of distinct authors |
|
| 280 | + * @return string Returns the number of distinct authors |
|
| 281 | 281 | */ |
| 282 | 282 | public function getNumAuthors() |
| 283 | 283 | { |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | |
| 378 | 378 | /** |
| 379 | 379 | * Get a list of Forum Categories |
| 380 | - * @return DataList |
|
| 380 | + * @return boolean |
|
| 381 | 381 | */ |
| 382 | 382 | public function getShowInCategories() |
| 383 | 383 | { |
@@ -542,8 +542,9 @@ discard block |
||
| 542 | 542 | * it (keys: 'last_id', 'last_created') |
| 543 | 543 | * @param int $lastVisit Unix timestamp of the last visit (GMT) |
| 544 | 544 | * @param int $lastPostID ID of the last read post |
| 545 | - * @param int $thread ID of the relevant topic (set to NULL for all |
|
| 545 | + * @param integer $threadID ID of the relevant topic (set to NULL for all |
|
| 546 | 546 | * topics) |
| 547 | + * @param integer $forumID |
|
| 547 | 548 | * @return bool Returns TRUE if there are new posts available, otherwise |
| 548 | 549 | * FALSE. |
| 549 | 550 | */ |
@@ -601,7 +601,7 @@ |
||
| 601 | 601 | /** |
| 602 | 602 | * Return the with the passed ID (via URL parameters) or the current user |
| 603 | 603 | * |
| 604 | - * @return null|Member Returns the member object or NULL if the member |
|
| 604 | + * @return DataObject|null Returns the member object or NULL if the member |
|
| 605 | 605 | * was not found |
| 606 | 606 | */ |
| 607 | 607 | function Member() |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | /** |
| 391 | 391 | * Get the number of total topics (threads) in this Forum |
| 392 | 392 | * |
| 393 | - * @return int Returns the number of topics (threads) |
|
| 393 | + * @return string Returns the number of topics (threads) |
|
| 394 | 394 | */ |
| 395 | 395 | public function getNumTopics() |
| 396 | 396 | { |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | /** |
| 407 | 407 | * Get the number of total posts |
| 408 | 408 | * |
| 409 | - * @return int Returns the number of posts |
|
| 409 | + * @return string Returns the number of posts |
|
| 410 | 410 | */ |
| 411 | 411 | public function getNumPosts() |
| 412 | 412 | { |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | /** |
| 424 | 424 | * Get the number of distinct Authors |
| 425 | 425 | * |
| 426 | - * @return int |
|
| 426 | + * @return string |
|
| 427 | 427 | */ |
| 428 | 428 | public function getNumAuthors() |
| 429 | 429 | { |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | |
| 439 | 439 | /** |
| 440 | 440 | * Returns the Topics (the first Post of each Thread) for this Forum |
| 441 | - * @return DataList |
|
| 441 | + * @return PaginatedList|null |
|
| 442 | 442 | */ |
| 443 | 443 | public function getTopics() |
| 444 | 444 | { |
@@ -793,7 +793,7 @@ discard block |
||
| 793 | 793 | /** |
| 794 | 794 | * Get posts to display. This method assumes an URL parameter "ID" which contains the thread ID. |
| 795 | 795 | * @param string sortDirection The sort order direction, either ASC for ascending (default) or DESC for descending |
| 796 | - * @return DataObjectSet Posts |
|
| 796 | + * @return PaginatedList Posts |
|
| 797 | 797 | */ |
| 798 | 798 | public function Posts($sortDirection = "ASC") |
| 799 | 799 | { |
@@ -847,7 +847,7 @@ discard block |
||
| 847 | 847 | /** |
| 848 | 848 | * Get the usable BB codes |
| 849 | 849 | * |
| 850 | - * @return DataObjectSet Returns the usable BB codes |
|
| 850 | + * @return ArrayList Returns the usable BB codes |
|
| 851 | 851 | * @see BBCodeParser::usable_tags() |
| 852 | 852 | */ |
| 853 | 853 | public function BBTags() |
@@ -1147,6 +1147,8 @@ discard block |
||
| 1147 | 1147 | |
| 1148 | 1148 | /** |
| 1149 | 1149 | * Send email to moderators notifying them the thread has been created or post added/edited. |
| 1150 | + * @param DataObject $post |
|
| 1151 | + * @param DataObject $thread |
|
| 1150 | 1152 | */ |
| 1151 | 1153 | public function notifyModerators($post, $thread, $starting_thread = false) |
| 1152 | 1154 | { |
@@ -1488,6 +1490,9 @@ discard block |
||
| 1488 | 1490 | */ |
| 1489 | 1491 | class Forum_DataQuery extends DataQuery |
| 1490 | 1492 | { |
| 1493 | + /** |
|
| 1494 | + * @param string $dataClass |
|
| 1495 | + */ |
|
| 1491 | 1496 | public function __construct($dataClass, $query) |
| 1492 | 1497 | { |
| 1493 | 1498 | parent::__construct($dataClass); |