| @@ 152-166 (lines=15) @@ | ||
| 149 | * |
|
| 150 | * @return \BfwSql\SqlInsert |
|
| 151 | */ |
|
| 152 | public function insert( |
|
| 153 | $table, |
|
| 154 | $columns = null, |
|
| 155 | $quoteStatus = \BfwSql\Actions\AbstractActions::QUOTE_ALL |
|
| 156 | ) { |
|
| 157 | $usedClass = \BfwSql\UsedClass::getInstance(); |
|
| 158 | $insertClassName = $usedClass->obtainClassNameToUse('ActionsInsert'); |
|
| 159 | ||
| 160 | return new $insertClassName( |
|
| 161 | $this->sqlConnect, |
|
| 162 | $table, |
|
| 163 | $columns, |
|
| 164 | $quoteStatus |
|
| 165 | ); |
|
| 166 | } |
|
| 167 | ||
| 168 | /** |
|
| 169 | * Return a new instance of SqlUpdate |
|
| @@ 179-193 (lines=15) @@ | ||
| 176 | * |
|
| 177 | * @return \BfwSql\SqlUpdate |
|
| 178 | */ |
|
| 179 | public function update( |
|
| 180 | $table, |
|
| 181 | $columns = null, |
|
| 182 | $quoteStatus = \BfwSql\Actions\AbstractActions::QUOTE_ALL |
|
| 183 | ) { |
|
| 184 | $usedClass = \BfwSql\UsedClass::getInstance(); |
|
| 185 | $updateClassName = $usedClass->obtainClassNameToUse('ActionsUpdate'); |
|
| 186 | ||
| 187 | return new $updateClassName( |
|
| 188 | $this->sqlConnect, |
|
| 189 | $table, |
|
| 190 | $columns, |
|
| 191 | $quoteStatus |
|
| 192 | ); |
|
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * Return a new instance of SqlDelete |
|