protected function getPlenigoSettings()
 {
     // ToDo: make dependency injection work to have our model
     $plenigoSettings = $this->plenigoSettingRepository->findAll();
     $sqlResult = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow('company_i_d, company_private_key, metered, test_mode, buy_button_text, login_button_text, curtain_message, custom_button_text', 'tx_plenigofornews_domain_model_plenigosetting');
     // data not set
     if (empty($sqlResult)) {
         return null;
     }
     $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $settingObject = $objectManager->get('\\Plenigo\\PlenigoForNews\\Domain\\Model\\PlenigoSetting');
     $settingObject->setTestMode($sqlResult['test_mode']);
     $settingObject->setCustomButtonText($sqlResult['custom_button_text']);
     $settingObject->setLoginButtonText($sqlResult['login_button_text']);
     $settingObject->setBuyButtonText($sqlResult['buy_button_text']);
     $settingObject->setCurtainMessage($sqlResult['curtain_message']);
     $settingObject->setCompanyPrivateKey($sqlResult['company_private_key']);
     $settingObject->setCompanyID($sqlResult['company_i_d']);
     $settingObject->setMetered($sqlResult['metered']);
     return $settingObject;
 }
 /**
  * action update
  *
  * @param \Plenigo\PlenigoForNews\Domain\Model\PlenigoSetting $plenigoSetting
  * @return void
  */
 public function updateAction(\Plenigo\PlenigoForNews\Domain\Model\PlenigoSetting $plenigoSetting)
 {
     //		$this->addFlashMessage('The object was updated. Please be aware that this action is publicly accessible unless you implement an access check. See <a href="http://wiki.typo3.org/T3Doc/Extension_Builder/Using_the_Extension_Builder#1._Model_the_domain" target="_blank">Wiki</a>', '', \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR);
     $this->plenigoSettingRepository->update($plenigoSetting);
     $this->redirect('list');
 }