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

Method setFavorite

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

298 * @return bool
299 */
300 public function setFavorite(int $panoramaId, string $favorite) {
301 if ($favorite === 'true') {
302 $return = $this->addFavoriteTag('analyticsPanorama', $panoramaId);
303 } else {
304 $return = $this->removeFavoriteTag('analyticsPanorama', $panoramaId);
305 }
306 return $return;
307 }
308
309 private function addFavoriteTag(string $scope, int $objectId): bool {
310 try {

Callers 1

deleteByUserMethod · 0.95

Calls 2

addFavoriteTagMethod · 0.95
removeFavoriteTagMethod · 0.95

Tested by

no test coverage detected