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

Method setFavorite

lib/Service/PanoramaService.php:346–353  ·  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

344 * @return bool
345 */
346 public function setFavorite(int $panoramaId, string $favorite) {
347 if ($favorite === 'true') {
348 $return = $this->addFavoriteTag('analyticsPanorama', $panoramaId);
349 } else {
350 $return = $this->removeFavoriteTag('analyticsPanorama', $panoramaId);
351 }
352 return $return;
353 }
354
355 private function addFavoriteTag(string $scope, int $objectId): bool {
356 try {

Callers 1

deleteByUserMethod · 0.95

Calls 2

addFavoriteTagMethod · 0.95
removeFavoriteTagMethod · 0.95

Tested by

no test coverage detected