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

Method getSharedReceiver

lib/Db/ShareMapper.php:188–200  ·  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

186 * @throws Exception
187 */
188 public function getSharedReceiver($item_type, $item_source)
189 {
190 $sql = $this->db->getQueryBuilder();
191 $sql->from(self::TABLE_NAME)
192 ->select('uid_owner')
193 ->where($sql->expr()->eq('item_type', $sql->createNamedParameter($item_type)))
194 ->andWhere($sql->expr()->eq('item_source', $sql->createNamedParameter($item_source)))
195 ->andWhere($sql->expr()->eq('type', $sql->createNamedParameter(0)));
196 $statement = $sql->executeQuery();
197 $result = $statement->fetchAll();
198 $statement->closeCursor();
199 return $result;
200 }
201
202 /**
203 * Update the password of a share

Callers 1

sendToUsersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected