if (is_int($pocet) && $pocet > 1) {
$this->pocet = $pocet;
}
}
/** Zakladny render */
public function render()
{
$this->template->setFile(__DIR__ . '/Last.latte');
$this->template->h3 = 'Posledných ' . $this->pocet . ' prihlásení';
$this->template->last = $this->last->order('prihlasenie_datum DESC')->limit($this->pocet);
$this->template->render();