| @@ 75-87 (lines=13) @@ | ||
| 72 | /** |
|
| 73 | * {@inheritdoc} |
|
| 74 | */ |
|
| 75 | public function getBasicNodeData($nodeId, array $translations = null, bool $useAlwaysAvailable = true) |
|
| 76 | { |
|
| 77 | $q = $this->createNodeQueryBuilder($translations, $useAlwaysAvailable); |
|
| 78 | $q->where( |
|
| 79 | $q->expr()->eq('t.node_id', $q->createNamedParameter($nodeId, PDO::PARAM_INT)) |
|
| 80 | ); |
|
| 81 | ||
| 82 | if ($row = $q->execute()->fetch(FetchMode::ASSOCIATIVE)) { |
|
| 83 | return $row; |
|
| 84 | } |
|
| 85 | ||
| 86 | throw new NotFound('location', $nodeId); |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * {@inheritdoc} |
|
| @@ 92-104 (lines=13) @@ | ||
| 89 | /** |
|
| 90 | * {@inheritdoc} |
|
| 91 | */ |
|
| 92 | public function getBasicNodeDataByRemoteId($remoteId, array $translations = null, bool $useAlwaysAvailable = true) |
|
| 93 | { |
|
| 94 | $q = $this->createNodeQueryBuilder($translations, $useAlwaysAvailable); |
|
| 95 | $q->where( |
|
| 96 | $q->expr()->eq('t.remote_id', $q->createNamedParameter($remoteId, PDO::PARAM_STR)) |
|
| 97 | ); |
|
| 98 | ||
| 99 | if ($row = $q->execute()->fetch(FetchMode::ASSOCIATIVE)) { |
|
| 100 | return $row; |
|
| 101 | } |
|
| 102 | ||
| 103 | throw new NotFound('location', $remoteId); |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * Loads data for all Locations for $contentId, optionally only in the |
|