| @@ 83-95 (lines=13) @@ | ||
| 80 | * @param $timerId |
|
| 81 | * @return boolean |
|
| 82 | */ |
|
| 83 | public function deleteServiceTimer($service, $timerId) |
|
| 84 | { |
|
| 85 | $res = false; |
|
| 86 | ||
| 87 | if ($this->$service->deleteTimer($timerId) === true) { |
|
| 88 | if ($timerId === $this->config->get('workflow', 'timer_' . $service . '_id')) { |
|
| 89 | $this->config->update('workflow', 'timer_' . $service . '_id', null); |
|
| 90 | $res = true; |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||
| 94 | return $res; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * @param $timerId |
|
| @@ 83-95 (lines=13) @@ | ||
| 80 | * @param $timerId |
|
| 81 | * @return boolean |
|
| 82 | */ |
|
| 83 | public function deleteServiceTimer($service, $timerId) |
|
| 84 | { |
|
| 85 | $res = false; |
|
| 86 | ||
| 87 | if ($this->$service->deleteTimer($timerId) === true) { |
|
| 88 | if ($timerId === $this->config->get('workflow', 'timer_' . $service . '_id')) { |
|
| 89 | $this->config->update('workflow', 'timer_' . $service . '_id', null); |
|
| 90 | $res = true; |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||
| 94 | return $res; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * @param $timerId |
|