MCPcopy Create free account
hub / github.com/Rello/analytics / read

Method read

lib/Db/DatasetMapper.php:175–183  ·  view source on GitHub ↗

* get single dataset * @param int $id * @return array|bool * @throws Exception */

(int $id)

Source from the content-addressed store, hash-verified

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

Callers 1

getLastUpdateMethod · 0.95

Calls 2

eqMethod · 0.80
fetchMethod · 0.80

Tested by

no test coverage detected