Lines Matching defs:start
17 protected $start = 0;
34 $this->start = $INPUT->int('start');
56 $this->start = 0;
70 $users = $this->applyPagination($users, $this->start, $this->pagesize);
75 $form->setHiddenField('start', $this->start);
88 $form = $this->addTablePagination($form, $usercount, $this->start, $this->pagesize);
178 * @param int $start
182 protected function addTablePagination(Form $form, $usercount, $start, $pagesize)
188 // start
189 $btn = $form->addButton('start', $this->getLang('start'))->val('0');
190 if ($start <= 0) $btn->attr('disabled', 'disabled');
193 $btn = $form->addButton('start', $this->getLang('prev'))->val($start - $pagesize);
194 if ($start - $pagesize < 0) $btn->attr('disabled', 'disabled');
197 $btn = $form->addButton('start', $this->getLang('next'))->val($start + $pagesize);
198 if ($start + $pagesize >= $usercount) $btn->attr('disabled', 'disabled');
201 $btn = $form->addButton('start', $this->getLang('last'))->val($usercount - $pagesize);
203 if ($usercount - $pagesize == $start) $btn->attr('disabled', 'disabled');
260 * @param int $start
264 protected function applyPagination($users, $start, $pagesize)
266 return array_slice($users, $start, $pagesize, true);