1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Khansia\Db\Sql;
class Store implements \Zend\Db\Sql\SqlInterface {
protected $_into = null;
protected $_primary = null;
protected $_auto = true;
protected $_values = array();
public function into($into) {
$this->_into = $into;
return $this;
}
public function primary($primary, $auto = true) {
$this->_primary = $primary;
$this->_auto = $auto;
return $this;
}
public function values($values = array()) {
$this->_values = $values;
return $this;
}
public function getSqlString(\Zend\Db\Adapter\Platform\PlatformInterface $adapterPlatform = null) {
$data = new \stdClass();
$data->into = $this->_into;
$data->primary = $this->_primary;
$data->auto = $this->_auto;
$data->values = $this->_values;
return $data;
}
}