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

Method getOwner

lib/Db/ReportMapper.php:379–386  ·  view source on GitHub ↗

* get the report owner * @param $reportId * @return int * @throws Exception */

($reportId)

Source from the content-addressed store, hash-verified

377 * @throws Exception
378 */
379 public function getOwner($reportId)
380 {
381 $sql = $this->db->getQueryBuilder();
382 $sql->from(self::TABLE_NAME)
383 ->select('user_id')
384 ->where($sql->expr()->eq('id', $sql->createNamedParameter($reportId)));
385 return (string)$sql->executeQuery()->fetchOne();
386 }
387
388 /**
389 * get reports by group

Callers 1

replaceTextVariablesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected