| @@ 72-84 (lines=13) @@ | ||
| 69 | /** |
|
| 70 | * {@inheritdoc} |
|
| 71 | */ |
|
| 72 | public function getBasicNodeData($nodeId, array $translations = null, bool $useAlwaysAvailable = true) |
|
| 73 | { |
|
| 74 | $q = $this->createNodeQueryBuilder($translations, $useAlwaysAvailable); |
|
| 75 | $q->andWhere( |
|
| 76 | $q->expr()->eq('t.node_id', $q->createNamedParameter($nodeId, PDO::PARAM_INT)) |
|
| 77 | ); |
|
| 78 | ||
| 79 | if ($row = $q->execute()->fetch(FetchMode::ASSOCIATIVE)) { |
|
| 80 | return $row; |
|
| 81 | } |
|
| 82 | ||
| 83 | throw new NotFound('location', $nodeId); |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * {@inheritdoc} |
|
| @@ 105-117 (lines=13) @@ | ||
| 102 | /** |
|
| 103 | * {@inheritdoc} |
|
| 104 | */ |
|
| 105 | public function getBasicNodeDataByRemoteId($remoteId, array $translations = null, bool $useAlwaysAvailable = true) |
|
| 106 | { |
|
| 107 | $q = $this->createNodeQueryBuilder($translations, $useAlwaysAvailable); |
|
| 108 | $q->andWhere( |
|
| 109 | $q->expr()->eq('t.remote_id', $q->createNamedParameter($remoteId, PDO::PARAM_STR)) |
|
| 110 | ); |
|
| 111 | ||
| 112 | if ($row = $q->execute()->fetch(FetchMode::ASSOCIATIVE)) { |
|
| 113 | return $row; |
|
| 114 | } |
|
| 115 | ||
| 116 | throw new NotFound('location', $remoteId); |
|
| 117 | } |
|
| 118 | ||
| 119 | /** |
|
| 120 | * Loads data for all Locations for $contentId in trash, optionally only in the |
|