| @@ 118-127 (lines=10) @@ | ||
| 115 | * |
|
| 116 | * @return array |
|
| 117 | */ |
|
| 118 | public function loadByEmail($email) |
|
| 119 | { |
|
| 120 | try { |
|
| 121 | return $this->innerGateway->loadByEmail($email); |
|
| 122 | } catch (\DBALException $e) { |
|
| 123 | throw new \RuntimeException('Database error', 0, $e); |
|
| 124 | } catch (\PDOException $e) { |
|
| 125 | throw new \RuntimeException('Database error', 0, $e); |
|
| 126 | } |
|
| 127 | } |
|
| 128 | ||
| 129 | /** |
|
| 130 | * Update the user information specified by the user struct. |
|
| @@ 317-326 (lines=10) @@ | ||
| 314 | * |
|
| 315 | * @return bool |
|
| 316 | */ |
|
| 317 | public function swap($locationId1, $locationId2) |
|
| 318 | { |
|
| 319 | try { |
|
| 320 | return $this->innerGateway->swap($locationId1, $locationId2); |
|
| 321 | } catch (DBALException $e) { |
|
| 322 | throw new RuntimeException('Database error', 0, $e); |
|
| 323 | } catch (PDOException $e) { |
|
| 324 | throw new RuntimeException('Database error', 0, $e); |
|
| 325 | } |
|
| 326 | } |
|
| 327 | ||
| 328 | /** |
|
| 329 | * Creates a new location in given $parentNode. |
|
| @@ 112-121 (lines=10) @@ | ||
| 109 | * |
|
| 110 | * @return bool |
|
| 111 | */ |
|
| 112 | public function swap($locationId1, $locationId2) |
|
| 113 | { |
|
| 114 | try { |
|
| 115 | return $this->innerGateway->swap($locationId1, $locationId2); |
|
| 116 | } catch (DBALException $e) { |
|
| 117 | throw new \RuntimeException('Database error', 0, $e); |
|
| 118 | } catch (PDOException $e) { |
|
| 119 | throw new \RuntimeException('Database error', 0, $e); |
|
| 120 | } |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Marks all entries with given $id as history entries. |
|
| @@ 247-256 (lines=10) @@ | ||
| 244 | * @param string $action |
|
| 245 | * @param mixed|null $id |
|
| 246 | */ |
|
| 247 | public function remove($action, $id = null) |
|
| 248 | { |
|
| 249 | try { |
|
| 250 | $this->innerGateway->remove($action, $id); |
|
| 251 | } catch (DBALException $e) { |
|
| 252 | throw new \RuntimeException('Database error', 0, $e); |
|
| 253 | } catch (PDOException $e) { |
|
| 254 | throw new \RuntimeException('Database error', 0, $e); |
|
| 255 | } |
|
| 256 | } |
|
| 257 | ||
| 258 | /** |
|
| 259 | * Loads paged list of global aliases. |
|