/** * Default constructor * * @param Mailing $mailing Mailing */ public function __construct($mailing = null) { parent::__construct(); if ($mailing instanceof Mailing) { $this->_mailing = $mailing; } else { if ($mailing !== null) { Analog::log('[' . __METHOD__ . '] Mailing should be either null or an instance of Mailing', Analog::ERROR); } } }
* @link http://galette.tuxfamily.org */ use Galette\Core\History; require_once 'includes/galette.inc.php'; if (!$login->isLogged()) { header('location: index.php'); die; } if (!$login->isAdmin() && !$login->isStaff()) { header('location: voir_adherent.php'); die; } if (isset($_GET['reset']) && $_GET['reset'] == 1) { $hist->clean(); //reinitialize object after flush $hist = new History(); } if (isset($_GET['page']) && is_numeric($_GET['page'])) { $hist->current_page = (int) $_GET['page']; } if (isset($_GET['nbshow']) && is_numeric($_GET['nbshow'])) { $hist->show = $_GET['nbshow']; } if (isset($_GET['tri'])) { $hist->tri = $_GET['tri']; } $logs = array(); $logs = $hist->getHistory(); $session['history'] = serialize($hist); //assign pagination variables to the template and add pagination links $hist->setSmartyPagination($tpl);