Lines Matching refs:first

16     protected $first;
22 * @param int $first skip the first n changelog lines
25 public function __construct($first = 0, $media_id = false)
27 $this->first = $first;
62 // get revisions, and set correct pagenation parameters (first, hasNext)
63 $first = $this->first;
65 $revisions = $this->getRevisions($first, $hasNext);
120 print $this->htmlNavigation($id, $first, $hasNext);
132 // get revisions, and set correct pagenation parameters (first, hasNext)
133 $first = $this->first;
135 $revisions = $this->getRevisions($first, $hasNext);
186 print $this->htmlNavigation($id, $first, $hasNext);
191 * Get revisions, and set correct pagenation parameters (first, hasNext)
193 * @param int $first
198 protected function getRevisions(&$first, &$hasNext)
214 $revlist = $changelog->getRevisions($first, $conf['recent'] +1);
215 if (count($revlist) == 0 && $first != 0) {
216 $first = 0;
217 $revlist = $changelog->getRevisions($first, $conf['recent'] +1);
220 if ($first === 0 && $exists) {
283 * @param int $first
287 protected function htmlNavigation($id, $first, $hasNext)
292 $last = $first + $conf['recent'];
293 if ($first > 0) {
294 $first = max($first - $conf['recent'], 0);
297 $html.= html_btn('newer', $id, "p", media_managerURL(['first' => $first], '&', false, true));
299 $html.= html_btn('newer', $id, "p" ,['do' => 'revisions', 'first' => $first]);
306 $html.= html_btn('older', $id, "n", media_managerURL(['first' => $last], '&', false, true));
308 $html.= html_btn('older', $id, "n", ['do' => 'revisions', 'first' => $last]);