Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Vendor\Feregistration\Controller;
- /***************************************************************
- *
- * Copyright notice
- *
- * (c) 2016
- *
- * All rights reserved
- *
- * This script is part of the TYPO3 project. The TYPO3 project is
- * free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * The GNU General Public License can be found at
- * http://www.gnu.org/copyleft/gpl.html.
- *
- * This script is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * This copyright notice MUST APPEAR in all copies of the script!
- ***************************************************************/
- /**
- * CustomFEUController
- */
- class CustomFEUController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
- {
- /**
- * action new
- *
- * @return void
- */
- public function newAction()
- {
- }
- /**
- * action create
- *
- * @param \Vendor\Feregistration\Domain\Model\CustomFEU $newCustomFEU
- * @return void
- */
- public function createAction(\Vendor\Feregistration\Domain\Model\CustomFEU $newCustomFEU)
- {
- // $this->addFlashMessage('The object was created.', '', \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR);
- $this->customFEURepository->add($newCustomFEU);
- $this->redirect('new');
- }
- /**
- * action edit
- *
- * @param \Vendor\Feregistration\Domain\Model\CustomFEU $customFEU
- * @ignorevalidation $customFEU
- * @return void
- */
- public function editAction(\Vendor\Feregistration\Domain\Model\CustomFEU $customFEU)
- {
- $this->view->assign('customFEU', $customFEU);
- }
- /**
- * action update
- *
- * @param \Vendor\Feregistration\Domain\Model\CustomFEU $customFEU
- * @return void
- */
- public function updateAction(\Vendor\Feregistration\Domain\Model\CustomFEU $customFEU)
- {
- $this->addFlashMessage('The object was updated. Please be aware that this action is publicly accessible unless you implement an access check. See http://wiki.typo3.org/T3Doc/Extension_Builder/Using_the_Extension_Builder#1._Model_the_domain', '', \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR);
- $this->customFEURepository->update($customFEU);
- $this->redirect('list');
- }
- /**
- * action delete
- *
- * @param \Vendor\Feregistration\Domain\Model\CustomFEU $customFEU
- * @return void
- */
- public function deleteAction(\Vendor\Feregistration\Domain\Model\CustomFEU $customFEU)
- {
- $this->addFlashMessage('The object was deleted. Please be aware that this action is publicly accessible unless you implement an access check. See http://wiki.typo3.org/T3Doc/Extension_Builder/Using_the_Extension_Builder#1._Model_the_domain', '', \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR);
- $this->customFEURepository->remove($customFEU);
- $this->redirect('list');
- }
- /**
- * action verify
- *
- * @return void
- */
- public function verifyAction()
- {
- }
- /**
- * action success
- *
- * @return void
- */
- public function successAction()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment