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

Method setFavorite

lib/Service/PanoramaService.php:327–334  ·  view source on GitHub ↗

* set/remove the favorite flag for a report * * @param int $panoramaId * @param string $favorite * @return bool */

(int $panoramaId, string $favorite)

Source from the content-addressed store, hash-verified

325 * @return bool
326 */
327 public function setFavorite(int $panoramaId, string $favorite) {
328 if ($favorite === 'true') {
329 $return = $this->addFavoriteTag('analyticsPanorama', $panoramaId);
330 } else {
331 $return = $this->removeFavoriteTag('analyticsPanorama', $panoramaId);
332 }
333 return $return;
334 }
335
336 private function addFavoriteTag(string $scope, int $objectId): bool {
337 try {

Callers 1

deleteByUserMethod · 0.95

Calls 2

addFavoriteTagMethod · 0.95
removeFavoriteTagMethod · 0.95

Tested by

no test coverage detected