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

Set matches sorting mode
public setSortMode ( integer $mode, string $sortby = '' ) : SphinxClient
$mode integer
$sortby string
Результат SphinxClient
Пример #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testSetSortModeWithNonRelevanceSortWithoutExpressionShouldThrowException()
 {
     $sphinx = new SphinxClient();
     $sphinx->setSortMode(SphinxClient::SPH_SORT_EXPR);
 }
 /**
  * {@inheritdoc}
  */
 public function setSortMode($mode, $sortby = '')
 {
     return $this->proxy->setSortMode($mode, $sortby);
 }