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