setGroupDistinct() публичный Метод

Set count-distinct attribute for group-by queries
public setGroupDistinct ( string $attribute ) : SphinxClient
$attribute string attribute name
Результат SphinxClient
Пример #1
0
 public function testResetGroupBy()
 {
     $sphinx = new SphinxClient();
     $sphinx->setGroupBy('attr', SphinxClient::SPH_GROUPBY_ATTR, '@group asc');
     $sphinx->setGroupDistinct('id');
     $sphinx->resetGroupBy();
     $this->assertSame($sphinx->groupby, '');
     $this->assertSame($sphinx->groupfunc, SphinxClient::SPH_GROUPBY_DAY);
     $this->assertSame($sphinx->groupsort, '@group desc');
     $this->assertSame($sphinx->groupdistinct, '');
 }
 /**
  * {@inheritdoc}
  */
 public function setGroupDistinct($attribute)
 {
     return $this->proxy->setGroupDistinct($attribute);
 }