diff --git a/html/typo3conf/ext/ter_fe2/Classes/Controller/CategoryController.php b/html/typo3conf/ext/ter_fe2/Classes/Controller/CategoryController.php deleted file mode 100755 index e8c310487fc77c5777c9eec1f43f5a1765e91fad..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Controller/CategoryController.php +++ /dev/null @@ -1,144 +0,0 @@ -, Speedprogs.de - * - * 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 2 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! - ******************************************************************/ - -/** - * Controller for the category object - */ -class Tx_TerFe2_Controller_CategoryController extends Tx_TerFe2_Controller_AbstractController -{ - - /** - * @var Tx_TerFe2_Domain_Repository_CategoryRepository - */ - protected $categoryRepository; - - /** - * @var Tx_TerFe2_Domain_Repository_ExtensionRepository - */ - protected $extensionRepository; - - - /** - * Initializes the controller - * - * @return void - */ - protected function initializeController() - { - $this->categoryRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_CategoryRepository'); - $this->extensionRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_ExtensionRepository'); - } - - - /** - * List action, displays all categories - * - * @return void - */ - public function listAction() - { - $this->view->assign('categories', $this->categoryRepository->findAll()); - } - - - /** - * Action that displays a single category - * - * @param Tx_TerFe2_Domain_Model_Category $category The category to display - * @return void - */ - public function showAction(Tx_TerFe2_Domain_Model_Category $category) - { - $this->view->assign('category', $category); - $categoryExtensions = $this->extensionRepository->findByCategory($category); - $this->view->assign('categoryExtensions', $categoryExtensions); - } - - - /** - * Displays a form for creating a new category - * - * @param Tx_TerFe2_Domain_Model_Category $newCategory New category object - * @return void - * @dontvalidate $newCategory - */ - public function newAction(Tx_TerFe2_Domain_Model_Category $newCategory = NULL) - { - $this->view->assign('newCategory', $newCategory); - } - - - /** - * Creates a new category - * - * @param Tx_TerFe2_Domain_Model_Category $newCategory New category object - * @return void - */ - public function createAction(Tx_TerFe2_Domain_Model_Category $newCategory) - { - $this->categoryRepository->add($newCategory); - $this->redirectWithMessage($this->translate('msg.category_created'), 'list'); - } - - - /** - * Displays a form to edit an existing category - * - * @param Tx_TerFe2_Domain_Model_Category $category The category to display - * @return void - * @dontvalidate $category - */ - public function editAction(Tx_TerFe2_Domain_Model_Category $category) - { - $this->view->assign('category', $category); - } - - - /** - * Updates an existing category - * - * @param Tx_TerFe2_Domain_Model_Category $category Category to update - * @return void - */ - public function updateAction(Tx_TerFe2_Domain_Model_Category $category) - { - $this->categoryRepository->update($category); - $this->redirectWithMessage($this->translate('msg.category_updated'), 'list'); - } - - - /** - * Deletes an existing category - * - * @param Tx_TerFe2_Domain_Model_Category $category The category to delete - * @return void - */ - public function deleteAction(Tx_TerFe2_Domain_Model_Category $category) - { - $this->categoryRepository->remove($category); - $this->redirectWithMessage($this->translate('msg.category_deleted'), 'list'); - } - -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/Controller/ExtensionController.php b/html/typo3conf/ext/ter_fe2/Classes/Controller/ExtensionController.php index c7cbd7646974d66c9d70d486bab6392341f125c1..3ed86c7d98152c81c6d600bba14946b389af0e55 100755 --- a/html/typo3conf/ext/ter_fe2/Classes/Controller/ExtensionController.php +++ b/html/typo3conf/ext/ter_fe2/Classes/Controller/ExtensionController.php @@ -34,11 +34,6 @@ class Tx_TerFe2_Controller_ExtensionController extends Tx_TerFe2_Controller_Abst */ protected $extensionRepository; - /** - * @var Tx_TerFe2_Domain_Repository_CategoryRepository - */ - protected $categoryRepository; - /** * @var Tx_TerFe2_Domain_Repository_TagRepository */ @@ -87,7 +82,6 @@ class Tx_TerFe2_Controller_ExtensionController extends Tx_TerFe2_Controller_Abst protected function initializeController() { $this->extensionRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_ExtensionRepository'); - $this->categoryRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_CategoryRepository'); $this->tagRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_TagRepository'); $this->versionRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_VersionRepository'); $this->authorRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_AuthorRepository'); @@ -133,12 +127,6 @@ class Tx_TerFe2_Controller_ExtensionController extends Tx_TerFe2_Controller_Abst $this->view->assign('extensions', $this->extensionRepository->findAll()); } - // Get all categories - if (!empty($this->settings['show']['categoryOverview'])) { - $categories = $this->categoryRepository->findAll(); - $this->view->assign('categories', $categories); - } - // Get all tags if (!empty($this->settings['show']['tagOverview'])) { $tags = $this->tagRepository->findAll(); @@ -272,8 +260,6 @@ class Tx_TerFe2_Controller_ExtensionController extends Tx_TerFe2_Controller_Abst $url .= '&tags='; // adds hidden tag $url .= '&hidden=0'; - // adds category - $url .= '&category=software'; $this->view->assign('flattrUrl', $url); } @@ -293,7 +279,6 @@ class Tx_TerFe2_Controller_ExtensionController extends Tx_TerFe2_Controller_Abst public function newAction(Tx_TerFe2_Domain_Model_Extension $newExtension = NULL) { $this->view->assign('newExtension', $newExtension); - $this->view->assign('categories', $this->categoryRepository->findAll()); $this->view->assign('tags', $this->tagRepository->findAll()); } diff --git a/html/typo3conf/ext/ter_fe2/Classes/Controller/MediaController.php b/html/typo3conf/ext/ter_fe2/Classes/Controller/MediaController.php deleted file mode 100755 index 82cf818f4b3edd70c5042fa99adfdc2572d1e1f3..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Controller/MediaController.php +++ /dev/null @@ -1,153 +0,0 @@ -, Speedprogs.de - * - * 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 2 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! - ******************************************************************/ - -/** - * Controller for the media object - */ -class Tx_TerFe2_Controller_MediaController extends Tx_TerFe2_Controller_AbstractController -{ - - /** - * @var Tx_TerFe2_Domain_Repository_MediaRepository - */ - protected $mediaRepository; - - - /** - * @var Tx_TerFe2_Domain_Repository_ExtensionRepository - */ - protected $extensionRepository; - - - /** - * Initializes the controller - * - * @return void - */ - protected function initializeController() - { - $this->mediaRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_MediaRepository'); - } - - - /** - * List action, displays all media - * - * @return void - */ - public function listAction() - { - $this->view->assign('media', $this->mediaRepository->findAll()); - } - - - /** - * Action that displays a single media - * - * @param Tx_TerFe2_Domain_Model_Category $media The media to display - * @return void - */ - public function showAction(Tx_TerFe2_Domain_Model_Media $media) - { - $this->view->assign('media', $media); - } - - - /** - * Displays a form for creating a new media - * - * @param Tx_TerFe2_Domain_Model_Extension $extension The extension to add the new media - * @param Tx_TerFe2_Domain_Model_Media $newMedia New media object - * @return void - * @dontvalidate $newMedia - */ - public function newAction(Tx_TerFe2_Domain_Model_Extension $extension, Tx_TerFe2_Domain_Model_Media $newMedia = NULL) - { - $this->view->assign('newMedia', $newMedia); - $this->view->assign('extension', $extension); - } - - - /** - * Creates a new media - * - * @param Tx_TerFe2_Domain_Model_Media $newMedia New media object - * @param Tx_TerFe2_Domain_Model_Extension $extension The extension to add the new media - * @return void - */ - public function createAction(Tx_TerFe2_Domain_Model_Media $newMedia, Tx_TerFe2_Domain_Model_Extension $extension) - { - if ($media = $this->mediaRepository->findByTitle($newMedia->getTitle())->getFirst()) { - $extension->addMedia($media); - } else { - $this->mediaRepository->add($newMedia); - $extension->addMedia($newMedia); - } - $actionParameters = array('extension' => $extension); - $this->redirectWithMessage($this->translate('msg.media_created'), 'show', '', \TYPO3\CMS\Core\Messaging\FlashMessage::OK, 'Extension', NULL, $actionParameters); - } - - - /** - * Displays a form to edit an existing media - * - * @param Tx_TerFe2_Domain_Model_Media $media The media to display - * @return void - * @dontvalidate $media - */ - public function editAction(Tx_TerFe2_Domain_Model_Media $media) - { - $this->view->assign('media', $media); - } - - - /** - * Updates an existing media - * - * @param Tx_TerFe2_Domain_Model_Media $media Media to update - * @return void - */ - public function updateAction(Tx_TerFe2_Domain_Model_Media $media) - { - $this->mediaRepository->update($media); - // TODO: Update extension too - $this->redirectWithMessage($this->translate('msg.media_updated'), 'list'); - } - - - /** - * Deletes an existing media - * - * @param Tx_TerFe2_Domain_Model_Media $media The media to delete - * @return void - */ - public function deleteAction(Tx_TerFe2_Domain_Model_Media $media) - { - $this->mediaRepository->remove($media); - // TODO: Remove from extension too - $this->redirectWithMessage($this->translate('msg.media_deleted'), 'list'); - } - -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/Controller/RegisterkeyController.php b/html/typo3conf/ext/ter_fe2/Classes/Controller/RegisterkeyController.php index a06c9e93adce63864a7b53435e0e84d8da2e54ce..27ff0ac9158ccd06f3434a4f9a0273f8b273e500 100644 --- a/html/typo3conf/ext/ter_fe2/Classes/Controller/RegisterkeyController.php +++ b/html/typo3conf/ext/ter_fe2/Classes/Controller/RegisterkeyController.php @@ -41,11 +41,6 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab */ protected $versionRepository; - /** - * @var Tx_TerFe2_Domain_Repository_CategoryRepository - */ - protected $categoryRepository; - /** * @var Tx_TerFe2_Domain_Repository_UserRepository */ @@ -60,7 +55,6 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab { $this->extensionRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_ExtensionRepository'); $this->versionRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_VersionRepository'); - $this->categoryRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_CategoryRepository'); $this->userRepository = $this->objectManager->get(Tx_TerFe2_Domain_Repository_UserRepository::class); } @@ -73,9 +67,6 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab */ public function indexAction($uploaded = FALSE) { - // get categories for register key -// $categories = $this->categoryRepository->findAll(); -// $this->view->assign('categories', $categories); // get extensions by user if a user is logged in if (!empty($this->frontendUser)) { $extensions = $this->extensionRepository->findByFrontendUser($this->frontendUser['username']); @@ -92,7 +83,7 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab * @param string $extensionKey Extension key * @return void */ - public function createAction($extensionKey/* , $categories */) + public function createAction($extensionKey) { // Remove spaces from extensionKey if there are some @@ -113,16 +104,6 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab $extension->setExtKey($extensionKey); $extension->setFrontendUser($this->frontendUser['username']); - // Add categories -// foreach ($categories as $category) { -// if (isset($category['__identity']) && is_numeric($category['__identity'])) { -// $myCat = $this->categoryRepository->findByUid((int) $category['__identity']); -// if ($myCat != NULL) { -// $extension->addCategory($myCat); -// } -// } -// } - $this->extensionRepository->add($extension); $this->addFlashMessage( '', $this->translate('registerkey.key_registered'), \TYPO3\CMS\Core\Messaging\FlashMessage::OK @@ -287,21 +268,6 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab // check if the extension belongs to the current user if ($this->securityRole->isReviewer() or $extension->getFrontendUser() == $this->userRepository->findCurrent()) { - // Remove categories that are already set - $setCategories = $extension->getCategories(); - - // Get all categories - $categories = $this->categoryRepository->findAll(); - - $categoryArray = array(); - foreach ($categories as $key => $category) { - $categoryArray[] = array( - 'object' => $category, - 'isChecked' => $setCategories->contains($category), - ); - } - - $this->view->assign('categories', $categoryArray); $this->view->assign('extension', $extension); $this->view->assign('loggedIn', $this->userRepository->findCurrent()); } else { @@ -314,10 +280,9 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab * Update an existing extension * * @param Tx_TerFe2_Domain_Model_Extension $extension Extension to modify - * @param mixed $categories Categories to add / remove * @return void */ - public function updateAction(Tx_TerFe2_Domain_Model_Extension $extension, $categories) + public function updateAction(Tx_TerFe2_Domain_Model_Extension $extension) { // check if the extension belongs to the current user @@ -336,7 +301,6 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab if ($this->terConnection->checkExtensionKey($extension->getExtKey(), $error)) { $error = ''; if ($this->terConnection->assignExtensionKey($extension->getExtKey(), $this->frontendUser['username'], $error)) { - // Update categories $this->extensionRepository->update($extension); $this->addFlashMessage($this->translate('registerkey.key_updated', '', \TYPO3\CMS\Core\Messaging\FlashMessage::OK)); $this->redirect('index', 'Registerkey'); @@ -349,12 +313,6 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab $this->resolveWSErrorMessage($error . '.message'), $this->resolveWSErrorMessage($error . '.title'), \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR ); } - } else { - // Update categories - $extension = $this->updateCategories($extension, $categories); - $this->extensionRepository->update($extension); - $this->addFlashMessage($this->translate('registerkey.key_updated', '', \TYPO3\CMS\Core\Messaging\FlashMessage::OK)); - $this->redirect('index', 'Registerkey'); } $this->redirect('edit', 'Registerkey', NULL, array('extension' => $extension)); @@ -364,31 +322,6 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab } } - /** - * Update the categories of an existing extension - * - * @param Tx_TerFe2_Domain_Model_Extension $extension - * @param mixed $categories Categories to update - * @return Tx_TerFe2_Domain_Model_Extension - */ - protected function updateCategories(Tx_TerFe2_Domain_Model_Extension $extension, $categories) - { - - // Remove all categories - $extension->removeAllCategories(); - - // Add selected categories - foreach ($categories as $category) { - if (isset($category['__identity']) && is_numeric($category['__identity'])) { - $myCat = $this->categoryRepository->findByUid((int)$category['__identity']); - if ($myCat != NULL) { - $extension->addCategory($myCat); - } - } - } - - return $extension; - } /** * Transfer an extension key to another user diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Category.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Category.php deleted file mode 100644 index b478c9f89f1b90dc1ef20eb43e6d070ceee2eaf8..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Category.php +++ /dev/null @@ -1,91 +0,0 @@ -, Spooner Web - * - * 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 2 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! - ******************************************************************/ - -/** - * Frontend category of the extension - */ -class Tx_TerFe2_Domain_Model_Category extends Tx_TerFe2_Domain_Model_AbstractValueObject -{ - - /** - * Title of the category - * @var string - * @validate NotEmpty - */ - protected $title; - - /** - * Description of the category - * @var string - */ - protected $description; - - - /** - * Setter for title - * - * @param string $title Title of the category - * @return void - */ - public function setTitle($title) - { - $this->title = $title; - } - - - /** - * Getter for title - * - * @return string Title of the category - */ - public function getTitle() - { - return $this->title; - } - - - /** - * Setter for description - * - * @param string $description Description of the category - * @return void - */ - public function setDescription($description) - { - $this->description = $description; - } - - - /** - * Getter for description - * - * @return string Description of the category - */ - public function getDescription() - { - return $this->description; - } - -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Experience.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Experience.php deleted file mode 100644 index d33eefd94f7dbabdd52fad4343ace6cb51c4f089..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Experience.php +++ /dev/null @@ -1,144 +0,0 @@ -, Spooner Web - * - * 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 2 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! - ******************************************************************/ - -/** - * User experience with an extension - */ -class Tx_TerFe2_Domain_Model_Experience extends Tx_TerFe2_Domain_Model_AbstractValueObject -{ - - /** - * Timestamp of the experience - * @var integer - * @validate NotEmpty - */ - protected $dateTime; - - /** - * Comment - * @var string - */ - protected $comment; - - /** - * User rating - * @var integer - */ - protected $rating; - - /** - * Frontend user - * @var \TYPO3\CMS\Extbase\Domain\Model\FrontendUser - */ - protected $frontendUser; - - /** - * Setter for dateTime - * - * @param integer $dateTime Timestamp of the experience - * @return void - */ - public function setDateTime($dateTime) - { - $this->dateTime = $dateTime; - } - - - /** - * Getter for dateTime - * - * @return integer Timestamp of the experience - */ - public function getDateTime() - { - return $this->dateTime; - } - - - /** - * Setter for comment - * - * @param string $comment Comment - * @return void - */ - public function setComment($comment) - { - $this->comment = $comment; - } - - - /** - * Getter for comment - * - * @return string Comment - */ - public function getComment() - { - return $this->comment; - } - - - /** - * Setter for rating - * - * @param integer $rating User rating - * @return void - */ - public function setRating($rating) - { - $this->rating = $rating; - } - - - /** - * Getter for rating - * - * @return integer User rating - */ - public function getRating() - { - return $this->rating; - } - - /** - * Getter for frontendUser - * - * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage - */ - public function getFrontendUser() - { - return $this->frontendUser; - } - - /** - * Setter for frontendUser - * - * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $frontendUser - */ - public function setFrontendUser($frontendUser) - { - $this->frontendUser = $frontendUser; - } -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Extension.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Extension.php index e1580a65aac26b0212014ee73408ac1a2f392f6d..e0e7c764349f17a21300b44b1b28d76391a6d2a7 100644 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Extension.php +++ b/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Extension.php @@ -49,12 +49,6 @@ class Tx_TerFe2_Domain_Model_Extension extends Tx_TerFe2_Domain_Model_AbstractEn */ protected $lastUpdate; - /** - * Categories - * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage - */ - protected $categories; - /** * Tags * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage @@ -146,7 +140,6 @@ class Tx_TerFe2_Domain_Model_Extension extends Tx_TerFe2_Domain_Model_AbstractEn */ public function __construct() { - $this->categories = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $this->tags = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $this->versions = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); } @@ -263,62 +256,6 @@ class Tx_TerFe2_Domain_Model_Extension extends Tx_TerFe2_Domain_Model_AbstractEn } - /** - * Getter for categories - * - * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage Categories - */ - public function getCategories() - { - return $this->categories; - } - - - /** - * Adds a category - * - * @param Tx_TerFe2_Domain_Model_Category $category The category to be added - * @return void - */ - public function addCategory(Tx_TerFe2_Domain_Model_Category $category) - { - $this->categories->attach($category); - } - - - /** - * Removes a category - * - * @param Tx_TerFe2_Domain_Model_Category $category The category to be removed - * @return void - */ - public function removeCategory(Tx_TerFe2_Domain_Model_Category $category) - { - $this->categories->detach($category); - } - - /** - * Removes all categories - * - * @return void - */ - public function removeAllCategories() - { - - /** - * @see The removeAll function is not removing all objects so I added this feature like - * seen on: http://www.php.net/manual/en/splobjectstorage.detach.php - */ - - $this->categories->rewind(); - while ($this->categories->valid()) { - $tempObject = $this->categories->current(); - $this->categories->next(); - $this->categories->detach($tempObject); - } - } - - /** * Getter for tags * diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Media.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Media.php deleted file mode 100644 index 016a2f2c54d67f12d28564c38d70e81acaea787f..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Media.php +++ /dev/null @@ -1,181 +0,0 @@ -, Spooner Web - * - * 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 2 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! - ******************************************************************/ - -/** - * Any type of media associated to an extension - */ -class Tx_TerFe2_Domain_Model_Media extends Tx_TerFe2_Domain_Model_AbstractEntity -{ - - /** - * Title of the media - * @var string - * @validate NotEmpty - */ - protected $title; - - /** - * Media type (link, image, video, pdf) - * @var string - * @validate NotEmpty - */ - protected $type; - - /** - * Short language parameter (en, de, dk, etc.) - * @var string - * @validate NotEmpty - */ - protected $language; - - /** - * Filename or url - * @var string - * @validate NotEmpty - */ - protected $source; - - /** - * Short description of this media attachment - * @var string - */ - protected $description; - - - /** - * Setter for title - * - * @param string $title Title of the media - * @return void - */ - public function setTitle($title) - { - $this->title = $title; - } - - - /** - * Getter for title - * - * @return string Title of the media - */ - public function getTitle() - { - return $this->title; - } - - - /** - * Setter for type - * - * @param string $type Media type (link, image, video, pdf) - * @return void - */ - public function setType($type) - { - $this->type = $type; - } - - - /** - * Getter for type - * - * @return string Media type (link, image, video, pdf) - */ - public function getType() - { - return $this->type; - } - - - /** - * Setter for language - * - * @param string $language Short language parameter (en, de, dk, etc.) - * @return void - */ - public function setLanguage($language) - { - $this->language = $language; - } - - - /** - * Getter for language - * - * @return string Short language parameter (en, de, dk, etc.) - */ - public function getLanguage() - { - return $this->language; - } - - - /** - * Setter for source - * - * @param string $source Filename or url - * @return void - */ - public function setSource($source) - { - $this->source = $source; - } - - - /** - * Getter for source - * - * @return string Filename or url - */ - public function getSource() - { - return $this->source; - } - - - /** - * Setter for description - * - * @param string $description Short description of this media attachment - * @return void - */ - public function setDescription($description) - { - $this->description = $description; - } - - - /** - * Getter for description - * - * @return string Short description of this media attachment - */ - public function getDescription() - { - return $this->description; - } - -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Search.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Search.php deleted file mode 100644 index a91fb91c99eb2318e8792eedec510d37d12e9d86..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Search.php +++ /dev/null @@ -1,409 +0,0 @@ -, Speedprogs.de - * - * 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 2 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! - ******************************************************************/ - -/** - * Search index entry - */ -class Tx_TerFe2_Domain_Model_Search extends Tx_TerFe2_Domain_Model_AbstractEntity -{ - - /** - * The extension key - * @var string - */ - protected $extensionKey; - - /** - * The version title - * @var string - */ - protected $title; - - /** - * The version description - * @var string - */ - protected $description; - - /** - * The authors of the version - * @var string - */ - protected $authorList; - - /** - * The upload comment - * @var string - */ - protected $uploadComment; - - /** - * The version string - * @var string - */ - protected $versionString; - - /** - * The version state - * @var string - */ - protected $state; - - /** - * The extension manager category - * @var string - */ - protected $emCategory; - - /** - * The software relations of the version - * @var string - */ - protected $softwareRelationList; - - /** - * The categories of the extension - * @var string - */ - protected $categoryList; - - /** - * The tags of the extension - * @var string - */ - protected $tagList; - - /** - * The uid of the version - * @var integer - */ - protected $versionUid; - - /** - * The uid of the extension - * @var integer - */ - protected $extensionUid; - - - /** - * Setter for extensionKey - * - * @param string $extensionKey - * @return void - */ - public function setExtensionKey($extensionKey) - { - $this->extensionKey = $extensionKey; - } - - - /** - * Getter for extensionKey - * - * @return string - */ - public function getExtensionKey() - { - return $this->extensionKey; - } - - - /** - * Setter for title - * - * @param string $title - * @return void - */ - public function setTitle($title) - { - $this->title = $title; - } - - - /** - * Getter for title - * - * @return string - */ - public function getTitle() - { - return $this->title; - } - - - /** - * Setter for description - * - * @param string $description - * @return void - */ - public function setDescription($description) - { - $this->description = $description; - } - - - /** - * Getter for description - * - * @return string - */ - public function getDescription() - { - return $this->description; - } - - - /** - * Setter for authorList - * - * @param string $authorList - * @return void - */ - public function setAuthorList($authorList) - { - $this->authorList = $authorList; - } - - - /** - * Getter for authorList - * - * @return string - */ - public function getAuthorList() - { - return $this->authorList; - } - - - /** - * Setter for uploadComment - * - * @param string $uploadComment - * @return void - */ - public function setUploadComment($uploadComment) - { - $this->uploadComment = $uploadComment; - } - - - /** - * Getter for uploadComment - * - * @return string - */ - public function getUploadComment() - { - return $this->uploadComment; - } - - - /** - * Setter for versionString - * - * @param string $versionString - * @return void - */ - public function setVersionString($versionString) - { - $this->versionString = $versionString; - } - - - /** - * Getter for versionString - * - * @return string - */ - public function getVersionString() - { - return $this->versionString; - } - - - /** - * Setter for state - * - * @param string $state - * @return void - */ - public function setState($state) - { - $this->state = $state; - } - - - /** - * Getter for state - * - * @return string - */ - public function getState() - { - return $this->state; - } - - - /** - * Setter for emCategory - * - * @param string $emCategory - * @return void - */ - public function setEmCategory($emCategory) - { - $this->emCategory = $emCategory; - } - - - /** - * Getter for emCategory - * - * @return string - */ - public function getEmCategory() - { - return $this->emCategory; - } - - - /** - * Setter for softwareRelationList - * - * @param string $softwareRelationList - * @return void - */ - public function setSoftwareRelationList($softwareRelationList) - { - $this->softwareRelationList = $softwareRelationList; - } - - - /** - * Getter for softwareRelationList - * - * @return string - */ - public function getSoftwareRelationList() - { - return $this->softwareRelationList; - } - - - /** - * Setter for categoryList - * - * @param string $categoryList - * @return void - */ - public function setCategoryList($categoryList) - { - $this->categoryList = $categoryList; - } - - - /** - * Getter for categoryList - * - * @return string - */ - public function getCategoryList() - { - return $this->categoryList; - } - - - /** - * Setter for tagList - * - * @param string $tagList - * @return void - */ - public function setTagList($tagList) - { - $this->tagList = $tagList; - } - - - /** - * Getter for tagList - * - * @return string - */ - public function getTagList() - { - return $this->tagList; - } - - - /** - * Setter for versionUid - * - * @param integer $versionUid - * @return void - */ - public function setVersionUid($versionUid) - { - $this->versionUid = $versionUid; - } - - - /** - * Getter for extensionUid - * - * @return integer - */ - public function getVersionUid() - { - return $this->versionUid; - } - - - /** - * Setter for extensionUid - * - * @param integer $extensionUid - * @return void - */ - public function setExtensionUid($extensionUid) - { - $this->extensionUid = $extensionUid; - } - - - /** - * Getter for extensionUid - * - * @return integer - */ - public function getExtensionUid() - { - return $this->extensionUid; - } - -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Version.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Version.php index bb0e4367253142cfa33721b9e8a7cb3507dd9e45..3bfe8a8be89921f3e2e51273e2d3f30967ab2255 100644 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Version.php +++ b/html/typo3conf/ext/ter_fe2/Classes/Domain/Model/Version.php @@ -204,18 +204,6 @@ class Tx_TerFe2_Domain_Model_Version extends Tx_TerFe2_Domain_Model_AbstractEnti */ protected $hasManual; - /** - * Media references - * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage - */ - protected $media; - - /** - * Experiences - * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage - */ - protected $experiences; - /** * Software relations * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage @@ -271,8 +259,6 @@ class Tx_TerFe2_Domain_Model_Version extends Tx_TerFe2_Domain_Model_AbstractEnti */ public function __construct() { - $this->media = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); - $this->experiences = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $this->softwareRelations = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); } @@ -966,100 +952,6 @@ class Tx_TerFe2_Domain_Model_Version extends Tx_TerFe2_Domain_Model_AbstractEnti } - /** - * Setter for media - * - * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $media media - * @return void - */ - public function setMedia(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $media) - { - $this->media = $media; - } - - - /** - * Getter for media - * - * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage media - */ - public function getMedia() - { - return $this->media; - } - - - /** - * Adds a Media - * - * @param Tx_TerFe2_Domain_Model_Media $medium The Media to be added - * @return void - */ - public function addMedia(Tx_TerFe2_Domain_Model_Media $medium) - { - $this->media->attach($medium); - } - - - /** - * Removes a Media - * - * @param Tx_TerFe2_Domain_Model_Media $medium The Media to be removed - * @return void - */ - public function removeMedia(Tx_TerFe2_Domain_Model_Media $medium) - { - $this->media->detach($medium); - } - - - /** - * Setter for experience - * - * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $experiences Experiences - * @return void - */ - public function setExperiences(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $experiences) - { - $this->experiences = $experiences; - } - - - /** - * Getter for experience - * - * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage Experiences - */ - public function getExperiences() - { - return $this->experiences; - } - - - /** - * Adds a Experience - * - * @param Tx_TerFe2_Domain_Model_Experience $experience The experience to be added - * @return void - */ - public function addExperience(Tx_TerFe2_Domain_Model_Experience $experience) - { - $this->experiences->attach($experience); - } - - - /** - * Removes a Experience - * - * @param Tx_TerFe2_Domain_Model_Experience $experience The experience to be removed - * @return void - */ - public function removeExperience(Tx_TerFe2_Domain_Model_Experience $experience) - { - $this->experiences->detach($experience); - } - - /** * Setter for softwareRelations * diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/CategoryRepository.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/CategoryRepository.php deleted file mode 100755 index 677027edb502598b8bc0ebfd5e5a5ba8d33597aa..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/CategoryRepository.php +++ /dev/null @@ -1,32 +0,0 @@ -, Speedprogs.de - * - * 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 2 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! - ******************************************************************/ - -/** - * Repository for Tx_TerFe2_Domain_Model_Category - */ -class Tx_TerFe2_Domain_Repository_CategoryRepository extends Tx_TerFe2_Domain_Repository_AbstractRepository -{ - -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/ExtensionRepository.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/ExtensionRepository.php index ee71eb0bf0df67dd141ebcfeb0b3306068992877..0c3511f4c45aee5cd35c8d5ecc22995405003028 100644 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/ExtensionRepository.php +++ b/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/ExtensionRepository.php @@ -149,33 +149,6 @@ class Tx_TerFe2_Domain_Repository_ExtensionRepository extends Tx_TerFe2_Domain_R return $this->findAll(0, $latestCount, $ordering); } - /** - * Returns top rated extensions - * - * @param integer $topRatedCount Count of extensions - * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage Objects - */ - public function findTopRated($topRatedCount = 0) - { - $ordering = array('lastVersion.experience.rating' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING); - return $this->findAll(0, $topRatedCount, $ordering); - } - - - /** - * Returns all extensions in a category - * - * @param Tx_TerFe2_Domain_Model_Category $category The Category to search in - * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage Objects - */ - public function findByCategory(Tx_TerFe2_Domain_Model_Category $category) - { - $query = $this->createQuery(); - $this->match($query, $query->contains('categories', $category)); - return $query->execute(); - } - - /** * Returns all extensions with a tag * diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/MediaRepository.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/MediaRepository.php deleted file mode 100755 index 88ebb2db230e44118c84b732c7eb74693223d76a..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/MediaRepository.php +++ /dev/null @@ -1,32 +0,0 @@ -, Speedprogs.de - * - * 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 2 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! - ******************************************************************/ - -/** - * Repository for Tx_TerFe2_Domain_Model_Media - */ -class Tx_TerFe2_Domain_Repository_MediaRepository extends Tx_TerFe2_Domain_Repository_AbstractRepository -{ - -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/SearchRepository.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/SearchRepository.php deleted file mode 100644 index e71aa558247ac6878dec21f0c95e2061c9a4b8d9..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/SearchRepository.php +++ /dev/null @@ -1,102 +0,0 @@ -, Speedprogs.de - * - * 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 2 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! - ******************************************************************/ - -/** - * Repository for Tx_TerFe2_Domain_Model_Search - */ -class Tx_TerFe2_Domain_Repository_SearchRepository extends Tx_TerFe2_Domain_Repository_AbstractRepository -{ - - /** - * Search extension uids by search words and filters - * - * TODO: - * - Implement filters - * - * @param string $needle Search string - * @param array $filters Filter extension list - * @return array UIDs of the extensions - */ - public function findUidsBySearchWordsAndFilters($searchWords = NULL, array $filters = NULL) - { - $statement = ' - SELECT DISTINCT extension_uid, MATCH (extension_key,title,description,author_list,upload_comment,version_string,state,em_category,software_relation_list,category_list,tag_list) AGAINST (?) AS score - FROM tx_terfe2_domain_model_search - WHERE MATCH (extension_key,title,description,author_list,upload_comment,version_string,state,em_category,software_relation_list,category_list,tag_list) AGAINST (?) - GROUP BY extension_uid - ORDER BY score DESC - '; - return $this->getUidsByStatement($statement, array($searchWords, $searchWords)); - } - - - /** - * Search extension uids by author - * - * @param Tx_TerFe2_Domain_Model_Author $author The Author to search for - * @return array UIDs of the extensions - */ - public function findUidsByAuthor(Tx_TerFe2_Domain_Model_Author $author) - { - $statement = ' - SELECT DISTINCT extension_uid FROM tx_terfe2_domain_model_search - WHERE tx_terfe2_domain_model_search.author_list LIKE "%,?,%" - OR tx_terfe2_domain_model_search.author_list LIKE "%,?%" - OR tx_terfe2_domain_model_search.author_list LIKE "%?,%" - OR tx_terfe2_domain_model_search.author_list LIKE "?" - GROUP BY extension_uid - '; - $author = (int)$author->getName(); - return $this->getUidsByStatement($statement, array($author, $author, $author, $author)); - } - - - /** - * Execute statement and return resulting uids - * - * @param string $statement The statement to execute - * @param array $attributes Statement parameters - * @param string $uidField Name of the field with the uids - * @return array UIDs of the extensions - */ - public function getUidsByStatement($statement, array $attributes = array(), $uidField = 'extension_uid') - { - $query = $this->createQuery(); - $query->getQuerySettings()->setReturnRawQueryResult(TRUE); - $query->getQuerySettings()->setRespectStoragePage(FALSE); - $query->getQuerySettings()->setRespectSysLanguage(FALSE); - $query->statement($statement, $attributes); - $rows = $query->execute(); - unset($query); - - $uids = array(0); - foreach ($rows as $row) { - $uids[] = (int)$row[$uidField]; - } - - return $uids; - } - -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/VersionRepository.php b/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/VersionRepository.php index 6c8cdaa59dab7d009e7a60fa762cfe6129f9c92b..1c239f93450195a7f70a72abb18b3fb84f5f4614 100644 --- a/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/VersionRepository.php +++ b/html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/VersionRepository.php @@ -68,22 +68,19 @@ class Tx_TerFe2_Domain_Repository_VersionRepository extends Tx_TerFe2_Domain_Rep } /** - * Get all versions where media was not created for + * Get all versions where zip file was not created for * * @param integer $offset Offset to start with * @param integer $count Extension count to load * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage Objects */ - public function findForMediaCreation($offset = 0, $count = 0) + public function findForZipFileCreation($offset = 0, $count = 0) { $query = $this->createQuery($offset, $count); $query->getQuerySettings()->setRespectStoragePage(FALSE); $query->getQuerySettings()->setRespectSysLanguage(FALSE); $query->matching( - $query->logicalOr( - $query->equals('hasZipFile', FALSE), - $query->equals('hasImages', FALSE) - ) + $query->equals('hasZipFile', FALSE) ); return $query->execute(); } diff --git a/html/typo3conf/ext/ter_fe2/Classes/Task/ImportAllExtensionsTask.php b/html/typo3conf/ext/ter_fe2/Classes/Task/ImportAllExtensionsTask.php index 270cefd90560a66b1d1e1c0c1b828b1e2d638caa..91d2ce03690e4a93223046dd7358524d8f304b29 100644 --- a/html/typo3conf/ext/ter_fe2/Classes/Task/ImportAllExtensionsTask.php +++ b/html/typo3conf/ext/ter_fe2/Classes/Task/ImportAllExtensionsTask.php @@ -230,8 +230,6 @@ class Tx_TerFe2_Task_ImportAllExtensionsTask extends tx_scheduler_Task 'review_state' => $extData['reviewstate'], 'manual' => '', 'has_manual' => (boolean)$extData['ismanualincluded'], - 'media' => 0, - 'experiences' => 0, 'software_relations' => 0, 'extension_provider' => 'file', 'has_zip_file' => 0, diff --git a/html/typo3conf/ext/ter_fe2/Classes/Task/ImportExtensionsFromQueueTask.php b/html/typo3conf/ext/ter_fe2/Classes/Task/ImportExtensionsFromQueueTask.php index 7df9ff86da3b6bfdf088628a64ead2c00c762cb0..bfa3efbf3a64e8f8e17a4b345067a42f0159b566 100644 --- a/html/typo3conf/ext/ter_fe2/Classes/Task/ImportExtensionsFromQueueTask.php +++ b/html/typo3conf/ext/ter_fe2/Classes/Task/ImportExtensionsFromQueueTask.php @@ -236,8 +236,6 @@ class Tx_TerFe2_Task_ImportExtensionsFromQueueTask extends tx_scheduler_Task 'review_state' => 0, 'manual' => '', 'has_manual' => (boolean)$extData['ismanualincluded'], - 'media' => 0, - 'experiences' => 0, 'software_relations' => 0, 'extension_provider' => 'file', 'has_zip_file' => 0, diff --git a/html/typo3conf/ext/ter_fe2/Classes/Task/SearchIndexTask.php b/html/typo3conf/ext/ter_fe2/Classes/Task/SearchIndexTask.php deleted file mode 100755 index 33c7d5fcbdeef341d6c475736d65ecc0c478d2a1..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Task/SearchIndexTask.php +++ /dev/null @@ -1,142 +0,0 @@ -, Speedprogs.de - * - * 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 2 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! - ******************************************************************/ - -/** - * Update search index - */ -class Tx_TerFe2_Task_SearchIndexTask extends Tx_TerFe2_Task_AbstractTask -{ - - /** - * @var Tx_TerFe2_Object_ObjectBuilder - */ - protected $objectBuilder; - - /** - * @var \TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager - */ - protected $persistenceManager; - - /** - * @var Tx_TerFe2_Domain_Repository_VersionRepository - */ - protected $versionRepository; - - /** - * @var Tx_TerFe2_Domain_Repository_SearchRepository - */ - protected $searchRepository; - - - /** - * Initialize task - * - * @return void - */ - public function initializeTask() - { - $this->objectBuilder = $this->objectManager->get('Tx_TerFe2_Object_ObjectBuilder'); - $this->persistenceManager = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager::class); - $this->versionRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_VersionRepository'); - $this->searchRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_SearchRepository'); - } - - - /** - * Execute the task - * - * @param integer $lastRun Timestamp of the last run - * @param integer $offset Starting point - * @param integer $count Element count to process at once - * @return boolean TRUE on success - */ - protected function executeTask($lastRun, $offset, $count) - { - $versions = $this->versionRepository->findAll($offset, $count); - - if ($versions->count() === 0) { - return FALSE; - } - - foreach ($versions as $version) { - $extension = $version->getExtension(); - $author = $version->getAuthor(); - $relations = $this->getStorageAttributes($version->getSoftwareRelations(), 'relationKey'); - $categories = $this->getStorageAttributes($extension->getCategories(), 'title'); - $tags = $this->getStorageAttributes($extension->getTags(), 'title'); - $authorInfo = $author->getName() . ',' . $author->getEmail(); - - $attributes = array( - 'extension_key' => $extension->getExtKey(), - 'title' => $version->getTitle(), - 'description' => $version->getDescription(), - 'author_list' => $authorInfo, - 'upload_comment' => $version->getUploadComment(), - 'version_string' => $version->getVersionString(), - 'state' => $version->getState(), - 'em_category' => $version->getEmCategory(), - 'software_relation_list' => implode(',', $relations), - 'category_list' => implode(',', $categories), - 'tag_list' => implode(',', $tags), - 'version_uid' => $version->getUid(), - 'extension_uid' => $extension->getUid(), - ); - - // Get existing entry - $entry = $this->searchRepository->findOneByUid($version->getUid()); - if ($entry instanceof Tx_TerFe2_Domain_Model_Search) { - $entry = $this->objectBuilder->update($entry, $attributes); - } else { - $entry = $this->objectBuilder->create('Tx_TerFe2_Domain_Model_Search', $attributes); - $this->persistenceManager->getSession()->registerReconstitutedObject($entry); - } - - $this->persistenceManager->persistAll(); - } - - return TRUE; - } - - - /** - * Returns the "$attribute" of each object in a storage - * - * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $storage The storage object - * @param string $attribute The attribute name - * @return array The resulting array - */ - protected function getStorageAttributes(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $storage, $attribute = 'uid') - { - $result = array(); - - $method = 'get' . ucfirst($attribute); - foreach ($storage as $object) { - $result[] = $object->$method(); - } - - return $result; - } - -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/Task/SearchIndexTaskAdditionalFieldProvider.php b/html/typo3conf/ext/ter_fe2/Classes/Task/SearchIndexTaskAdditionalFieldProvider.php deleted file mode 100755 index 03f2f3f5fb8ca3752c416bfd3ae6516206470e89..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/Task/SearchIndexTaskAdditionalFieldProvider.php +++ /dev/null @@ -1,54 +0,0 @@ -, Speedprogs.de - * - * 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 2 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! - ******************************************************************/ - -/** - * Additional field provider for the search index task - */ -class Tx_TerFe2_Task_SearchIndexTaskAdditionalFieldProvider extends Tx_TerFe2_Task_AbstractAdditionalFieldProvider -{ - - /** - * Add some input fields to configure the task - * - * @return void - */ - protected function addAdditionalFields() - { - - } - - - /** - * Checks the given values - * - * @param array $submittedData Submitted user data - * @return boolean TRUE if validation was ok - */ - protected function checkAdditionalFields(array $submittedData) - { - return TRUE; - } - -} diff --git a/html/typo3conf/ext/ter_fe2/Classes/ViewHelpers/ExtensionImageViewHelper.php b/html/typo3conf/ext/ter_fe2/Classes/ViewHelpers/ExtensionImageViewHelper.php deleted file mode 100755 index 902c5ef2099ebdf27e2250ef272b41c17612d0a3..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Classes/ViewHelpers/ExtensionImageViewHelper.php +++ /dev/null @@ -1,101 +0,0 @@ -, Speedprogs.de - * - * 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 2 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! - ******************************************************************/ - -/** - * Extension image view helper - */ -class Tx_TerFe2_ViewHelpers_ExtensionImageViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper -{ - - /** - * @var string - */ - protected $tagName = 'img'; - - /** - * @var array - */ - protected $settings; - - /** - * @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer - */ - protected $contentObject; - - - /** - * @param \TYPO3\CMS\Extbase\Configuration\ConfigurationManager $configurationManager - * @return void - */ - public function injectConfigurationManager(\TYPO3\CMS\Extbase\Configuration\ConfigurationManager $configurationManager) - { - /*$this->settings = Tx_TerFe2_Utility_TypoScript::getSetup('plugin.tx_terfe2.settings'); - $this->settings = Tx_TerFe2_Utility_TypoScript::parse($this->settings); - $this->contentObject = $configurationManager->getContentObject();*/ - } - - - /** - * Renders an extension icon for given version object - * - * @param Tx_TerFe2_Domain_Model_Extension $extension Extension object - * @param Tx_TerFe2_Domain_Model_Media $media Media object - * @param string $size Image size to render - * @param boolean $lightbox Enable lighbox - * @return string Rendered image tag - */ - public function render(Tx_TerFe2_Domain_Model_Extension $extension, Tx_TerFe2_Domain_Model_Media $media, $size = 'small', $lightbox = TRUE) - { - /*$size = strtolower($size); - if ($size !== 'small' && $size !== 'large') { - throw new Exception('Image size "' . $size . '" is not implemented yet'); - } - if (empty($this->settings[$size . 'Image'])) { - throw new Exception('Image size "' . $size . '" is not configured'); - } - if (empty($this->settings['mediaRootPath'])) { - throw new Exception('Setting "mediaRootPath" is not configured'); - } - - $fileName = $media->getSource(); - if (empty($fileName)) { - return ''; - } - - $extensionKey = $extension->getExtKey(); - $mediaRootPath = rtrim($this->settings['mediaRootPath'], '/') . '/' . $extensionKey; - $mediaRootPath = Tx_TerFe2_Utility_File::getAbsoluteDirectory($mediaRootPath); - $fileName = $mediaRootPath . $fileName; - - $imageSettings = $this->settings[$size . 'Image']; - $fileName = $this->contentObject->getImgResource($fileName, $imageSettings); - - $this->tag->addAttribute('src', $imageUrl); - return $this->tag->render();*/ - - throw new Exception('Image view helper is not implemented yet'); - } - -} diff --git a/html/typo3conf/ext/ter_fe2/Configuration/FlexForms/flexform_list.xml b/html/typo3conf/ext/ter_fe2/Configuration/FlexForms/flexform_list.xml index 35c26cbd054241e27b8d35c647ec9857b3ab1101..3711be47303d8723afc525853bbb63284ea85af6 100644 --- a/html/typo3conf/ext/ter_fe2/Configuration/FlexForms/flexform_list.xml +++ b/html/typo3conf/ext/ter_fe2/Configuration/FlexForms/flexform_list.xml @@ -22,7 +22,7 @@ LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tt_content.flexform_pi1.s_def.switchableControllerActions.0 - Extension->index;Extension->search;Extension->list;Extension->listLatest;Extension->show;Extension->new;Extension->create;Extension->edit;Extension->update;Extension->delete;Extension->download;Category->list;Category->new;Category->create;Category->edit;Category->update;Category->delete;Category->show;Tag->list;Tag->new;Tag->create;Tag->edit;Tag->update;Tag->delete;Tag->show;Author->list;Author->edit;Author->update;Author->show;Media->list;Media->new;Media->create;Media->edit;Media->update;Media->delete;Media->show;Review->update;Extension->uploadVersion;Extension->createVersion + Extension->index;Extension->search;Extension->list;Extension->listLatest;Extension->show;Extension->new;Extension->create;Extension->edit;Extension->update;Extension->delete;Extension->download;Tag->list;Tag->new;Tag->create;Tag->edit;Tag->update;Tag->delete;Tag->show;Author->list;Author->edit;Author->update;Author->show;Review->update;Extension->uploadVersion;Extension->createVersion LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tt_content.flexform_pi1.s_def.switchableControllerActions.1 @@ -44,4 +44,4 @@ - \ No newline at end of file + diff --git a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_category.php b/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_category.php deleted file mode 100644 index f7d492781353d2c8ed179e9e940d7d904bdf9bba..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_category.php +++ /dev/null @@ -1,96 +0,0 @@ - array( - 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_category', - 'label' => 'title', - 'searchFields' => 'title,description', - 'tstamp' => 'tstamp', - 'crdate' => 'crdate', - 'versioningWS' => 2, - 'versioning_followPages' => true, - 'origUid' => 't3_origuid', - 'languageField' => 'sys_language_uid', - 'transOrigPointerField' => 'l18n_parent', - 'transOrigDiffSourceField' => 'l18n_diffsource', - 'delete' => 'deleted', - 'enablecolumns' => array( - 'disabled' => 'hidden' - ), - 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/category.gif', - ), - 'interface' => array( - 'showRecordFieldList' => 'title,description', - ), - 'types' => array( - '1' => array('showitem' => 'title,description'), - ), - 'palettes' => array( - '1' => array('showitem' => ''), - ), - 'columns' => array( - 'sys_language_uid' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language', - 'config' => array( - 'type' => 'select', - 'foreign_table' => 'sys_language', - 'foreign_table_where' => 'ORDER BY sys_language.title', - 'items' => array( - array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages', -1), - array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0), - ), - ), - ), - 'l18n_parent' => array( - 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => 1, - 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent', - 'config' => array( - 'type' => 'select', - 'foreign_table' => 'tx_terfe2_domain_model_category', - 'foreign_table_where' => 'AND tx_terfe2_domain_model_category.uid=###REC_FIELD_l18n_parent### AND tx_terfe2_domain_model_category.sys_language_uid IN (-1,0)', - 'items' => array( - array('', 0), - ), - ), - ), - 'l18n_diffsource' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 't3ver_label' => array( - 'displayCond' => 'FIELD:t3ver_label:REQ:true', - 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel', - 'config' => array( - 'type' => 'none', - 'cols' => 27, - ), - ), - 'hidden' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden', - 'config' => array( - 'type' => 'check', - ), - ), - 'title' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_category.title', - 'config' => array( - 'type' => 'input', - 'size' => 30, - 'eval' => 'trim,required', - ), - ), - 'description' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_category.description', - 'config' => array( - 'type' => 'text', - 'cols' => 30, - 'rows' => '5', - ), - ), - ), -); diff --git a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_experience.php b/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_experience.php deleted file mode 100644 index 34e198638e8fcd52dd84acadfe0ecc8452806645..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_experience.php +++ /dev/null @@ -1,122 +0,0 @@ - array( - 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_experience', - 'label' => 'date_time', - 'searchFields' => 'comment', - 'tstamp' => 'tstamp', - 'crdate' => 'crdate', - 'versioningWS' => 2, - 'versioning_followPages' => true, - 'origUid' => 't3_origuid', - 'languageField' => 'sys_language_uid', - 'transOrigPointerField' => 'l18n_parent', - 'transOrigDiffSourceField' => 'l18n_diffsource', - 'delete' => 'deleted', - 'enablecolumns' => array( - 'disabled' => 'hidden' - ), - 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/experience.gif', - ), - 'interface' => array( - 'showRecordFieldList' => 'date_time,comment,rating,frontend_user', - ), - 'types' => array( - '1' => array('showitem' => 'date_time,comment,rating,frontend_user'), - ), - 'palettes' => array( - '1' => array('showitem' => ''), - ), - 'columns' => array( - 'sys_language_uid' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language', - 'config' => array( - 'type' => 'select', - 'foreign_table' => 'sys_language', - 'foreign_table_where' => 'ORDER BY sys_language.title', - 'items' => array( - array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages', -1), - array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0), - ), - ), - ), - 'l18n_parent' => array( - 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => 1, - 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent', - 'config' => array( - 'type' => 'select', - 'foreign_table' => 'tx_terfe2_domain_model_experience', - 'foreign_table_where' => 'AND tx_terfe2_domain_model_experience.uid=###REC_FIELD_l18n_parent### AND tx_terfe2_domain_model_experience.sys_language_uid IN (-1,0)', - 'items' => array( - array('', 0), - ), - ), - ), - 'l18n_diffsource' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 't3ver_label' => array( - 'displayCond' => 'FIELD:t3ver_label:REQ:true', - 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel', - 'config' => array( - 'type' => 'none', - 'cols' => 27, - ), - ), - 'hidden' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden', - 'config' => array( - 'type' => 'check', - ), - ), - 'date_time' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_experience.date_time', - 'config' => array( - 'type' => 'input', - 'size' => 12, - 'max' => 20, - 'eval' => 'datetime,required', - 'checkbox' => '0', - 'default' => '0', - ), - ), - 'comment' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_experience.comment', - 'config' => array( - 'type' => 'input', - 'size' => 30, - 'eval' => 'trim', - ), - ), - 'rating' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_experience.rating', - 'config' => array( - 'type' => 'input', - 'size' => 4, - 'eval' => 'int', - ), - ), - 'version' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'frontend_user' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_extension.frontend_user', - 'config' => array( - 'type' => 'inline', - 'foreign_table' => 'fe_users', - 'maxitems' => 1, - ), - ), - ), -); diff --git a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_extension.php b/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_extension.php index d73021d5ec862f8ced54024907e500aec5be4d4b..9852c02fad1cf2dcfd0e8279914bdaae3f863164 100644 --- a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_extension.php +++ b/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_extension.php @@ -19,10 +19,10 @@ return array( 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/extension.gif', ), 'interface' => array( - 'showRecordFieldList' => 'ext_key,forge_link,last_update,last_maintained,categories,tags,versions,last_version,frontend_user,downloads,repository_url,repository_clone_url,paypal_url,external_manual,expire', + 'showRecordFieldList' => 'ext_key,forge_link,last_update,last_maintained,tags,versions,last_version,frontend_user,downloads,repository_url,repository_clone_url,paypal_url,external_manual,expire', ), 'types' => array( - '1' => array('showitem' => 'ext_key,forge_link,last_update,last_maintained,categories,tags,versions,last_version,frontend_user,downloads,repository_url,repository_clone_url,paypal_url,external_manual,expire'), + '1' => array('showitem' => 'ext_key,forge_link,last_update,last_maintained,tags,versions,last_version,frontend_user,downloads,repository_url,repository_clone_url,paypal_url,external_manual,expire'), ), 'palettes' => array( '1' => array('showitem' => ''), @@ -122,21 +122,6 @@ return array( 'default' => '0', ), ), - 'categories' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_extension.categories', - 'config' => array( - 'type' => 'select', - 'size' => 3, - 'minitems' => 0, - 'maxitems' => 9999, - 'autoSizeMax' => 10, - 'multiple' => 0, - 'foreign_table' => 'tx_terfe2_domain_model_category', - 'MM' => 'tx_terfe2_extension_category_mm', - 'MM_opposite_field' => 'extensions', - ), - ), 'tags' => array( 'exclude' => 1, 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_extension.tags', diff --git a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_media.php b/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_media.php deleted file mode 100644 index ac819519cdac39e940975c5bb2e5dc804fb96516..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_media.php +++ /dev/null @@ -1,144 +0,0 @@ - array( - 'title' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media', - 'label' => 'title', - 'searchFields' => 'title,type,language,source,description', - 'tstamp' => 'tstamp', - 'crdate' => 'crdate', - 'versioningWS' => 2, - 'versioning_followPages' => true, - 'origUid' => 't3_origuid', - 'languageField' => 'sys_language_uid', - 'transOrigPointerField' => 'l18n_parent', - 'transOrigDiffSourceField' => 'l18n_diffsource', - 'delete' => 'deleted', - 'enablecolumns' => array( - 'disabled' => 'hidden' - ), - 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/media.gif', - ), - 'interface' => array( - 'showRecordFieldList' => 'title,type,language,source,description', - ), - 'types' => array( - '1' => array('showitem' => 'title,type,language,source,description'), - ), - 'palettes' => array( - '1' => array('showitem' => ''), - ), - 'columns' => array( - 'sys_language_uid' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language', - 'config' => array( - 'type' => 'select', - 'foreign_table' => 'sys_language', - 'foreign_table_where' => 'ORDER BY sys_language.title', - 'items' => array( - array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages', -1), - array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0), - ), - ), - ), - 'l18n_parent' => array( - 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => 1, - 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent', - 'config' => array( - 'type' => 'select', - 'foreign_table' => 'tx_terfe2_domain_model_media', - 'foreign_table_where' => 'AND tx_terfe2_domain_model_media.uid=###REC_FIELD_l18n_parent### AND tx_terfe2_domain_model_media.sys_language_uid IN (-1,0)', - 'items' => array( - array('', 0), - ), - ), - ), - 'l18n_diffsource' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 't3ver_label' => array( - 'displayCond' => 'FIELD:t3ver_label:REQ:true', - 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel', - 'config' => array( - 'type' => 'none', - 'cols' => 27, - ), - ), - 'hidden' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden', - 'config' => array( - 'type' => 'check', - ), - ), - 'title' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media.title', - 'config' => array( - 'type' => 'input', - 'size' => 30, - 'eval' => 'trim,required', - ), - ), - 'type' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media.type', - 'config' => array( - 'type' => 'select', - 'size' => 1, - 'maxitems' => 1, - 'eval' => 'required', - 'items' => array( - array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media.type.0', 0), - array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media.type.1', 1), - array('LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media.type.2', 2), - ), - ), - ), - 'language' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media.language', - 'config' => array( - 'type' => 'select', - 'items' => array( - array('', 0), - ), - 'itemsProcFunc' => 'tx_staticinfotables_div->selectItemsTCA', - 'itemsProcFunc_config' => array( - 'table' => 'static_countries', - 'indexField' => 'cn_iso_3', - ), - 'size' => 1, - 'minitems' => 0, - 'maxitems' => 1, - 'default' => '' - ) - ), - 'source' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media.source', - 'config' => array( - 'type' => 'input', - 'size' => 30, - 'eval' => 'trim,required', - ), - ), - 'description' => array( - 'exclude' => 1, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_media.description', - 'config' => array( - 'type' => 'input', - 'size' => 30, - 'eval' => 'trim', - ), - ), - 'version' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - ), -); diff --git a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_search.php b/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_search.php deleted file mode 100644 index 5e13975bba7529fc930eb6b5d3873e9b1aad5446..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_search.php +++ /dev/null @@ -1,84 +0,0 @@ - array ( - 'hideTable' => TRUE, - 'tstamp' => 'tstamp', - 'crdate' => 'crdate', - ), - 'interface' => array( - 'showRecordFieldList' => 'extension_key,title,description,author_list,upload_comment,version_string,state,em_category,software_relation_list,category_list,tag_list,version_uid,extension_uid', - ), - 'types' => array( - '1' => array('showitem' => 'extension_key,title,description,author_list,upload_comment,version_string,state,em_category,software_relation_list,category_list,tag_list,version_uid,extension_uid'), - ), - 'palettes' => array( - '1' => array('showitem' => ''), - ), - 'columns' => array( - 'extension_key' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'title' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'description' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'author_list' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'upload_comment' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'version_string' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'state' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'em_category' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'software_relation_list' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'category_list' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'tag_list' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'version_uid' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - 'extension_uid' => array( - 'config' => array( - 'type' => 'passthrough', - ), - ), - ), -); diff --git a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_version.php b/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_version.php index 4727a2dde4b6fb1c9cd888200873885e23158ee7..57c79b5e11a672f4373676db82c1846120f063f4 100644 --- a/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_version.php +++ b/html/typo3conf/ext/ter_fe2/Configuration/TCA/tx_terfe2_domain_model_version.php @@ -21,10 +21,10 @@ return array( 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/version.gif', ), 'interface' => array( - 'showRecordFieldList' => 'title,description,version_number,version_string,upload_date,upload_comment,download_counter,frontend_download_counter,state,em_category,load_order,priority,shy,internal,do_not_load_in_fe,uploadfolder,clear_cache_on_load,module,create_dirs,modify_tables,lock_type,cgl_compliance,cgl_compliance_note,review_state,manual,has_manual,media,experiences,software_relations,author,file_hash,extension_provider,has_zip_file,has_images', + 'showRecordFieldList' => 'title,description,version_number,version_string,upload_date,upload_comment,download_counter,frontend_download_counter,state,em_category,load_order,priority,shy,internal,do_not_load_in_fe,uploadfolder,clear_cache_on_load,module,create_dirs,modify_tables,lock_type,cgl_compliance,cgl_compliance_note,review_state,manual,has_manual,software_relations,author,file_hash,extension_provider,has_zip_file,has_images', ), 'types' => array( - '1' => array('showitem' => 'title,description,version_number,version_string,upload_date,upload_comment,download_counter,frontend_download_counter,state,em_category,load_order,priority,shy,internal,do_not_load_in_fe,uploadfolder,clear_cache_on_load,module,create_dirs,modify_tables,lock_type,cgl_compliance,cgl_compliance_note,review_state,manual,has_manual,media,experiences,software_relations,author,file_hash,extension_provider,has_zip_file,has_images'), + '1' => array('showitem' => 'title,description,version_number,version_string,upload_date,upload_comment,download_counter,frontend_download_counter,state,em_category,load_order,priority,shy,internal,do_not_load_in_fe,uploadfolder,clear_cache_on_load,module,create_dirs,modify_tables,lock_type,cgl_compliance,cgl_compliance_note,review_state,manual,has_manual,software_relations,author,file_hash,extension_provider,has_zip_file,has_images'), ), 'palettes' => array( '1' => array('showitem' => ''), @@ -331,34 +331,6 @@ return array( 'type' => 'check', ), ), - 'media' => array( - 'exclude' => 0, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.media', - 'config' => array( - 'type' => 'inline', - 'foreign_table' => 'tx_terfe2_domain_model_media', - 'foreign_field' => 'version', - 'maxitems' => 9999, - 'appearance' => array( - 'collapse' => 0, - 'newRecordLinkPosition' => 'bottom', - ), - ), - ), - 'experiences' => array( - 'exclude' => 0, - 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.experiences', - 'config' => array( - 'type' => 'inline', - 'foreign_table' => 'tx_terfe2_domain_model_experience', - 'foreign_field' => 'version', - 'maxitems' => 9999, - 'appearance' => array( - 'collapse' => 0, - 'newRecordLinkPosition' => 'bottom', - ), - ), - ), 'software_relations' => array( 'exclude' => 0, 'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_version.software_relations', diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang.xml b/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang.xml index 44e946aa3bddd26570f5d06f16cc40057457d043..fe57072565bda06b4de70b4289fedd460ae1bbe3 100644 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang.xml +++ b/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang.xml @@ -26,10 +26,6 @@ - - - - @@ -48,23 +44,9 @@ - - - - - - - - - - - - - - @@ -176,10 +158,6 @@ - - - - diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_category.xml b/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_category.xml deleted file mode 100644 index dec39cfbec042d21d8c7709abbe3ce621f27d26a..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_category.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - Context Sensitive Help (CSH) for table tx_terfe2_domain_model_category - CSH - tx_terfe2_domain_model_category - - - - - - - - \ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_experience.xml b/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_experience.xml deleted file mode 100644 index c6d60cb719835499768a81f28c80e0054236ca66..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_experience.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - Context Sensitive Help (CSH) for table tx_terfe2_domain_model_experience - CSH - tx_terfe2_domain_model_experience - - - - - - - - - \ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_media.xml b/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_media.xml deleted file mode 100644 index cf4277f13632b279d0f34b1701d25dd65ec0d206..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_media.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - Context Sensitive Help (CSH) for table tx_terfe2_domain_model_media - CSH - tx_terfe2_domain_model_media - - - - - - - - - - - \ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_version.xml b/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_version.xml index 9dc8e14476345d398e609594f060369d0f76d14e..9aaddbe3920ec08105aa856bf5e80334c8259f4a 100644 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_version.xml +++ b/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_version.xml @@ -34,11 +34,9 @@ - - - \ No newline at end of file + diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_db.xml b/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_db.xml index a625cfcd2762a3160a8f5e3dd382e8a5a15b208d..df03526da5e939538e229ad5894d8161ac462477 100644 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_db.xml +++ b/html/typo3conf/ext/ter_fe2/Resources/Private/Language/locallang_db.xml @@ -24,10 +24,6 @@ - - - - @@ -77,8 +73,6 @@ - - @@ -86,21 +80,6 @@ - - - - - - - - - - - - - - - @@ -178,4 +157,4 @@ - \ No newline at end of file + diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Partials/CategoryList.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Partials/CategoryList.html deleted file mode 100644 index e450618fee51d112b8d1e602adc8297e3acaa0fc..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Partials/CategoryList.html +++ /dev/null @@ -1,18 +0,0 @@ -{namespace terfe2=Tx_TerFe2_ViewHelpers} - - - -
    - -
  • - - {category.title} - -
  • -
    -
-
- - - -
\ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Partials/ExtensionList.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Partials/ExtensionList.html index 459e65dadad6cb26238bc55f5accd0182a1989bf..fba7981397523f57d05d54ea8b42c5a118d56d6b 100644 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Partials/ExtensionList.html +++ b/html/typo3conf/ext/ter_fe2/Resources/Private/Partials/ExtensionList.html @@ -29,11 +29,6 @@
{extension.lastVersion.author.name} - - | - -
{extension.lastVersion.description} @@ -99,4 +94,4 @@ - \ No newline at end of file + diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Partials/InlineCategoryList.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Partials/InlineCategoryList.html deleted file mode 100644 index 7f38b842f42fbd15fc13cd5d2e72ceb1af6dd309..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Partials/InlineCategoryList.html +++ /dev/null @@ -1,10 +0,0 @@ - - - {category.title} - - - - , - - - \ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/Edit.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/Edit.html deleted file mode 100755 index f88487ba96378ab1abd38e28889c5e4654004130..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/Edit.html +++ /dev/null @@ -1,27 +0,0 @@ - - - -

- -

- - -
- -
- -
- -

- - -
- - - - -
\ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/List.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/List.html deleted file mode 100755 index 2a7065103253b78d3317e9c1ac71bef910cadd71..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/List.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - -
- - - - -
\ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/New.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/New.html deleted file mode 100755 index 23e45c6cd9bf7d80c4311d5940b6cb21387a56eb..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/New.html +++ /dev/null @@ -1,27 +0,0 @@ - - - -

- -

- - -
- -
- -
- -

- - -
- - - - -
\ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/Show.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/Show.html deleted file mode 100644 index 980db1871c6d86e190e8f6e65d2a028372145aa1..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Category/Show.html +++ /dev/null @@ -1,50 +0,0 @@ -{namespace terfe2=Tx_TerFe2_ViewHelpers} - - - - -

- -

- -
- - - - - - - -
- - : - - {category.title}
- - : - - - {category.description} -
-
- - -

- -

- -
- -
-
- -
- - -
\ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/New.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/New.html index fed8995d0430006ce063bed1297aa19ce9733b4d..1565abbaea05daa42da5de05e0f7f0a5f8aa7072 100644 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/New.html +++ b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/New.html @@ -18,13 +18,6 @@
-
- -
-
@@ -38,4 +31,4 @@ - \ No newline at end of file + diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/Search.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/Search.html index 83a8892582c2c5a4d3f0067fd7b8bc6f1e046eb3..2425319fb164ea3e33162731186d852d889f4909 100644 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/Search.html +++ b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/Search.html @@ -7,10 +7,6 @@ - - - - @@ -18,4 +14,4 @@ - \ No newline at end of file + diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/Show.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/Show.html index 616ff2acd55997ed93d541ac8f1ffde04965313d..77d5092bd0f9beeb30e4cebf5261ddff07084879 100644 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/Show.html +++ b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Extension/Show.html @@ -59,13 +59,6 @@ - -
  • - - - -
  • -
  • @@ -197,27 +190,6 @@ - -
    -
    - -
    - - - - - - - - - -
    -
    -
    -
    diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/Edit.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/Edit.html deleted file mode 100755 index 91e5231b93c77183aef5f09585d3f7a997fa8a5d..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/Edit.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -

    - -

    - - -
    - -

    - - -
    - - - - -
    \ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/List.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/List.html deleted file mode 100755 index 4ea95312c5b4633eb908cd6538837483effccbc7..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/List.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - -
    - - - - -
    \ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/New.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/New.html deleted file mode 100755 index c5af57dfad153dfcb3142d9253d362a49bc996a7..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/New.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -

    - - {extension.extKey} -

    - - -
    - -

    - - -
    - - - - -
    \ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/Show.html b/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/Show.html deleted file mode 100755 index 8635ff963a996d8520a4ea8d72bbbbbfaa0a6622..0000000000000000000000000000000000000000 --- a/html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Media/Show.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/html/typo3conf/ext/ter_fe2/ext_localconf.php b/html/typo3conf/ext/ter_fe2/ext_localconf.php index 84e20d9eed048fb5a9983e5edc6d9f698c57bcdb..6a3601921e48d7bb7e42d8271f4a28b51391ea18 100644 --- a/html/typo3conf/ext/ter_fe2/ext_localconf.php +++ b/html/typo3conf/ext/ter_fe2/ext_localconf.php @@ -9,20 +9,16 @@ if (!defined ('TYPO3_MODE')) { 'Pi1', array( 'Extension' => 'index, search, show, new, create, edit, update, delete, download, list, listLatest, uploadVersion, createVersion, removeTag', - 'Category' => 'list, new, create, edit, update, delete, show', 'Tag' => 'list, new, create, edit, update, delete, show', 'Author' => 'list, edit, update, show', - 'Media' => 'list, new, create, edit, update, delete, show', # 'Registerkey' => 'index, create, manage, update, edit, transfer, delete', 'Registerkey' => 'index, admin, deleteExtensionVersion, create, manage, transfer, delete, salvage, keep', 'Review' => 'update', ), array( 'Extension' => 'search, create, update, edit, delete, download, uploadVersion, createVersion, removeTag', - 'Category' => 'create, update, delete', 'Tag' => 'create, delete', 'Author' => 'update', - 'Media' => 'create, delete', # 'Registerkey' => 'index, create, manage, update, edit, transfer, delete', 'Registerkey' => 'index, admin, deleteExtensionVersion, create, manage, transfer, delete, salvage, keep', 'Review' => 'update', @@ -86,14 +82,6 @@ $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_ 'additionalFields' => 'tx_terfe2_task_updatedetailstaskadditionalfieldprovider', ); - // Register search index task -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_SearchIndexTask'] = array( - 'extension' => $_EXTKEY, - 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_searchindextask.name', - 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_searchindextask.description', - 'additionalFields' => 'tx_terfe2_task_searchindextaskadditionalfieldprovider', -); - // Register download counter task $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_DownloadCounterTask'] = array( 'extension' => $_EXTKEY, diff --git a/html/typo3conf/ext/ter_fe2/ext_tables.php b/html/typo3conf/ext/ter_fe2/ext_tables.php index 6e80db3721e175bab1929b97990628446c90fd8e..5573c3aa4e666d080d4e45c0986bd85acf177617 100644 --- a/html/typo3conf/ext/ter_fe2/ext_tables.php +++ b/html/typo3conf/ext/ter_fe2/ext_tables.php @@ -24,11 +24,8 @@ $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$extIdent] = // Domain models and their label / search fields $models = array( 'extension', - 'category', 'tag', 'version', - 'media', - 'experience', 'relation', 'author', ); diff --git a/html/typo3conf/ext/ter_fe2/ext_tables.sql b/html/typo3conf/ext/ter_fe2/ext_tables.sql index eceb87129ab23f8c384a65850010e6ec73932b82..f277a63c48764ea8903018d9c8b5aa0608d13b89 100644 --- a/html/typo3conf/ext/ter_fe2/ext_tables.sql +++ b/html/typo3conf/ext/ter_fe2/ext_tables.sql @@ -9,7 +9,6 @@ CREATE TABLE tx_terfe2_domain_model_extension ( forge_link tinytext, last_upload int(11) unsigned DEFAULT '0', last_maintained int(11) unsigned DEFAULT '0', - categories int(11) unsigned DEFAULT '0', tags int(11) unsigned DEFAULT '0' NOT NULL, versions int(11) unsigned DEFAULT '0' NOT NULL, last_version int(11) unsigned DEFAULT '0' NOT NULL, @@ -47,41 +46,6 @@ CREATE TABLE tx_terfe2_domain_model_extension ( ); -# ====================================================================== -# Table configuration for table "tx_terfe2_domain_model_category" -# ====================================================================== -CREATE TABLE tx_terfe2_domain_model_category ( - uid int(11) NOT NULL auto_increment, - pid int(11) DEFAULT '0' NOT NULL, - - extensions int(11) unsigned DEFAULT '0' NOT NULL, - title tinytext, - description text, - - tstamp int(11) unsigned DEFAULT '0' NOT NULL, - crdate int(11) unsigned DEFAULT '0' NOT NULL, - deleted tinyint(4) unsigned DEFAULT '0' NOT NULL, - hidden tinyint(4) unsigned DEFAULT '0' NOT NULL, - - t3ver_oid int(11) DEFAULT '0' NOT NULL, - t3ver_id int(11) DEFAULT '0' NOT NULL, - t3ver_wsid int(11) DEFAULT '0' NOT NULL, - t3ver_label varchar(30) DEFAULT '' NOT NULL, - t3ver_state tinyint(4) DEFAULT '0' NOT NULL, - t3ver_stage tinyint(4) DEFAULT '0' NOT NULL, - t3ver_count int(11) DEFAULT '0' NOT NULL, - t3ver_tstamp int(11) DEFAULT '0' NOT NULL, - t3_origuid int(11) DEFAULT '0' NOT NULL, - - sys_language_uid int(11) DEFAULT '0' NOT NULL, - l18n_parent int(11) DEFAULT '0' NOT NULL, - l18n_diffsource mediumblob NOT NULL, - - PRIMARY KEY (uid), - KEY parent (pid) -); - - # ====================================================================== # Table configuration for table "tx_terfe2_domain_model_tag" # ====================================================================== @@ -152,8 +116,6 @@ CREATE TABLE tx_terfe2_domain_model_version ( review_state int(11) DEFAULT '0' NOT NULL, manual tinytext, has_manual tinyint(4) unsigned DEFAULT '0' NOT NULL, - media int(11) unsigned DEFAULT '0' NOT NULL, - experiences int(11) unsigned DEFAULT '0' NOT NULL, software_relations int(11) unsigned DEFAULT '0' NOT NULL, extension_provider tinytext, has_zip_file tinyint(4) unsigned DEFAULT '0' NOT NULL, @@ -186,82 +148,6 @@ CREATE TABLE tx_terfe2_domain_model_version ( ); -# ====================================================================== -# Table configuration for table "tx_terfe2_domain_model_media" -# ====================================================================== -CREATE TABLE tx_terfe2_domain_model_media ( - uid int(11) NOT NULL auto_increment, - pid int(11) DEFAULT '0' NOT NULL, - - version int(11) unsigned DEFAULT '0' NOT NULL, - title tinytext, - type int(11) DEFAULT '0' NOT NULL, - language tinytext, - source tinytext, - description text, - - tstamp int(11) unsigned DEFAULT '0' NOT NULL, - crdate int(11) unsigned DEFAULT '0' NOT NULL, - deleted tinyint(4) unsigned DEFAULT '0' NOT NULL, - hidden tinyint(4) unsigned DEFAULT '0' NOT NULL, - - t3ver_oid int(11) DEFAULT '0' NOT NULL, - t3ver_id int(11) DEFAULT '0' NOT NULL, - t3ver_wsid int(11) DEFAULT '0' NOT NULL, - t3ver_label varchar(30) DEFAULT '' NOT NULL, - t3ver_state tinyint(4) DEFAULT '0' NOT NULL, - t3ver_stage tinyint(4) DEFAULT '0' NOT NULL, - t3ver_count int(11) DEFAULT '0' NOT NULL, - t3ver_tstamp int(11) DEFAULT '0' NOT NULL, - t3_origuid int(11) DEFAULT '0' NOT NULL, - - sys_language_uid int(11) DEFAULT '0' NOT NULL, - l18n_parent int(11) DEFAULT '0' NOT NULL, - l18n_diffsource mediumblob NOT NULL, - - PRIMARY KEY (uid), - KEY parent (pid) -); - - -# ====================================================================== -# Table configuration for table "tx_terfe2_domain_model_experience" -# ====================================================================== -CREATE TABLE tx_terfe2_domain_model_experience ( - uid int(11) NOT NULL auto_increment, - pid int(11) DEFAULT '0' NOT NULL, - - version int(11) unsigned DEFAULT '0' NOT NULL, - date_time int(11) DEFAULT '0' NOT NULL, - comment text, - rating int(11) DEFAULT '0' NOT NULL, - frontend_user int(11) DEFAULT '0' NOT NULL, - - - tstamp int(11) unsigned DEFAULT '0' NOT NULL, - crdate int(11) unsigned DEFAULT '0' NOT NULL, - deleted tinyint(4) unsigned DEFAULT '0' NOT NULL, - hidden tinyint(4) unsigned DEFAULT '0' NOT NULL, - - t3ver_oid int(11) DEFAULT '0' NOT NULL, - t3ver_id int(11) DEFAULT '0' NOT NULL, - t3ver_wsid int(11) DEFAULT '0' NOT NULL, - t3ver_label varchar(30) DEFAULT '' NOT NULL, - t3ver_state tinyint(4) DEFAULT '0' NOT NULL, - t3ver_stage tinyint(4) DEFAULT '0' NOT NULL, - t3ver_count int(11) DEFAULT '0' NOT NULL, - t3ver_tstamp int(11) DEFAULT '0' NOT NULL, - t3_origuid int(11) DEFAULT '0' NOT NULL, - - sys_language_uid int(11) DEFAULT '0' NOT NULL, - l18n_parent int(11) DEFAULT '0' NOT NULL, - l18n_diffsource mediumblob NOT NULL, - - PRIMARY KEY (uid), - KEY parent (pid) -); - - # ====================================================================== # Table configuration for table "tx_terfe2_domain_model_relation" # ====================================================================== @@ -340,50 +226,6 @@ CREATE TABLE tx_terfe2_domain_model_author ( ); -# ====================================================================== -# Table configuration for table "tx_terfe2_domain_model_search" -# ====================================================================== -CREATE TABLE tx_terfe2_domain_model_search ( - uid int(11) NOT NULL auto_increment, - pid int(11) DEFAULT '0' NOT NULL, - - extension_key tinytext, - title tinytext, - description text, - author_list text, - upload_comment text, - version_string tinytext, - state tinytext, - em_category tinytext, - software_relation_list text, - category_list text, - tag_list text, - version_uid int(11) unsigned DEFAULT '0' NOT NULL, - extension_uid int(11) unsigned DEFAULT '0' NOT NULL, - - tstamp int(11) unsigned DEFAULT '0' NOT NULL, - crdate int(11) unsigned DEFAULT '0' NOT NULL, - - PRIMARY KEY (uid), - KEY parent (pid), - FULLTEXT (extension_key,title,description,author_list,upload_comment,version_string,state,em_category,software_relation_list,category_list,tag_list) -); - - -# ====================================================================== -# Table configuration for table "tx_terfe2_extension_category_mm" -# ====================================================================== -CREATE TABLE tx_terfe2_extension_category_mm ( - uid_local int(10) unsigned DEFAULT '0' NOT NULL, - uid_foreign int(10) unsigned DEFAULT '0' NOT NULL, - sorting int(10) unsigned DEFAULT '0' NOT NULL, - sorting_foreign int(10) unsigned DEFAULT '0' NOT NULL, - - KEY uid_local (uid_local), - KEY uid_foreign (uid_foreign) -); - - # ====================================================================== # Table configuration for table "tx_terfe2_extension_tag_mm" # ======================================================================