ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.arLimit.php
Go to the documentation of this file.
1 <?php
2 
24 class 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...
setEnd(int $end)
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)