|
@@ 174-176 (lines=3) @@
|
| 171 |
|
*/ |
| 172 |
|
public function addOperation($class, $name, array $checks, $operation) { |
| 173 |
|
$checkIds = []; |
| 174 |
|
foreach ($checks as $check) { |
| 175 |
|
$checkIds[] = $this->addCheck($check['class'], $check['operator'], $check['value']); |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
$query = $this->connection->getQueryBuilder(); |
| 179 |
|
$query->insert('flow_operations') |
|
@@ 202-204 (lines=3) @@
|
| 199 |
|
*/ |
| 200 |
|
public function updateOperation($id, $name, array $checks, $operation) { |
| 201 |
|
$checkIds = []; |
| 202 |
|
foreach ($checks as $check) { |
| 203 |
|
$checkIds[] = $this->addCheck($check['class'], $check['operator'], $check['value']); |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
$query = $this->connection->getQueryBuilder(); |
| 207 |
|
$query->update('flow_operations') |