@@ 1006-1010 (lines=5) @@ | ||
1003 | $hash[] = json_encode($this->expression->toArray()); |
|
1004 | ||
1005 | // sorts |
|
1006 | if (!empty($this->sort)) { |
|
1007 | $sort = $this->sort; |
|
1008 | ksort($sort); |
|
1009 | $hash[] = implode('', array_merge(array_keys($sort), array_values($sort))); |
|
1010 | } |
|
1011 | ||
1012 | // fields |
|
1013 | if (!empty($this->fields)) { |
|
@@ 1013-1017 (lines=5) @@ | ||
1010 | } |
|
1011 | ||
1012 | // fields |
|
1013 | if (!empty($this->fields)) { |
|
1014 | $fields = $this->fields; |
|
1015 | ksort($fields); |
|
1016 | $hash[] = implode('', array_merge(array_keys($fields), array_values($fields))); |
|
1017 | } |
|
1018 | ||
1019 | // skip and limit |
|
1020 | $hash[] = $this->skip; |