1: <?php
2:
3: namespace PHPixie\Database\Driver\Mongo;
4:
5: abstract class Query extends \PHPixie\Database\Query\Implementation
6: {
7: protected $parser;
8:
9: public function collection($collection)
10: {
11: $this->builder->setCollection($collection);
12:
13: return $this;
14: }
15:
16: public function clearCollection()
17: {
18: $this->builder->clearValue('collection');
19:
20: return $this;
21: }
22:
23: public function getCollection()
24: {
25: return $this->builder->getValue('collection');
26: }
27:
28: public function parse()
29: {
30: return $this->parser->parse($this);
31: }
32:
33: public function execute()
34: {
35: return $this->connection->run($this->parse());
36: }
37:
38: }
39: