| @@ 116-125 (lines=10) @@ | ||
| 113 | * |
|
| 114 | * @return array |
|
| 115 | */ |
|
| 116 | public function loadByEmail($email) |
|
| 117 | { |
|
| 118 | try { |
|
| 119 | return $this->innerGateway->loadByEmail($email); |
|
| 120 | } catch (\DBALException $e) { |
|
| 121 | throw new \RuntimeException('Database error', 0, $e); |
|
| 122 | } catch (\PDOException $e) { |
|
| 123 | throw new \RuntimeException('Database error', 0, $e); |
|
| 124 | } |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|
| 128 | * Update the user information specified by the user struct. |
|
| @@ 322-331 (lines=10) @@ | ||
| 319 | } |
|
| 320 | } |
|
| 321 | ||
| 322 | public function loadContentInfoList(array $contentIds) |
|
| 323 | { |
|
| 324 | try { |
|
| 325 | return $this->innerGateway->loadContentInfoList($contentIds); |
|
| 326 | } catch (DBALException $e) { |
|
| 327 | throw new RuntimeException('Database error', 0, $e); |
|
| 328 | } catch (PDOException $e) { |
|
| 329 | throw new RuntimeException('Database error', 0, $e); |
|
| 330 | } |
|
| 331 | } |
|
| 332 | ||
| 333 | /** |
|
| 334 | * Loads version info for content identified by $contentId and $versionNo. |
|
| @@ 462-471 (lines=10) @@ | ||
| 459 | * |
|
| 460 | * @return int[][] |
|
| 461 | */ |
|
| 462 | public function getFieldIdsByType($contentId, $versionNo = null, $languageCode = null) |
|
| 463 | { |
|
| 464 | try { |
|
| 465 | return $this->innerGateway->getFieldIdsByType($contentId, $versionNo, $languageCode); |
|
| 466 | } catch (DBALException $e) { |
|
| 467 | throw new RuntimeException('Database error', 0, $e); |
|
| 468 | } catch (PDOException $e) { |
|
| 469 | throw new RuntimeException('Database error', 0, $e); |
|
| 470 | } |
|
| 471 | } |
|
| 472 | ||
| 473 | /** |
|
| 474 | * Deletes relations to and from $contentId. |
|
| @@ 753-762 (lines=10) @@ | ||
| 750 | * @param int $contentId |
|
| 751 | * @param string $languageCode language code of the translation |
|
| 752 | */ |
|
| 753 | public function removeTranslationFromContent($contentId, $languageCode) |
|
| 754 | { |
|
| 755 | try { |
|
| 756 | return $this->innerGateway->removeTranslationFromContent($contentId, $languageCode); |
|
| 757 | } catch (DBALException $e) { |
|
| 758 | throw new RuntimeException('Database error', 0, $e); |
|
| 759 | } catch (PDOException $e) { |
|
| 760 | throw new RuntimeException('Database error', 0, $e); |
|
| 761 | } |
|
| 762 | } |
|
| 763 | ||
| 764 | /** |
|
| 765 | * Delete Content fields (attributes) for the given Translation. |
|
| @@ 772-781 (lines=10) @@ | ||
| 769 | * @param int $contentId |
|
| 770 | * @param int $versionNo (optional) filter by versionNo |
|
| 771 | */ |
|
| 772 | public function deleteTranslatedFields($languageCode, $contentId, $versionNo = null) |
|
| 773 | { |
|
| 774 | try { |
|
| 775 | return $this->innerGateway->deleteTranslatedFields($languageCode, $contentId, $versionNo); |
|
| 776 | } catch (DBALException $e) { |
|
| 777 | throw new RuntimeException('Database error', 0, $e); |
|
| 778 | } catch (PDOException $e) { |
|
| 779 | throw new RuntimeException('Database error', 0, $e); |
|
| 780 | } |
|
| 781 | } |
|
| 782 | ||
| 783 | /** |
|
| 784 | * Delete the specified Translation from the given Version. |
|
| @@ 790-799 (lines=10) @@ | ||
| 787 | * @param int $versionNo |
|
| 788 | * @param string $languageCode |
|
| 789 | */ |
|
| 790 | public function deleteTranslationFromVersion($contentId, $versionNo, $languageCode) |
|
| 791 | { |
|
| 792 | try { |
|
| 793 | return $this->innerGateway->deleteTranslationFromVersion($contentId, $versionNo, $languageCode); |
|
| 794 | } catch (DBALException $e) { |
|
| 795 | throw new RuntimeException('Database error', 0, $e); |
|
| 796 | } catch (PDOException $e) { |
|
| 797 | throw new RuntimeException('Database error', 0, $e); |
|
| 798 | } |
|
| 799 | } |
|
| 800 | } |
|
| 801 | ||
| @@ 131-140 (lines=10) @@ | ||
| 128 | } |
|
| 129 | } |
|
| 130 | ||
| 131 | public function loadGroupData(array $groupIds) |
|
| 132 | { |
|
| 133 | try { |
|
| 134 | return $this->innerGateway->loadGroupData($groupIds); |
|
| 135 | } catch (DBALException $e) { |
|
| 136 | throw new RuntimeException('Database error', 0, $e); |
|
| 137 | } catch (PDOException $e) { |
|
| 138 | throw new RuntimeException('Database error', 0, $e); |
|
| 139 | } |
|
| 140 | } |
|
| 141 | ||
| 142 | /** |
|
| 143 | * Returns an array with data about the Group with $identifier. |
|
| @@ 248-257 (lines=10) @@ | ||
| 245 | * @param string $action |
|
| 246 | * @param mixed|null $id |
|
| 247 | */ |
|
| 248 | public function remove($action, $id = null) |
|
| 249 | { |
|
| 250 | try { |
|
| 251 | $this->innerGateway->remove($action, $id); |
|
| 252 | } catch (DBALException $e) { |
|
| 253 | throw new \RuntimeException('Database error', 0, $e); |
|
| 254 | } catch (PDOException $e) { |
|
| 255 | throw new \RuntimeException('Database error', 0, $e); |
|
| 256 | } |
|
| 257 | } |
|
| 258 | ||
| 259 | /** |
|
| 260 | * Loads paged list of global aliases. |
|
| @@ 408-417 (lines=10) @@ | ||
| 405 | /** |
|
| 406 | * {@inheritdoc} |
|
| 407 | */ |
|
| 408 | public function bulkRemoveTranslation($languageId, $actions) |
|
| 409 | { |
|
| 410 | try { |
|
| 411 | return $this->innerGateway->bulkRemoveTranslation($languageId, $actions); |
|
| 412 | } catch (DBALException $e) { |
|
| 413 | throw new \RuntimeException('Database error', 0, $e); |
|
| 414 | } catch (PDOException $e) { |
|
| 415 | throw new \RuntimeException('Database error', 0, $e); |
|
| 416 | } |
|
| 417 | } |
|
| 418 | ||
| 419 | /** |
|
| 420 | * {@inheritdoc} |
|