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

Method getSharedReceiver

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

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

Callers 1

sendToUsersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected