| @@ 984-988 (lines=5) @@ | ||
| 981 | $hash[] = json_encode($this->expression->toArray()); |
|
| 982 | ||
| 983 | // sorts |
|
| 984 | if (!empty($this->sort)) { |
|
| 985 | $sort = $this->sort; |
|
| 986 | ksort($sort); |
|
| 987 | $hash[] = implode('', array_merge(array_keys($sort), array_values($sort))); |
|
| 988 | } |
|
| 989 | ||
| 990 | // fields |
|
| 991 | if (!empty($this->fields)) { |
|
| @@ 991-995 (lines=5) @@ | ||
| 988 | } |
|
| 989 | ||
| 990 | // fields |
|
| 991 | if (!empty($this->fields)) { |
|
| 992 | $fields = $this->fields; |
|
| 993 | ksort($fields); |
|
| 994 | $hash[] = implode('', array_merge(array_keys($fields), array_values($fields))); |
|
| 995 | } |
|
| 996 | ||
| 997 | // skip and limit |
|
| 998 | $hash[] = $this->skip; |
|