| @@ 93-102 (lines=10) @@ | ||
| 90 | * @param mixed $parentId |
|
| 91 | * @param string $textMD5 |
|
| 92 | */ |
|
| 93 | public function cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5) |
|
| 94 | { |
|
| 95 | try { |
|
| 96 | $this->innerGateway->cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5); |
|
| 97 | } catch (DBALException $e) { |
|
| 98 | throw new \RuntimeException('Database error', 0, $e); |
|
| 99 | } catch (PDOException $e) { |
|
| 100 | throw new \RuntimeException('Database error', 0, $e); |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | public function cleanupAfterSwap($action, $languageId, $newId, $languageMask) |
|
| 105 | { |
|
| @@ 104-113 (lines=10) @@ | ||
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | public function cleanupAfterSwap($action, $languageId, $newId, $languageMask) |
|
| 105 | { |
|
| 106 | try { |
|
| 107 | $this->innerGateway->cleanupAfterSwap($action, $languageId, $newId, $languageMask); |
|
| 108 | } catch (DBALException $e) { |
|
| 109 | throw new \RuntimeException('Database error', 0, $e); |
|
| 110 | } catch (PDOException $e) { |
|
| 111 | throw new \RuntimeException('Database error', 0, $e); |
|
| 112 | } |
|
| 113 | } |
|
| 114 | ||
| 115 | /** |
|
| 116 | * Marks all entries with given $id as history entries. |
|
| @@ 164-173 (lines=10) @@ | ||
| 161 | * @param string $textMD5 |
|
| 162 | * @param array $values associative array with column names as keys and column values as values |
|
| 163 | */ |
|
| 164 | public function updateRow($parentId, $textMD5, array $values) |
|
| 165 | { |
|
| 166 | try { |
|
| 167 | $this->innerGateway->updateRow($parentId, $textMD5, $values); |
|
| 168 | } catch (DBALException $e) { |
|
| 169 | throw new \RuntimeException('Database error', 0, $e); |
|
| 170 | } catch (PDOException $e) { |
|
| 171 | throw new \RuntimeException('Database error', 0, $e); |
|
| 172 | } |
|
| 173 | } |
|
| 174 | ||
| 175 | /** |
|
| 176 | * Inserts new row in urlalias_ml table. |
|