eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/ExceptionConversion.php 1 location
|
@@ 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. |
eZ/Publish/Core/Persistence/Legacy/User/Gateway/ExceptionConversion.php 1 location
|
@@ 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. |
eZ/Publish/Core/Persistence/Legacy/Content/Gateway/ExceptionConversion.php 1 location
|
@@ 310-319 (lines=10) @@
|
| 307 |
|
* |
| 308 |
|
* @return array |
| 309 |
|
*/ |
| 310 |
|
public function loadContentInfoByLocationId($locationId) |
| 311 |
|
{ |
| 312 |
|
try { |
| 313 |
|
return $this->innerGateway->loadContentInfoByLocationId($locationId); |
| 314 |
|
} catch (DBALException $e) { |
| 315 |
|
throw new \RuntimeException('Database error', 0, $e); |
| 316 |
|
} catch (\PDOException $e) { |
| 317 |
|
throw new \RuntimeException('Database error', 0, $e); |
| 318 |
|
} |
| 319 |
|
} |
| 320 |
|
|
| 321 |
|
/** |
| 322 |
|
* Loads info for content identified by $contentId. |