$this->session->filter_mailings = $filters;
//assign pagination variables to the template and add pagination links
- $mailhist->filters->setSmartyPagination($this->router, $this->view);
+ $mailhist->filters->setViewPagination($this->router, $this->view);
$history_list = $mailhist->getHistory();
//assign pagination variables to the template and add pagination links
- $mailhist->filters->setSmartyPagination($this->router, $this->view);
+ $mailhist->filters->setViewPagination($this->router, $this->view);
// display page
$this->view->render(
$this->session->$varname = $filters;
//assign pagination variables to the template and add pagination links
- $filters->setSmartyPagination($this->router, $this->view, false);
+ $filters->setViewPagination($this->router, $this->view, false);
// display page
$this->view->render(
$groups_list = $groups->getList();
//assign pagination variables to the template and add pagination links
- $filters->setSmartyPagination($this->router, $this->view, false);
+ $filters->setViewPagination($this->router, $this->view, false);
$filters->setViewCommonsFilters($this->preferences, $this->view);
$this->session->filter_members = $filters;
}
//assign pagination variables to the template and add pagination links
- $filters->setSmartyPagination($this->router, $this->view, false);
+ $filters->setViewPagination($this->router, $this->view, false);
$this->session->ajax_members_filters = $filters;
$list = $searches->getList(true);
//assign pagination variables to the template and add pagination links
- $filters->setSmartyPagination($this->router, $this->view, false);
+ $filters->setViewPagination($this->router, $this->view, false);
$this->session->filter_savedsearch = $filters;
$logs = $this->history->getHistory();
//assign pagination variables to the template and add pagination links
- $this->history->filters->setSmartyPagination($this->router, $this->view);
+ $this->history->filters->setViewPagination($this->router, $this->view);
// display page
$this->view->render(
*
* PHP version 5
*
- * Copyright © 2010-2020 The Galette Team
+ * Copyright © 2010-2022 The Galette Team
*
* This file is part of Galette (http://galette.tuxfamily.org).
*
* @package Galette
*
* @author Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2010-2020 The Galette Team
+ * @copyright 2010-2022 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link http://galette.tuxfamily.org
* @since Available since 0.7dev - 2010-03-03
* @package Galette
*
* @author Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2010-2014 The Galette Team
+ * @copyright 2010-2022 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link http://galette.tuxfamily.org
*
{
$actual = $this->ordered;
if ($actual == self::ORDER_ASC) {
- $this->ordered = self::ORDER_DESC;
+ $this->ordered = self::ORDER_DESC;
}
if ($actual == self::ORDER_DESC) {
- $this->ordered = self::ORDER_ASC;
+ $this->ordered = self::ORDER_ASC;
}
}
}
}
+ /**
+ * Creates pagination links and assign some useful variables to the template
+ *
+ * @param Router $router Application instance
+ * @param mixed $view View instance
+ * @param boolean $restricted Do not permit to display all
+ *
+ * @return void
+ *
+ * @deprecated 1.0.0 use setViewPagination
+ */
+ public function setSmartyPagination(Router $router, $view, $restricted = true)
+ {
+ return $this->setViewPagination($router, $view, $restricted);
+ }
+
/**
* Creates pagination links and assign some useful variables to the template
*
*
* @return void
*/
- public function setSmartyPagination(Router $router, $view, $restricted = true)
+ public function setViewPagination(Router $router, $view, $restricted = true)
{
$paginate = null;
$this->view = $view;