code/control/GalleryHub_Controller.php 1 location
|
@@ 5-14 (lines=10) @@
|
2 |
|
class GalleryHub_Controller extends Page_Controller |
3 |
|
{ |
4 |
|
|
5 |
|
public function PaginatedChildren() |
6 |
|
{ |
7 |
|
$list = $this->AllChildren(); |
8 |
|
$limit = $this->ThumbnailsPerPage; |
9 |
|
|
10 |
|
$pages = PaginatedList::create($list, $this->getRequest()); |
11 |
|
$pages->setpageLength($limit); |
12 |
|
|
13 |
|
return $pages; |
14 |
|
} |
15 |
|
} |
16 |
|
|
code/control/GalleryPage_Controller.php 1 location
|
@@ 9-18 (lines=10) @@
|
6 |
|
parent::init(); |
7 |
|
} |
8 |
|
|
9 |
|
public function PaginatedImages() |
10 |
|
{ |
11 |
|
$list = $this->SortedImages(); |
12 |
|
$limit = $this->ThumbnailsPerPage; |
13 |
|
|
14 |
|
$pages = PaginatedList::create($list, $this->getRequest()); |
15 |
|
$pages->setpageLength($limit); |
16 |
|
|
17 |
|
return $pages; |
18 |
|
} |
19 |
|
|
20 |
|
/** |
21 |
|
* Generate an image based on the provided type |