app); return $user->getPrefs('notification_' . $class); } protected function shouldSendNotificationFor($usr_id) { return 0 !== (int) $this->get_prefs(get_class($this), $usr_id); } }