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