ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.arLimit.php
Go to the documentation of this file.
1<?php
2require_once(dirname(__FILE__) . '/../Statement/class.arStatement.php');
3
11class 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}
Class ActiveRecord.
An exception for terminatinating execution or to throw for unit testing.
Class arLimit.
setEnd($end)
setStart($start)
asSQLStatement(ActiveRecord $ar)
Class arStatement.