Lines Matching defs:first
17 protected $first;
23 * @param int $first skip the first n changelog lines
26 public function __construct($first = 0, $show_changes = 'both')
28 $this->first = $first;
48 // get recent items, and set correct pagination parameters (first, hasNext)
49 $first = $this->first;
51 $recents = $this->getRecents($first, $hasNext);
104 $form->addHTML($this->htmlNavigation($first, $hasNext));
110 * Get recent items, and set correct pagination parameters (first, hasNext)
112 * @param int $first
118 protected function getRecents(&$first, &$hasNext)
135 $recents = getRecents($first, $conf['recent'] + 1, getNS($ID), $flags);
136 if (count($recents) == 0 && $first != 0) {
137 $first = 0;
138 $recents = getRecents($first, $conf['recent'] + 1, getNS($ID), $flags);
177 * @param int $first
181 protected function htmlNavigation($first, $hasNext)
185 $last = $first + $conf['recent'];
187 if ($first > 0) {
188 $first = max($first - $conf['recent'], 0);
190 $html .= '<button type="submit" name="first[' . $first . ']" accesskey="n"'
198 $html .= '<button type="submit" name="first[' . $last . ']" accesskey="p"'