public function hideRelatedNotifications() { if ($this->isMain()) { $wn = new WallNotifications(); $uniqueId = $this->getId(); $wn->remNotificationsForUniqueID(null, $this->cityId, $uniqueId, true); } }