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