1: <?php
2:
3: namespace PHPixie\Database\Type\SQL\Query;
4:
5: abstract class Implementation extends \PHPixie\Database\Query\Implementation implements \PHPixie\Database\Type\SQL\Query
6: {
7: protected $builder;
8:
9: public function table($table, $alias = null)
10: {
11: $this->builder->setTable($table, $alias);
12:
13: return $this;
14: }
15:
16: public function clearTable()
17: {
18: $this->builder->clearValue('table');
19:
20: return $this;
21: }
22:
23: public function getTable()
24: {
25: return $this->builder->getValue('table');
26: }
27:
28: public function parse()
29: {
30: return $this->parser->parse($this);
31: }
32:
33: public function execute()
34: {
35: $expr = $this->parse();
36: $result = $this->connection->execute($expr->sql, $expr->params);
37:
38: return $result;
39: }
40: }
41: