* get single dataset * @param int $id * @return array|bool * @throws Exception */
(int $id)
| 173 | * @throws Exception |
| 174 | */ |
| 175 | public function read(int $id) { |
| 176 | $sql = $this->db->getQueryBuilder(); |
| 177 | $sql->from(self::TABLE_NAME)->select('*')->where($sql->expr()->eq('id', $sql->createNamedParameter($id))) |
| 178 | ->orderBy('parent', 'ASC')->addOrderBy('name', 'ASC'); |
| 179 | $statement = $sql->executeQuery(); |
| 180 | $result = $statement->fetch(); |
| 181 | $statement->closeCursor(); |
| 182 | return $result; |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * update dataset |
no test coverage detected