Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE][WIP] füge JavaScript hinzu, füge Frontend Funktionalität hinzu
- Loading branch information
1 parent
0821ceb
commit b0d05c9
Showing
91 changed files
with
2,206 additions
and
1,909 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
namespace In2code\In2studyfinder\Controller; | ||
|
||
/*************************************************************** | ||
* | ||
* Copyright notice | ||
* | ||
* (c) 2016 Sebastian Stein <sebastian.stein@in2code.de>, In2code GmbH | ||
* | ||
* 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! | ||
***************************************************************/ | ||
|
||
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; | ||
|
||
/** | ||
* StudyCourseController | ||
*/ | ||
class AbstractController extends ActionController | ||
{ | ||
|
||
/** | ||
* studyCourseRepository | ||
* | ||
* @var \In2code\In2studyfinder\Domain\Repository\StudyCourseRepository | ||
* @inject | ||
*/ | ||
protected $studyCourseRepository = null; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?php | ||
namespace In2code\In2studyfinder\Controller; | ||
|
||
/*************************************************************** | ||
* | ||
* Copyright notice | ||
* | ||
* (c) 2016 Sebastian Stein <sebastian.stein@in2code.de>, In2code GmbH | ||
* | ||
* 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! | ||
***************************************************************/ | ||
|
||
/** | ||
* StudyCourseController | ||
*/ | ||
class BackendModuleController extends AbstractController | ||
{ | ||
/** | ||
* @var \In2code\In2studyfinder\Service\GenerateDummyRecordService | ||
* @inject | ||
*/ | ||
protected $generateDummyRecordService; | ||
|
||
/** | ||
* List View Backend | ||
* | ||
* @return void | ||
*/ | ||
public function listAction() | ||
{ | ||
$studyCourses = $this->studyCourseRepository->findAll(); | ||
|
||
$this->view->assign('studyCourses', $studyCourses); | ||
$this->view->assign('in2studyfinderExtend', true); | ||
} | ||
|
||
/** | ||
* Generates Dummy Data | ||
* | ||
* @param array $settings | ||
*/ | ||
public function generateDummyDataAction($settings) { | ||
$this->generateDummyRecordService->generateDummySettings(); | ||
|
||
} | ||
|
||
/** | ||
* Check if admin is logged in | ||
* If not, forward to tools overview | ||
* | ||
* @return bool | ||
*/ | ||
protected function checkAdminPermissions() | ||
{ | ||
$status = false; | ||
if ($GLOBALS['BE_USER']->user['admin']) { | ||
$status = true; | ||
} | ||
return $status; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.