public function getNotificationState() { $st = $this->getKey("notification_state"); // Default state is 1/enabled if ($st === false) { $st = 1; } return $st; }