@@ 234-245 (lines=12) @@ | ||
231 | * |
|
232 | * @return Facet |
|
233 | */ |
|
234 | public function limit($offset, $limit = null) |
|
235 | { |
|
236 | if ($limit === null) { |
|
237 | $this->limit = (int) $offset; |
|
238 | return $this; |
|
239 | } |
|
240 | ||
241 | $this->offset($offset); |
|
242 | $this->limit = (int) $limit; |
|
243 | ||
244 | return $this; |
|
245 | } |
|
246 | ||
247 | /** |
|
248 | * OFFSET clause |
@@ 1084-1095 (lines=12) @@ | ||
1081 | * |
|
1082 | * @return SphinxQL |
|
1083 | */ |
|
1084 | public function limit($offset, $limit = null) |
|
1085 | { |
|
1086 | if ($limit === null) { |
|
1087 | $this->limit = (int) $offset; |
|
1088 | return $this; |
|
1089 | } |
|
1090 | ||
1091 | $this->offset($offset); |
|
1092 | $this->limit = (int) $limit; |
|
1093 | ||
1094 | return $this; |
|
1095 | } |
|
1096 | ||
1097 | /** |
|
1098 | * OFFSET clause |