* Delete a share by its id * * @param $shareId * @return bool * @throws Exception */
($shareId)
| 100 | * @throws Exception |
| 101 | */ |
| 102 | public function deleteShare($shareId): bool { |
| 103 | $this->logger->info('Deleting Analytics share: ' . $shareId); |
| 104 | $sql = $this->db->getQueryBuilder(); |
| 105 | $sql->delete(self::TABLE_NAME)->where($sql->expr()->eq('id', $sql->createNamedParameter($shareId))); |
| 106 | $sql->executeStatement(); |
| 107 | return true; |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Get all Analytics shares |