src/module/Albums/Category/Roll/Admin/Controller.php 1 location
|
@@ 9-28 (lines=20) @@
|
6 |
|
use Rudolf\Framework\Controller\AdminController; |
7 |
|
use Rudolf\Modules\Categories\Roll\Admin\Model as CategoriesRoll; |
8 |
|
|
9 |
|
class Controller extends AdminController |
10 |
|
{ |
11 |
|
public function getList($page) |
12 |
|
{ |
13 |
|
$page = $this->firstPageRedirect($page, 301, $location = '../../list'); |
14 |
|
|
15 |
|
$list = new CategoriesRoll(); |
16 |
|
$total = $list->getTotalNumber(['type' => 'albums']); |
17 |
|
|
18 |
|
$pagination = new Pagination($total, $page); |
19 |
|
$limit = $pagination->getLimit(); |
20 |
|
$onPage = $pagination->getOnPage(); |
21 |
|
|
22 |
|
$results = $list->getList($limit, $onPage); |
23 |
|
|
24 |
|
$view = new View(); |
25 |
|
$view->setData($results, $pagination); |
26 |
|
$view->render('admin'); |
27 |
|
} |
28 |
|
} |
29 |
|
|
src/module/Albums/Roll/Admin/Controller.php 1 location
|
@@ 9-28 (lines=20) @@
|
6 |
|
use Rudolf\Framework\Controller\AdminController; |
7 |
|
use Rudolf\Modules\Albums\Roll\Model as ArticlesList; |
8 |
|
|
9 |
|
class Controller extends AdminController |
10 |
|
{ |
11 |
|
public function getList($page) |
12 |
|
{ |
13 |
|
$page = $this->firstPageRedirect($page, 301, $location = '../../list'); |
14 |
|
|
15 |
|
$list = new ArticlesList(); |
16 |
|
$total = $list->getTotalNumber('1=1'); |
17 |
|
|
18 |
|
$pagination = new Pagination($total, $page); |
19 |
|
$limit = $pagination->getLimit(); |
20 |
|
$onPage = $pagination->getOnPage(); |
21 |
|
|
22 |
|
$results = $list->getList($limit, $onPage); |
23 |
|
|
24 |
|
$view = new View(); |
25 |
|
$view->setData($results, $pagination); |
26 |
|
$view->render('admin'); |
27 |
|
} |
28 |
|
} |
29 |
|
|
src/module/Articles/Category/Roll/Admin/Controller.php 1 location
|
@@ 9-28 (lines=20) @@
|
6 |
|
use Rudolf\Framework\Controller\AdminController; |
7 |
|
use Rudolf\Modules\Categories\Roll\Admin\Model as ArticlesList; |
8 |
|
|
9 |
|
class Controller extends AdminController |
10 |
|
{ |
11 |
|
public function getList($page) |
12 |
|
{ |
13 |
|
$page = $this->firstPageRedirect($page, 301, $location = '../../list'); |
14 |
|
|
15 |
|
$list = new ArticlesList(); |
16 |
|
$total = $list->getTotalNumber(['type' => 'articles']); |
17 |
|
|
18 |
|
$pagination = new Pagination($total, $page); |
19 |
|
$limit = $pagination->getLimit(); |
20 |
|
$onPage = $pagination->getOnPage(); |
21 |
|
|
22 |
|
$results = $list->getList($limit, $onPage); |
23 |
|
|
24 |
|
$view = new View(); |
25 |
|
$view->setData($results, $pagination); |
26 |
|
$view->render('admin'); |
27 |
|
} |
28 |
|
} |
29 |
|
|
src/module/Articles/Roll/Admin/Controller.php 1 location
|
@@ 9-28 (lines=20) @@
|
6 |
|
use Rudolf\Framework\Controller\AdminController; |
7 |
|
use Rudolf\Modules\Articles\Roll\Model as ArticlesList; |
8 |
|
|
9 |
|
class Controller extends AdminController |
10 |
|
{ |
11 |
|
public function getList($page) |
12 |
|
{ |
13 |
|
$page = $this->firstPageRedirect($page, 301, $location = '../../list'); |
14 |
|
|
15 |
|
$list = new ArticlesList(); |
16 |
|
$total = $list->getTotalNumber('1'); |
17 |
|
|
18 |
|
$pagination = new Pagination($total, $page, 10); |
19 |
|
$limit = $pagination->getLimit(); |
20 |
|
$onPage = $pagination->getOnPage(); |
21 |
|
|
22 |
|
$results = $list->getList($limit, $onPage); |
23 |
|
|
24 |
|
$view = new View(); |
25 |
|
$view->setData($results, $pagination); |
26 |
|
$view->render('admin'); |
27 |
|
} |
28 |
|
} |
29 |
|
|
src/module/Galleries/Roll/Admin/Controller.php 1 location
|
@@ 9-28 (lines=20) @@
|
6 |
|
use Rudolf\Framework\Controller\AdminController; |
7 |
|
use Rudolf\Modules\Galleries\Roll\Model as GalleriesList; |
8 |
|
|
9 |
|
class Controller extends AdminController |
10 |
|
{ |
11 |
|
public function getList($page) |
12 |
|
{ |
13 |
|
$page = $this->firstPageRedirect($page, 301, $location = '../../list'); |
14 |
|
|
15 |
|
$list = new GalleriesList(); |
16 |
|
$total = $list->getTotalNumber('1=1'); |
17 |
|
|
18 |
|
$pagination = new Pagination($total, $page); |
19 |
|
$limit = $pagination->getLimit(); |
20 |
|
$onPage = $pagination->getOnPage(); |
21 |
|
|
22 |
|
$results = $list->getList($limit, $onPage); |
23 |
|
|
24 |
|
$view = new View(); |
25 |
|
$view->setData($results, $pagination); |
26 |
|
$view->render('admin'); |
27 |
|
} |
28 |
|
} |
29 |
|
|
src/module/Modules/Roll/Admin/Controller.php 1 location
|
@@ 8-27 (lines=20) @@
|
5 |
|
use Rudolf\Component\Helpers\Pagination\Calc as Pagination; |
6 |
|
use Rudolf\Framework\Controller\AdminController; |
7 |
|
|
8 |
|
class Controller extends AdminController |
9 |
|
{ |
10 |
|
public function getList($page) |
11 |
|
{ |
12 |
|
$page = $this->firstPageRedirect($page, 301, $location = '../../list'); |
13 |
|
|
14 |
|
$list = new Model(); |
15 |
|
$total = $list->getTotalNumber(); |
16 |
|
|
17 |
|
$pagination = new Pagination($total, $page, 10); |
18 |
|
$limit = $pagination->getLimit(); |
19 |
|
$onPage = $pagination->getOnPage(); |
20 |
|
|
21 |
|
$results = $list->getList($limit, $onPage); |
22 |
|
|
23 |
|
$view = new View(); |
24 |
|
$view->setData($results, $pagination); |
25 |
|
$view->render('admin'); |
26 |
|
} |
27 |
|
} |
28 |
|
|
src/module/Plugins/Roll/Admin/Controller.php 1 location
|
@@ 8-27 (lines=20) @@
|
5 |
|
use Rudolf\Component\Helpers\Pagination\Calc as Pagination; |
6 |
|
use Rudolf\Framework\Controller\AdminController; |
7 |
|
|
8 |
|
class Controller extends AdminController |
9 |
|
{ |
10 |
|
public function getList($page) |
11 |
|
{ |
12 |
|
$page = $this->firstPageRedirect($page, 301, $location = '../../list'); |
13 |
|
|
14 |
|
$list = new Model(); |
15 |
|
$total = $list->getTotalNumber(); |
16 |
|
|
17 |
|
$pagination = new Pagination($total, $page, 10); |
18 |
|
$limit = $pagination->getLimit(); |
19 |
|
$onPage = $pagination->getOnPage(); |
20 |
|
|
21 |
|
$results = $list->getList($limit, $onPage); |
22 |
|
|
23 |
|
$view = new View(); |
24 |
|
$view->setData($results, $pagination); |
25 |
|
$view->render('admin'); |
26 |
|
} |
27 |
|
} |
28 |
|
|
src/module/Tools/Admin/Roll/Controller.php 1 location
|
@@ 8-27 (lines=20) @@
|
5 |
|
use Rudolf\Component\Helpers\Pagination\Calc as Pagination; |
6 |
|
use Rudolf\Framework\Controller\AdminController; |
7 |
|
|
8 |
|
class Controller extends AdminController |
9 |
|
{ |
10 |
|
public function getList($page) |
11 |
|
{ |
12 |
|
$page = $this->firstPageRedirect($page, 301, $location = '../../list'); |
13 |
|
|
14 |
|
$list = new Model(); |
15 |
|
$total = $list->getTotalNumber(); |
16 |
|
|
17 |
|
$pagination = new Pagination($total, $page, 10); |
18 |
|
$limit = $pagination->getLimit(); |
19 |
|
$onPage = $pagination->getOnPage(); |
20 |
|
|
21 |
|
$results = $list->getList($limit, $onPage); |
22 |
|
|
23 |
|
$view = new View(); |
24 |
|
$view->setData($results, $pagination); |
25 |
|
$view->render('admin'); |
26 |
|
} |
27 |
|
} |
28 |
|
|
src/module/Users/Roll/Admin/Controller.php 1 location
|
@@ 8-27 (lines=20) @@
|
5 |
|
use Rudolf\Component\Helpers\Pagination\Calc as Pagination; |
6 |
|
use Rudolf\Framework\Controller\AdminController; |
7 |
|
|
8 |
|
class Controller extends AdminController |
9 |
|
{ |
10 |
|
public function getList($page) |
11 |
|
{ |
12 |
|
$page = $this->firstPageRedirect($page, 301, $location = '../../list'); |
13 |
|
|
14 |
|
$list = new Model(); |
15 |
|
$total = $list->getTotalNumber('1'); |
16 |
|
|
17 |
|
$pagination = new Pagination($total, $page, 10); |
18 |
|
$limit = $pagination->getLimit(); |
19 |
|
$onPage = $pagination->getOnPage(); |
20 |
|
|
21 |
|
$results = $list->getList($limit, $onPage, ['id', 'asc']); |
22 |
|
|
23 |
|
$view = new View(); |
24 |
|
$view->setData($results, $pagination); |
25 |
|
$view->render('admin'); |
26 |
|
} |
27 |
|
} |
28 |
|
|
src/module/Appearance/Roll/Admin/Controller.php 1 location
|
@@ 9-27 (lines=19) @@
|
6 |
|
use Rudolf\Framework\Controller\AdminController; |
7 |
|
use Rudolf\Modules\Appearance\Roll\Admin\Model as AppearanceList; |
8 |
|
|
9 |
|
class Controller extends AdminController |
10 |
|
{ |
11 |
|
public function getList($page) |
12 |
|
{ |
13 |
|
$page = $this->firstPageRedirect($page, 301, $location = '../../list'); |
14 |
|
|
15 |
|
$list = new AppearanceList(); |
16 |
|
$total = $list->getTotalNumber('1=1'); |
17 |
|
|
18 |
|
$pagination = new Pagination($total, $page); |
19 |
|
$limit = $pagination->getLimit(); |
20 |
|
$onPage = $pagination->getOnPage(); |
21 |
|
|
22 |
|
$results = $list->getList($limit, $onPage); |
23 |
|
$view = new View(); |
24 |
|
$view->setData($results, $pagination); |
25 |
|
$view->render('admin'); |
26 |
|
} |
27 |
|
} |
28 |
|
|