| @@ 228-237 (lines=10) @@ | ||
| 225 | * @param string $action |
|
| 226 | * @param mixed|null $id |
|
| 227 | */ |
|
| 228 | public function remove($action, $id = null) |
|
| 229 | { |
|
| 230 | try { |
|
| 231 | $this->innerGateway->remove($action, $id); |
|
| 232 | } catch (DBALException $e) { |
|
| 233 | throw new \RuntimeException('Database error', 0, $e); |
|
| 234 | } catch (PDOException $e) { |
|
| 235 | throw new \RuntimeException('Database error', 0, $e); |
|
| 236 | } |
|
| 237 | } |
|
| 238 | ||
| 239 | /** |
|
| 240 | * Loads paged list of global aliases. |
|
| @@ 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. |
|
| @@ 721-730 (lines=10) @@ | ||
| 718 | * @param int $copiedContentId |
|
| 719 | * @param int|null $versionNo If specified only copy for a given version number, otherwise all. |
|
| 720 | */ |
|
| 721 | public function copyRelations($originalContentId, $copiedContentId, $versionNo = null) |
|
| 722 | { |
|
| 723 | try { |
|
| 724 | return $this->innerGateway->copyRelations($originalContentId, $copiedContentId, $versionNo); |
|
| 725 | } catch (DBALException $e) { |
|
| 726 | throw new RuntimeException('Database error', 0, $e); |
|
| 727 | } catch (PDOException $e) { |
|
| 728 | throw new RuntimeException('Database error', 0, $e); |
|
| 729 | } |
|
| 730 | } |
|
| 731 | } |
|
| 732 | ||