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

Method getSourceName

lib/ShareReview/ShareReviewSource.php:135–142  ·  view source on GitHub ↗

* Get the name of the report or panorama * * @param $table * @param $item_source * @return string * @throws Exception */

($table, $item_source)

Source from the content-addressed store, hash-verified

133 * @throws Exception
134 */
135 private function getSourceName($table, $item_source): string {
136 $sql = $this->db->getQueryBuilder();
137 $sql->from($table)->select('name')->Where($sql->expr()->eq('id', $sql->createNamedParameter($item_source)));
138 $statement = $sql->executeQuery();
139 $result = $statement->fetch();
140 $statement->closeCursor();
141 return $result['name'];
142 }
143}

Callers 1

getSharesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected