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

Method getOwner

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

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

($reportId)

Source from the content-addressed store, hash-verified

384 * @throws Exception
385 */
386 public function getOwner($reportId)
387 {
388 $sql = $this->db->getQueryBuilder();
389 $sql->from(self::TABLE_NAME)
390 ->select('user_id')
391 ->where($sql->expr()->eq('id', $sql->createNamedParameter($reportId)));
392 return (string)$sql->executeQuery()->fetchOne();
393 }
394
395 /**
396 * get reports by group

Callers 1

replaceTextVariablesMethod · 0.45

Calls 1

eqMethod · 0.80

Tested by

no test coverage detected