@@ 150-152 (lines=3) @@ | ||
147 | $query .= '.drop()'; |
|
148 | } elseif (isset($log['dropDatabase'])) { |
|
149 | $query .= '.dropDatabase()'; |
|
150 | } elseif (isset($log['ensureIndex'])) { |
|
151 | $query .= '.ensureIndex('.$this->bsonEncode($log['keys']).', '.$this->bsonEncode($log['options']).')'; |
|
152 | } elseif (isset($log['execute'])) { |
|
153 | $query .= '.execute()'; |
|
154 | } elseif (isset($log['find'])) { |
|
155 | $query .= '.find('; |
|
@@ 188-191 (lines=4) @@ | ||
185 | $query .= '.save('.$this->bsonEncode($log['document']).')'; |
|
186 | } elseif (isset($log['sort'])) { |
|
187 | $query .= '.sort('.$this->bsonEncode($log['sortFields']).')'; |
|
188 | } elseif (isset($log['update'])) { |
|
189 | // todo: include $log['options'] |
|
190 | $query .= '.update('.$this->bsonEncode($log['query']).', '.$this->bsonEncode($log['newObj']).')'; |
|
191 | } elseif (isset($log['validate'])) { |
|
192 | $query .= '.validate()'; |
|
193 | } |
|
194 | } |