@@ -33,12 +33,12 @@ |
||
| 33 | 33 | // loop through the non-quoted parts (0, 3, 6, 9, etc.) |
| 34 | 34 | for ($i = 0, $k = count($parts); $i <= $k; $i += 3) { |
| 35 | 35 | // get the part as a reference so it can be modified in place |
| 36 | - $part =& $parts[$i]; |
|
| 36 | + $part = & $parts[$i]; |
|
| 37 | 37 | |
| 38 | 38 | // find all :placeholder matches in the part |
| 39 | 39 | preg_match_all( |
| 40 | 40 | "/\W:([a-zA-Z_][a-zA-Z0-9_]*)/m", |
| 41 | - $part . PHP_EOL, |
|
| 41 | + $part.PHP_EOL, |
|
| 42 | 42 | $matches |
| 43 | 43 | ); |
| 44 | 44 | |
@@ -69,6 +69,9 @@ discard block |
||
| 69 | 69 | return $this->conn->getEscaper(); |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $select |
|
| 74 | + */ |
|
| 72 | 75 | public function select($select = null) |
| 73 | 76 | { |
| 74 | 77 | $this->type = self::TYPE_SELECT; |
@@ -100,6 +103,9 @@ discard block |
||
| 100 | 103 | return $this->add('from', array('table' => $index)); |
| 101 | 104 | } |
| 102 | 105 | |
| 106 | + /** |
|
| 107 | + * @param string $index |
|
| 108 | + */ |
|
| 103 | 109 | public function replace($index) |
| 104 | 110 | { |
| 105 | 111 | $this->type = self::TYPE_REPLACE; |
@@ -107,6 +113,9 @@ discard block |
||
| 107 | 113 | return $this->add('from', array('table' => $index)); |
| 108 | 114 | } |
| 109 | 115 | |
| 116 | + /** |
|
| 117 | + * @param string $index |
|
| 118 | + */ |
|
| 110 | 119 | public function delete($index) |
| 111 | 120 | { |
| 112 | 121 | $this->type = self::TYPE_DELETE; |
@@ -129,6 +138,9 @@ discard block |
||
| 129 | 138 | return $this->add('values', $values, true); |
| 130 | 139 | } |
| 131 | 140 | |
| 141 | + /** |
|
| 142 | + * @param string $index |
|
| 143 | + */ |
|
| 132 | 144 | public function from($index) |
| 133 | 145 | { |
| 134 | 146 | return $this->add('from', array('table' => $index)); |
@@ -139,6 +151,9 @@ discard block |
||
| 139 | 151 | return $this->add('from', array('table' => $index), true); |
| 140 | 152 | } |
| 141 | 153 | |
| 154 | + /** |
|
| 155 | + * @param string $where |
|
| 156 | + */ |
|
| 142 | 157 | public function where($where) |
| 143 | 158 | { |
| 144 | 159 | return $this->add('where', $where); |