| @@ 77-87 (lines=11) @@ | ||
| 74 | ||
| 75 | $result = $index->find([$operator => $condition], ['limit' => $limit, 'offset' => $offset]); |
|
| 76 | ||
| 77 | if (!empty($result) && is_array($result)) |
|
| 78 | { |
|
| 79 | foreach ($result as $key => $arr) |
|
| 80 | { |
|
| 81 | $result[$key] = array_combine($fields, $arr); |
|
| 82 | } |
|
| 83 | ||
| 84 | return $result; |
|
| 85 | } |
|
| 86 | else |
|
| 87 | return FALSE; |
|
| 88 | } |
|
| 89 | ||
| 90 | public function delete($table, $index, Array $condition, $operator) |
|
| @@ 73-83 (lines=11) @@ | ||
| 70 | ||
| 71 | $result = $hs->readResponse(); |
|
| 72 | ||
| 73 | if (!empty($result)) |
|
| 74 | { |
|
| 75 | foreach ($result as $key => $arr) |
|
| 76 | { |
|
| 77 | $result[$key] = array_combine($fields, $arr); |
|
| 78 | } |
|
| 79 | ||
| 80 | return $result; |
|
| 81 | } |
|
| 82 | else |
|
| 83 | return FALSE; |
|
| 84 | } |
|
| 85 | ||
| 86 | public function delete($table, $index, Array $condition, $operator) |
|