* Get the name of the report or panorama * * @param $table * @param $item_source * @return string * @throws Exception */
($table, $item_source)
| 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 | } |