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

Method fetchAllByUser

lib/UserMigration/AnalyticsMigrator.php:122–133  ·  view source on GitHub ↗

* @return list > * @throws Exception */

(string $table, string $uid)

Source from the content-addressed store, hash-verified

120 * @throws Exception
121 */
122 private function fetchAllByUser(string $table, string $uid): array {
123 $sql = $this->db->getQueryBuilder();
124 $sql->from($table)
125 ->select('*')
126 ->where($sql->expr()->eq('user_id', $sql->createNamedParameter($uid)));
127
128 $statement = $sql->executeQuery();
129 $result = $statement->fetchAll();
130 $statement->closeCursor();
131
132 return is_array($result) ? $result : [];
133 }
134
135 /**
136 * @param list<int> $ids

Callers 1

exportMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected