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