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

Method index

lib/Db/PanoramaMapper.php:42–55  ·  view source on GitHub ↗

* get reports * @return array * @throws Exception */

()

Source from the content-addressed store, hash-verified

40 * @throws Exception
41 */
42 public function index()
43 {
44 $sql = $this->db->getQueryBuilder();
45 $sql->from(self::TABLE_NAME)
46 ->select('*')
47 ->where($sql->expr()->eq('user_id', $sql->createNamedParameter($this->userId)))
48 ->orderBy('parent', 'ASC')
49 ->addOrderBy('name', 'ASC');
50 $statement = $sql->executeQuery();
51 $result = $statement->fetchAll();
52 $statement->closeCursor();
53
54 return $result;
55 }
56
57 /**
58 * get reports for user

Callers

nothing calls this directly

Calls 1

eqMethod · 0.80

Tested by

no test coverage detected