Sphinx\SphinxClient::setArrayResult PHP Метод

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

PHP specific; needed for group-by-MVA result sets that may contain duplicate IDs
public setArrayResult ( boolean $arrayresult ) : SphinxClient
$arrayresult boolean whether to return results as array keyed by ID
Результат SphinxClient
    public function setArrayResult($arrayresult)
    {
        $this->arrayresult = (bool) $arrayresult;
        return $this;
    }

Usage Example

Пример #1
0
 public function testSetArrayResult()
 {
     $sphinx = new SphinxClient();
     $sphinx->setArrayResult(true);
     $this->assertTrue($sphinx->arrayresult);
 }
All Usage Examples Of Sphinx\SphinxClient::setArrayResult