setLimits() public method

Set offset and count into result set, optionally set max-matches and cutoff limits
public setLimits ( integer $offset, integer $limit, integer $max, integer $cutoff ) : SphinxClient
$offset integer
$limit integer
$max integer
$cutoff integer
return SphinxClient
コード例 #1
0
 public function testSetLimits()
 {
     $sphinx = new SphinxClient();
     $sphinx->setLimits(100, 50, 2000, 5000);
     $this->assertSame($sphinx->offset, 100);
     $this->assertSame($sphinx->limit, 50);
     $this->assertSame($sphinx->maxmatches, 2000);
     $this->assertSame($sphinx->cutoff, 5000);
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function setLimits($offset, $limit, $max = 0, $cutoff = 0)
 {
     return $this->proxy->setLimits($offset, $limit, $max, $cutoff);
 }