src/query/BaseQuery.php 1 location
|
@@ 160-166 (lines=7) @@
|
| 157 |
|
return $this->params; |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
public function setParameters( array $params, $replace = false ) { |
| 161 |
|
if( $replace ) |
| 162 |
|
$this->params = $params; |
| 163 |
|
else |
| 164 |
|
$this->params = array_merge($this->params, $params); |
| 165 |
|
return $this; |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
/** |
| 169 |
|
* Generate a SQL string as an array. |
src/query/Update.php 1 location
|
@@ 35-44 (lines=10) @@
|
| 32 |
|
return $this; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
public function set( array $data, $replace = false ) { |
| 36 |
|
|
| 37 |
|
if( $replace ) |
| 38 |
|
$this->set = []; |
| 39 |
|
|
| 40 |
|
$this->set = array_merge($this->set, $data); |
| 41 |
|
|
| 42 |
|
return $this; |
| 43 |
|
|
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
public function execute() { |
| 47 |
|
return $this->db->execute( |