| @@ 975-979 (lines=5) @@ | ||
| 972 | $hash[] = json_encode($this->expression->toArray()); |
|
| 973 | ||
| 974 | // sorts |
|
| 975 | if (!empty($this->sort)) { |
|
| 976 | $sort = $this->sort; |
|
| 977 | ksort($sort); |
|
| 978 | $hash[] = implode('', array_merge(array_keys($sort), array_values($sort))); |
|
| 979 | } |
|
| 980 | ||
| 981 | // fields |
|
| 982 | if (!empty($this->fields)) { |
|
| @@ 982-986 (lines=5) @@ | ||
| 979 | } |
|
| 980 | ||
| 981 | // fields |
|
| 982 | if (!empty($this->fields)) { |
|
| 983 | $fields = $this->fields; |
|
| 984 | ksort($fields); |
|
| 985 | $hash[] = implode('', array_merge(array_keys($fields), array_values($fields))); |
|
| 986 | } |
|
| 987 | ||
| 988 | // skip and limit |
|
| 989 | $hash[] = $this->skip; |
|