* get the report owner * @param $reportId * @return int * @throws Exception */
($reportId)
| 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 |
no test coverage detected