@@ 262-272 (lines=11) @@ | ||
259 | * |
|
260 | * @return PaginatedList |
|
261 | */ |
|
262 | public function PagedComments() { |
|
263 | $list = $this->Comments(); |
|
264 | ||
265 | // Add pagination |
|
266 | $list = new PaginatedList($list, Controller::curr()->getRequest()); |
|
267 | $list->setPaginationGetVar('commentsstart' . $this->owner->ID); |
|
268 | $list->setPageLength($this->owner->getCommentsOption('comments_per_page')); |
|
269 | ||
270 | $this->owner->extend('updatePagedComments', $list); |
|
271 | return $list; |
|
272 | } |
|
273 | ||
274 | /** |
|
275 | * Check if comments are configured for this page even if they are currently disabled. |
@@ 747-757 (lines=11) @@ | ||
744 | * |
|
745 | * @return PaginatedList |
|
746 | */ |
|
747 | public function PagedReplies() { |
|
748 | $list = $this->Replies(); |
|
749 | ||
750 | // Add pagination |
|
751 | $list = new PaginatedList($list, Controller::curr()->getRequest()); |
|
752 | $list->setPaginationGetVar('repliesstart'.$this->ID); |
|
753 | $list->setPageLength($this->getOption('comments_per_page')); |
|
754 | ||
755 | $this->extend('updatePagedReplies', $list); |
|
756 | return $list; |
|
757 | } |
|
758 | ||
759 | /** |
|
760 | * Generate a reply form for this comment |