Guest User

Classes/Controller/CustomFEUController.php

a guest
Aug 10th, 2016
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.55 KB | None | 0 0
  1. <?php
  2. namespace Vendor\Feregistration\Controller;
  3.  
  4. /***************************************************************
  5.  *
  6.  *  Copyright notice
  7.  *
  8.  *  (c) 2016
  9.  *
  10.  *  All rights reserved
  11.  *
  12.  *  This script is part of the TYPO3 project. The TYPO3 project is
  13.  *  free software; you can redistribute it and/or modify
  14.  *  it under the terms of the GNU General Public License as published by
  15.  *  the Free Software Foundation; either version 3 of the License, or
  16.  *  (at your option) any later version.
  17.  *
  18.  *  The GNU General Public License can be found at
  19.  *  http://www.gnu.org/copyleft/gpl.html.
  20.  *
  21.  *  This script is distributed in the hope that it will be useful,
  22.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  23.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24.  *  GNU General Public License for more details.
  25.  *
  26.  *  This copyright notice MUST APPEAR in all copies of the script!
  27.  ***************************************************************/
  28.  
  29. /**
  30.  * CustomFEUController
  31.  */
  32. class CustomFEUController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
  33. {
  34.  
  35.     /**
  36.      * action new
  37.      *
  38.      * @return void
  39.      */
  40.     public function newAction()
  41.     {
  42.        
  43.     }
  44.    
  45.     /**
  46.      * action create
  47.      *
  48.      * @param \Vendor\Feregistration\Domain\Model\CustomFEU $newCustomFEU
  49.      * @return void
  50.      */
  51.     public function createAction(\Vendor\Feregistration\Domain\Model\CustomFEU $newCustomFEU)
  52.     {
  53.         // $this->addFlashMessage('The object was created.', '', \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR);
  54.         $this->customFEURepository->add($newCustomFEU);
  55.         $this->redirect('new');
  56.     }
  57.    
  58.     /**
  59.      * action edit
  60.      *
  61.      * @param \Vendor\Feregistration\Domain\Model\CustomFEU $customFEU
  62.      * @ignorevalidation $customFEU
  63.      * @return void
  64.      */
  65.     public function editAction(\Vendor\Feregistration\Domain\Model\CustomFEU $customFEU)
  66.     {
  67.         $this->view->assign('customFEU', $customFEU);
  68.     }
  69.    
  70.     /**
  71.      * action update
  72.      *
  73.      * @param \Vendor\Feregistration\Domain\Model\CustomFEU $customFEU
  74.      * @return void
  75.      */
  76.     public function updateAction(\Vendor\Feregistration\Domain\Model\CustomFEU $customFEU)
  77.     {
  78.         $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);
  79.         $this->customFEURepository->update($customFEU);
  80.         $this->redirect('list');
  81.     }
  82.    
  83.     /**
  84.      * action delete
  85.      *
  86.      * @param \Vendor\Feregistration\Domain\Model\CustomFEU $customFEU
  87.      * @return void
  88.      */
  89.     public function deleteAction(\Vendor\Feregistration\Domain\Model\CustomFEU $customFEU)
  90.     {
  91.         $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);
  92.         $this->customFEURepository->remove($customFEU);
  93.         $this->redirect('list');
  94.     }
  95.    
  96.     /**
  97.      * action verify
  98.      *
  99.      * @return void
  100.      */
  101.     public function verifyAction()
  102.     {
  103.        
  104.     }
  105.    
  106.     /**
  107.      * action success
  108.      *
  109.      * @return void
  110.      */
  111.     public function successAction()
  112.     {
  113.        
  114.     }
  115.  
  116. }
Advertisement
Add Comment
Please, Sign In to add comment