ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.arLimit.php
Go to the documentation of this file.
1 <?php
2 require_once(dirname(__FILE__) . '/../Statement/class.arStatement.php');
3 
11 class arLimit extends arStatement
12 {
13 
17  protected $start;
21  protected $end;
22 
23 
29  public function asSQLStatement(ActiveRecord $ar)
30  {
31  return ' LIMIT ' . $this->getStart() . ', ' . $this->getEnd();
32  }
33 
34 
38  public function setEnd($end)
39  {
40  $this->end = $end;
41  }
42 
43 
47  public function getEnd()
48  {
49  return $this->end;
50  }
51 
52 
56  public function setStart($start)
57  {
58  $this->start = $start;
59  }
60 
61 
65  public function getStart()
66  {
67  return $this->start;
68  }
69 }
setStart($start)
Class ActiveRecord.
Class arStatement.
setEnd($end)
asSQLStatement(ActiveRecord $ar)
Class arLimit.