| @@ 1068-1072 (lines=5) @@ | ||
| 1065 | $hash[] = json_encode($this->expression->toArray()); |
|
| 1066 | ||
| 1067 | // sorts |
|
| 1068 | if (!empty($this->sort)) { |
|
| 1069 | $sort = $this->sort; |
|
| 1070 | ksort($sort); |
|
| 1071 | $hash[] = implode('', array_merge(array_keys($sort), array_values($sort))); |
|
| 1072 | } |
|
| 1073 | ||
| 1074 | // fields |
|
| 1075 | if (!empty($this->fields)) { |
|
| @@ 1075-1079 (lines=5) @@ | ||
| 1072 | } |
|
| 1073 | ||
| 1074 | // fields |
|
| 1075 | if (!empty($this->fields)) { |
|
| 1076 | $fields = $this->fields; |
|
| 1077 | ksort($fields); |
|
| 1078 | $hash[] = implode('', array_merge(array_keys($fields), array_values($fields))); |
|
| 1079 | } |
|
| 1080 | ||
| 1081 | // skip and limit |
|
| 1082 | $hash[] = $this->skip; |
|