@@ 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. |
@@ 732-742 (lines=11) @@ | ||
729 | * |
|
730 | * @return PaginatedList |
|
731 | */ |
|
732 | public function PagedReplies() { |
|
733 | $list = $this->Replies(); |
|
734 | ||
735 | // Add pagination |
|
736 | $list = new PaginatedList($list, Controller::curr()->getRequest()); |
|
737 | $list->setPaginationGetVar('repliesstart'.$this->ID); |
|
738 | $list->setPageLength($this->getOption('comments_per_page')); |
|
739 | ||
740 | $this->extend('updatePagedReplies', $list); |
|
741 | return $list; |
|
742 | } |
|
743 | ||
744 | /** |
|
745 | * Generate a reply form for this comment |