Guest User

TYPO3 eID use with Extbase and Fluid

a guest
Jul 1st, 2011
1,170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.34 KB | None | 0 0
  1. <?php
  2. /***************************************************************
  3. *  Copyright notice
  4. *
  5. *  (c) 2011 Alex Kellner <[email protected]>, in2code.de
  6. *
  7. *  All rights reserved
  8. *
  9. *  This script is part of the TYPO3 project. The TYPO3 project is
  10. *  free software; you can redistribute it and/or modify
  11. *  it under the terms of the GNU General Public License as published by
  12. *  the Free Software Foundation; either version 3 of the License, or
  13. *  (at your option) any later version.
  14. *
  15. *  The GNU General Public License can be found at
  16. *  http://www.gnu.org/copyleft/gpl.html.
  17. *
  18. *  This script is distributed in the hope that it will be useful,
  19. *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21. *  GNU General Public License for more details.
  22. *
  23. *  This copyright notice MUST APPEAR in all copies of the script!
  24. ***************************************************************/
  25.  
  26. /**
  27.  * This class could called with AJAX via eID and should show some branches
  28.  *
  29.  * @author  Alex Kellner <[email protected]>, in2code.
  30.  * @package TYPO3
  31.  * @subpackage  tx_in2evaluation_eid_deleteForm
  32.  */
  33. class tx_in2trainee_eid_branchfilter {
  34.  
  35.     /**
  36.      * configuration
  37.      *
  38.      * @var array
  39.      */
  40.     protected $configuration;
  41.  
  42.     /**
  43.      * bootstrap
  44.      *
  45.      * @var array
  46.      */
  47.     protected $bootstrap;
  48.  
  49.     /**
  50.      * Generates the output
  51.      *
  52.      * @return string       from action
  53.      */
  54.     public function main() {
  55.         return $this->bootstrap->run('', $this->configuration);
  56.     }
  57.  
  58.     /**
  59.      * Initialize Extbase
  60.      *
  61.      * @return void
  62.      */
  63.     public function __construct() {
  64.         $this->configuration = array(
  65.             'pluginName' => 'Pi1',
  66.             'extensionName' => 'In2trainee',
  67.             'controller' => 'Trainee',
  68.             'action' => 'eidBranchFilter',
  69.             'mvc' => array(
  70.                 'requestHandlers' => array(
  71.                     'Tx_Extbase_MVC_Web_FrontendRequestHandler' => 'Tx_Extbase_MVC_Web_FrontendRequestHandler'
  72.                 )
  73.             ),
  74.             'settings' => array()
  75.         );
  76.         $_POST['tx_in2trainee_pi1']['action'] = 'eidBranchFilter'; // set action
  77.  
  78.         $this->bootstrap = new Tx_Extbase_Core_Bootstrap();
  79.         //$this->bootstrap->cObj = t3lib_div::makeInstance('tslib_cObj'); // example for cObj instance
  80.     }
  81. }
  82.  
  83. $eid = t3lib_div::makeInstance('tx_in2trainee_eid_branchfilter'); // make instance
  84. echo $eid->main(); // print content
  85. ?>
Advertisement
Add Comment
Please, Sign In to add comment