@@ 969-983 (lines=15) @@ | ||
966 | * |
|
967 | * @return SphinxQL |
|
968 | */ |
|
969 | public function where($column, $operator, $value = null) |
|
970 | { |
|
971 | if ($value === null) { |
|
972 | $value = $operator; |
|
973 | $operator = '='; |
|
974 | } |
|
975 | ||
976 | $this->where[] = array( |
|
977 | 'column' => $column, |
|
978 | 'operator' => $operator, |
|
979 | 'value' => $value |
|
980 | ); |
|
981 | ||
982 | return $this; |
|
983 | } |
|
984 | ||
985 | /** |
|
986 | * GROUP BY clause |
|
@@ 1043-1057 (lines=15) @@ | ||
1040 | * |
|
1041 | * @return SphinxQL The current object |
|
1042 | */ |
|
1043 | public function having($column, $operator, $value = null) |
|
1044 | { |
|
1045 | if ($value === null) { |
|
1046 | $value = $operator; |
|
1047 | $operator = '='; |
|
1048 | } |
|
1049 | ||
1050 | $this->having = array( |
|
1051 | 'column' => $column, |
|
1052 | 'operator' => $operator, |
|
1053 | 'value' => $value |
|
1054 | ); |
|
1055 | ||
1056 | return $this; |
|
1057 | } |
|
1058 | ||
1059 | /** |
|
1060 | * ORDER BY clause |