[+TASK] Extbase: Added Extbase Settings Configuration/Settings/setup.txt (defines...
authorJochen Rau <j.rau@web.de>
Tue, 21 Jul 2009 12:48:39 +0000 (12:48 +0000)
committerJochen Rau <j.rau@web.de>
Tue, 21 Jul 2009 12:48:39 +0000 (12:48 +0000)
[-TASK] Extbase: Removed Typo3Query files (follow up)

typo3/sysext/extbase/Classes/Persistence/Typo3Query.php [deleted file]
typo3/sysext/extbase/Classes/Persistence/Typo3QueryInterface.php [deleted file]
typo3/sysext/extbase/Configuration/Settings/setup.txt [new file with mode: 0644]

diff --git a/typo3/sysext/extbase/Classes/Persistence/Typo3Query.php b/typo3/sysext/extbase/Classes/Persistence/Typo3Query.php
deleted file mode 100644 (file)
index f4fc410..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
-*  All rights reserved
-*
-*  This class is a backport of the corresponding class of FLOW3. 
-*  All credits go to the v5 team.
-*
-*  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!
-***************************************************************/
-
-/**
- * A persistence query interface
- *
- * @package TYPO3
- * @subpackage Extbase
- * @version $Id: QueryInterface.php 658 2009-05-16 13:54:16Z jocrau $
- */
-class Tx_Extbase_Persistence_Typo3Query extends Tx_Extbase_Persistence_Query implements Tx_Extbase_Persistence_Typo3QueryInterface {
-       
-       /**
-        * Constructs a query object working on the given class name
-        *
-        * @param string $className
-        */
-       public function __construct($className) {
-               parent::__construct($className);
-               $this->backendSpecificQuerySettings = t3lib_div::makeInstance('Tx_Extbase_Persistence_Storage_Typo3DbSpecificQuerySettings');
-       }
-       
-       /**
-        * Sets the storage page ID.
-        * 
-        * Do NOT call this method yourself! It is automatically called in QueryFactory.
-        * 
-        * @param integer $storagePageId Storage page ID to be used.
-        * @return void
-        * @internal
-        */
-       public function setStoragePageId($storagePageId) {
-               $this->backendSpecificQuerySettings->setStoragePageId($storagePageId);
-       }
-       
-       /**
-        * (non-PHPdoc)
-        * @see Classes/Persistence/Tx_Extbase_Persistence_Typo3QueryInterface#useStoragePage($useStoragePage)
-        */
-       public function useStoragePage($useStoragePage) {
-               $this->backendSpecificQuerySettings->useStoragePage($useStoragePage);
-               return this;
-       }
-       
-       /**
-        * (non-PHPdoc)
-        * @see Classes/Persistence/Tx_Extbase_Persistence_Typo3QueryInterface#useEnableFields($useEnableFields)
-        */
-       public function useEnableFields($useEnableFields) {
-               $this->backendSpecificQuerySettings->useEnableFields($useEnableFields);
-               return this;
-       }
-}
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Classes/Persistence/Typo3QueryInterface.php b/typo3/sysext/extbase/Classes/Persistence/Typo3QueryInterface.php
deleted file mode 100644 (file)
index d45ec69..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
-*  All rights reserved
-*
-*  This class is a backport of the corresponding class of FLOW3. 
-*  All credits go to the v5 team.
-*
-*  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!
-***************************************************************/
-
-/**
- * A persistence query interface
- *
- * @package TYPO3
- * @subpackage Extbase
- * @version $Id: QueryInterface.php 658 2009-05-16 13:54:16Z jocrau $
- */
-interface Tx_Extbase_Persistence_Typo3QueryInterface extends Tx_Extbase_Persistence_QueryInterface {
-       /**
-        * Sets the storage page ID.
-        * 
-        * Do NOT call this method yourself! It is automatically called in QueryFactory.
-        * 
-        * @param integer $storagePageId Storage page ID to be used.
-        * @return void
-        * @internal
-        */
-       public function setStoragePageId($storagePageId);
-               
-       /**
-        * Use storage page
-        * 
-        * @param $useStoragePage if TRUE, should use storage PID. use FALSE to disable the storage Page ID checking 
-        * @return void
-        */
-       public function useStoragePage($useStoragePage);
-       
-       /**
-        * Use enable fields
-        * 
-        * @param $useEnableFields if TRUE, will add enable fields. use FALSE to disable the enable fields checking
-        * @return void
-        */
-       public function useEnableFields($useEnableFields);
-}
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Configuration/Settings/setup.txt b/typo3/sysext/extbase/Configuration/Settings/setup.txt
new file mode 100644 (file)
index 0000000..b856ee9
--- /dev/null
@@ -0,0 +1,20 @@
+plugin.tx_extbase {
+       classes {
+               Tx_Extbase_Domain_Model_FrontendUser {
+                       mapping {
+                               tableName = fe_users
+                               columns {
+                                       lockToDomain.mapOnProperty = lockToDomain
+                               }
+                       }
+               }
+               Tx_Extbase_Domain_Model_FrontendUserGroup {
+                       mapping {
+                               tableName = fe_users
+                               columns {
+                                       lockToDomain.mapOnProperty = lockToDomain
+                               }
+                       }
+               }
+       }
+}
\ No newline at end of file