eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/ExceptionConversion.php 1 location
|
@@ 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. |
eZ/Publish/Core/Persistence/Legacy/User/Gateway/ExceptionConversion.php 1 location
|
@@ 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. |
eZ/Publish/Core/Persistence/Legacy/Content/Gateway/ExceptionConversion.php 1 location
|
@@ 373-382 (lines=10) @@
|
| 370 |
|
* |
| 371 |
|
* @return string[][] |
| 372 |
|
*/ |
| 373 |
|
public function listVersions($contentId) |
| 374 |
|
{ |
| 375 |
|
try { |
| 376 |
|
return $this->innerGateway->listVersions($contentId); |
| 377 |
|
} catch (DBALException $e) { |
| 378 |
|
throw new RuntimeException('Database error', 0, $e); |
| 379 |
|
} catch (PDOException $e) { |
| 380 |
|
throw new RuntimeException('Database error', 0, $e); |
| 381 |
|
} |
| 382 |
|
} |
| 383 |
|
|
| 384 |
|
/** |
| 385 |
|
* Returns all version numbers for the given $contentId. |