public function initAction() { // TODO - DO NOT STORE SENSITIVE INFORMATION HARD-CODED IN YOUR CODE! $secret = 'ckumcPIciS0GtJjBNqXACVYKMmTbRQ26C3yVXwlz'; $companyId = 'LBtrEYlX3DNLyLHqnr2S'; //configure plenigo: //\Plenigo\PlenigoForNews\Classes\plenigo_sdk\src\plenigo\PlenigoManager::configure($secret, $companyId); $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($this->premiumContentProductRepository->findAll()); /** @var $plenigoManager \Plenigo\PlenigoForNews\plenigo_sdk\src\plenigo\ */ $plenigoManager = $objectManager->create('Plenigo\\PlenigoForNews\\plenigo_sdk\\src\\plenigo\\PlenigoManager'); }
protected function getPlenigoProductIDs() { $premiumContentProducts = $this->premiumContentProductRepository->findAll(); return $premiumContentProducts; }
/** * action delete * * @param \Plenigo\PlenigoForNews\Domain\Model\PremiumContentProduct $premiumContentProduct * @return void */ public function deleteAction(\Plenigo\PlenigoForNews\Domain\Model\PremiumContentProduct $premiumContentProduct) { $this->addFlashMessage('The object was deleted. 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->premiumContentProductRepository->remove($premiumContentProduct); $this->redirect('list'); }