* moved ControllerInterface to Controller folder
authorJochen Rau <j.rau@web.de>
Wed, 28 Jan 2009 08:37:44 +0000 (08:37 +0000)
committerJochen Rau <j.rau@web.de>
Wed, 28 Jan 2009 08:37:44 +0000 (08:37 +0000)
* moved ViewInterface to View folder
* changed initialization of cleanProperties

typo3/sysext/extbase/Classes/Controller/TX_EXTMVC_ControllerInterface.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/TX_EXTMVC_AbstractDomainObject.php
typo3/sysext/extbase/Classes/TX_EXTMVC_ControllerInterface.php [deleted file]
typo3/sysext/extbase/Classes/TX_EXTMVC_ViewInterface.php [deleted file]
typo3/sysext/extbase/Classes/View/TX_EXTMVC_ViewInterface.php [new file with mode: 0644]

diff --git a/typo3/sysext/extbase/Classes/Controller/TX_EXTMVC_ControllerInterface.php b/typo3/sysext/extbase/Classes/Controller/TX_EXTMVC_ControllerInterface.php
new file mode 100644 (file)
index 0000000..71836f6
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+declare(ENCODING = 'utf-8');
+
+/*                                                                        *
+ * This script belongs to the FLOW3 framework.                            *
+ *                                                                        *
+ * It is free software; you can redistribute it and/or modify it under    *
+ * the terms of the GNU Lesser General Public License as published by the *
+ * Free Software Foundation, either version 3 of the License, or (at your *
+ * option) any later version.                                             *
+ *                                                                        *
+ * This script is distributed in the hope that it will be useful, but     *
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
+ * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
+ * General Public License for more details.                               *
+ *                                                                        *
+ * You should have received a copy of the GNU Lesser General Public       *
+ * License along with the script.                                         *
+ * If not, see http://www.gnu.org/licenses/lgpl.html                      *
+ *                                                                        *
+ * The TYPO3 project - inspiring people to share!                         *
+ *                                                                        */
+
+/**
+ * Interface for controllers
+ *
+ * @version $Id:$
+ * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
+ */
+interface TX_EXTMVC_ControllerInterface {
+
+       /**
+        * Sets / injects the settings of the package this controller belongs to.
+        *
+        * @param array $settings Settings container of the current package
+        * @return void
+        */
+       public function injectSettings(array $settings);
+       
+}
+?>
\ No newline at end of file
index 3dd664e..1f84c31 100644 (file)
@@ -40,8 +40,7 @@ abstract class TX_EXTMVC_AbstractDomainObject {
                        $possibleTableName = strtolower(get_class($this));
                        t3lib_div::loadTCA($possibleTableName);
                        $tca = $GLOBALS['TCA'][$possibleTableName]['columns'];
-                       $tcaColumns = array_keys($tca);
-                       foreach ($tcaColumns as $columnName) {
+                       foreach ($tca as $columnName => $columnConfiguration) {
                                $this->cleanProperties[$columnName] = NULL;
                        }
                return array_key_exists($propertyName, $this->cleanProperties);
diff --git a/typo3/sysext/extbase/Classes/TX_EXTMVC_ControllerInterface.php b/typo3/sysext/extbase/Classes/TX_EXTMVC_ControllerInterface.php
deleted file mode 100644 (file)
index 71836f6..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-declare(ENCODING = 'utf-8');
-
-/*                                                                        *
- * This script belongs to the FLOW3 framework.                            *
- *                                                                        *
- * It is free software; you can redistribute it and/or modify it under    *
- * the terms of the GNU Lesser General Public License as published by the *
- * Free Software Foundation, either version 3 of the License, or (at your *
- * option) any later version.                                             *
- *                                                                        *
- * This script is distributed in the hope that it will be useful, but     *
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
- * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
- * General Public License for more details.                               *
- *                                                                        *
- * You should have received a copy of the GNU Lesser General Public       *
- * License along with the script.                                         *
- * If not, see http://www.gnu.org/licenses/lgpl.html                      *
- *                                                                        *
- * The TYPO3 project - inspiring people to share!                         *
- *                                                                        */
-
-/**
- * Interface for controllers
- *
- * @version $Id:$
- * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
- */
-interface TX_EXTMVC_ControllerInterface {
-
-       /**
-        * Sets / injects the settings of the package this controller belongs to.
-        *
-        * @param array $settings Settings container of the current package
-        * @return void
-        */
-       public function injectSettings(array $settings);
-       
-}
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Classes/TX_EXTMVC_ViewInterface.php b/typo3/sysext/extbase/Classes/TX_EXTMVC_ViewInterface.php
deleted file mode 100644 (file)
index 6acd61a..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-declare(ENCODING = 'utf-8');
-
-/*                                                                        *
- * This script belongs to the FLOW3 framework.                            *
- *                                                                        *
- * It is free software; you can redistribute it and/or modify it under    *
- * the terms of the GNU Lesser General Public License as published by the *
- * Free Software Foundation, either version 3 of the License, or (at your *
- * option) any later version.                                             *
- *                                                                        *
- * This script is distributed in the hope that it will be useful, but     *
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
- * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
- * General Public License for more details.                               *
- *                                                                        *
- * You should have received a copy of the GNU Lesser General Public       *
- * License along with the script.                                         *
- * If not, see http://www.gnu.org/licenses/lgpl.html                      *
- *                                                                        *
- * The TYPO3 project - inspiring people to share!                         *
- *                                                                        */
-
-/**
- * Interface of a view
- *
- * @version $Id:$
- * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
- */
-interface TX_EXTMVC_ViewInterface {
-
-       /**
-        * Sets the current request
-        *
-        * @param TX_EXTMVC_Request $request
-        * @return void
-        */
-       public function setRequest(TX_EXTMVC_Request $request);
-
-       /**
-        * Returns an View Helper instance.
-        * View Helpers must implement the interface TX_EXTMVC_View_Helper_HelperInterface
-        *
-        * @param string $viewHelperObjectName the full name of the View Helper object including namespace
-        * @return TX_EXTMVC_View_Helper_HelperInterface The View Helper instance
-        */
-       public function getViewHelper($viewHelperObjectName);
-
-       /**
-        * Renders the view
-        *
-        * @return string The rendered view
-        */
-       public function render();
-}
-
-?>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Classes/View/TX_EXTMVC_ViewInterface.php b/typo3/sysext/extbase/Classes/View/TX_EXTMVC_ViewInterface.php
new file mode 100644 (file)
index 0000000..6acd61a
--- /dev/null
@@ -0,0 +1,57 @@
+<?php
+declare(ENCODING = 'utf-8');
+
+/*                                                                        *
+ * This script belongs to the FLOW3 framework.                            *
+ *                                                                        *
+ * It is free software; you can redistribute it and/or modify it under    *
+ * the terms of the GNU Lesser General Public License as published by the *
+ * Free Software Foundation, either version 3 of the License, or (at your *
+ * option) any later version.                                             *
+ *                                                                        *
+ * This script is distributed in the hope that it will be useful, but     *
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
+ * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
+ * General Public License for more details.                               *
+ *                                                                        *
+ * You should have received a copy of the GNU Lesser General Public       *
+ * License along with the script.                                         *
+ * If not, see http://www.gnu.org/licenses/lgpl.html                      *
+ *                                                                        *
+ * The TYPO3 project - inspiring people to share!                         *
+ *                                                                        */
+
+/**
+ * Interface of a view
+ *
+ * @version $Id:$
+ * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
+ */
+interface TX_EXTMVC_ViewInterface {
+
+       /**
+        * Sets the current request
+        *
+        * @param TX_EXTMVC_Request $request
+        * @return void
+        */
+       public function setRequest(TX_EXTMVC_Request $request);
+
+       /**
+        * Returns an View Helper instance.
+        * View Helpers must implement the interface TX_EXTMVC_View_Helper_HelperInterface
+        *
+        * @param string $viewHelperObjectName the full name of the View Helper object including namespace
+        * @return TX_EXTMVC_View_Helper_HelperInterface The View Helper instance
+        */
+       public function getViewHelper($viewHelperObjectName);
+
+       /**
+        * Renders the view
+        *
+        * @return string The rendered view
+        */
+       public function render();
+}
+
+?>
\ No newline at end of file