ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.arLimit.php
Go to the documentation of this file.
1<?php
2
24class arLimit extends arStatement
25{
26 protected int $start = 0;
27 protected int $end = 0;
28
29 public function asSQLStatement(ActiveRecord $activeRecord, ilDBInterface $db): string
30 {
31 return ' LIMIT ' . $this->getStart() . ', ' . $this->getEnd();
32 }
33
34 public function setEnd(int $end): void
35 {
36 $this->end = $end;
37 }
38
39 public function getEnd(): int
40 {
41 return $this->end;
42 }
43
44 public function setStart(int $start): void
45 {
46 $this->start = $start;
47 }
48
49 public function getStart(): int
50 {
51 return $this->start;
52 }
53}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
asSQLStatement(ActiveRecord $activeRecord, ilDBInterface $db)
setStart(int $start)
setEnd(int $end)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilDBInterface.