| @@ 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} |
|
| @@ 108-120 (lines=13) @@ | ||
| 105 | /** |
|
| 106 | * {@inheritdoc} |
|
| 107 | */ |
|
| 108 | public function getBasicNodeDataByRemoteId($remoteId, array $translations = null, bool $useAlwaysAvailable = true) |
|
| 109 | { |
|
| 110 | $q = $this->createNodeQueryBuilder($translations, $useAlwaysAvailable); |
|
| 111 | $q->where( |
|
| 112 | $q->expr()->eq('t.remote_id', $q->createNamedParameter($remoteId, PDO::PARAM_STR)) |
|
| 113 | ); |
|
| 114 | ||
| 115 | if ($row = $q->execute()->fetch(FetchMode::ASSOCIATIVE)) { |
|
| 116 | return $row; |
|
| 117 | } |
|
| 118 | ||
| 119 | throw new NotFound('location', $remoteId); |
|
| 120 | } |
|
| 121 | ||
| 122 | /** |
|
| 123 | * Loads data for all Locations for $contentId, optionally only in the |
|