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

Method getSharedReceiver

lib/Db/ShareMapper.php:200–212  ·  view source on GitHub ↗

* Get the all receivers of shares of a report * Used to derive who has to receive activities when a report changes * @param $reportId * @return array * @throws Exception */

($item_type, $item_source)

Source from the content-addressed store, hash-verified

198 * @throws Exception
199 */
200 public function getSharedReceiver($item_type, $item_source)
201 {
202 $sql = $this->db->getQueryBuilder();
203 $sql->from(self::TABLE_NAME)
204 ->select('uid_owner')
205 ->where($sql->expr()->eq('item_type', $sql->createNamedParameter($item_type)))
206 ->andWhere($sql->expr()->eq('item_source', $sql->createNamedParameter($item_source)))
207 ->andWhere($sql->expr()->eq('type', $sql->createNamedParameter(0)));
208 $statement = $sql->executeQuery();
209 $result = $statement->fetchAll();
210 $statement->closeCursor();
211 return $result;
212 }
213
214 /**
215 * Update the password of a share

Callers 1

sendToUsersMethod · 0.80

Calls 1

eqMethod · 0.80

Tested by

no test coverage detected