public static function display()
 {
     $oUserModel = new UserCoreModel();
     $iProfileId = (int) (new Session())->get('member_id');
     if (isset($_POST['submit_notification'])) {
         if (\PFBC\Form::isValid($_POST['submit_notification'])) {
             new NotificationFormProcess($iProfileId, $oUserModel);
         }
         Framework\Url\Header::redirect();
     }
     $oNotification = $oUserModel->getNotification($iProfileId);
     $oForm = new \PFBC\Form('form_notification', 650);
     $oForm->configure(array('action' => ''));
     $oForm->addElement(new \PFBC\Element\Hidden('submit_notification', 'form_notification'));
     $oForm->addElement(new \PFBC\Element\Token('notification'));
     $oForm->addElement(new \PFBC\Element\Select(t('Newsletters'), 'enable_newsletters', array('1' => t('Enable'), '0' => t('Disable')), array('description' => t('By enabling this option, you would be likely to receive occasional news on our website and our services and offers, promotions and other benefits to our partners.'), 'value' => $oNotification->enableNewsletters, 'required' => 1)));
     $oForm->addElement(new \PFBC\Element\Select(t('Message'), 'new_msg', array('1' => t('Yes'), '0' => t('No')), array('value' => $oNotification->newMsg, 'required' => 1)));
     $oForm->addElement(new \PFBC\Element\Select(t('Friend requests'), 'friend_request', array('1' => t('Yes'), '0' => t('No')), array('value' => $oNotification->friendRequest, 'required' => 1)));
     $oForm->addElement(new \PFBC\Element\Button());
     $oForm->render();
 }