public function getMemberNotifications($memberID, $config, $dbConnection = null) { $memberNotifications = null; try { $memberNotifications = new MemberNotifications(); $rawBandMemberNotifications = BandMemberNotificationDao::selectBandMemberNotifications($memberID, $dbConnection); $memberNotifications->setVariable(MemberNotifications::BAND_MEMBER_NOTIFICATIONS, NotificationController::processBandMemberNotifications($rawBandMemberNotifications, $config)); } catch (Exception $ex) { echo "addBandMember error: " . $ex->getMessage(); $memberNotifications = null; } return $memberNotifications; }