|
@@ 377-385 (lines=9) @@
|
| 374 |
|
$message = ''; |
| 375 |
|
$atLeastOneServiceStopped = false; |
| 376 |
|
|
| 377 |
|
foreach ($this->activatedServices() as $service) { |
| 378 |
|
$timerId = $this->config->get('workflow', 'timer_' . $service . '_id'); |
| 379 |
|
|
| 380 |
|
if ($this->$service->stopTimer($timerId) === true) { |
| 381 |
|
$atLeastOneServiceStopped = true; |
| 382 |
|
} |
| 383 |
|
|
| 384 |
|
$message .= $this->$service->getLastMessage() . "\r\n"; |
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
if ($atLeastOneServiceStopped === true) { |
| 388 |
|
$this->config->update('workflow', 'is_timer_running', false); |
|
@@ 424-430 (lines=7) @@
|
| 421 |
|
|
| 422 |
|
$atLeastOneTimerDeleted = false; |
| 423 |
|
|
| 424 |
|
foreach ($this->servicesToUndo() as $service) { |
| 425 |
|
if ($this->deleteServiceTimer($service, $this->config->get('workflow', 'timer_' . $service . '_id')) === true) { |
| 426 |
|
$atLeastOneTimerDeleted = true; |
| 427 |
|
} |
| 428 |
|
|
| 429 |
|
$message .= $this->$service->getLastMessage() . "\r\n"; |
| 430 |
|
} |
| 431 |
|
|
| 432 |
|
if ($atLeastOneTimerDeleted === true) { |
| 433 |
|
$this->config->update('workflow', 'is_timer_running', false); |