first fluid version
authorSebastian Kurfürst <sebastian@typo3.org>
Wed, 25 Mar 2009 16:41:03 +0000 (16:41 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Wed, 25 Mar 2009 16:41:03 +0000 (16:41 +0000)
12 files changed:
typo3/sysext/fluid/ChangeLog [new file with mode: 0755]
typo3/sysext/fluid/Classes/Compatibility/ObjectFactory.php [new file with mode: 0644]
typo3/sysext/fluid/Classes/Compatibility/TemplateParserBuilder.php [new file with mode: 0644]
typo3/sysext/fluid/Classes/Compatibility/Validation/DummyValidator.php [new file with mode: 0644]
typo3/sysext/fluid/Classes/Compatibility/Validation/ValidatorResolver.php [new file with mode: 0644]
typo3/sysext/fluid/Classes/Test.php [new file with mode: 0644]
typo3/sysext/fluid/README.txt [new file with mode: 0755]
typo3/sysext/fluid/doc/wizard_form.dat [new file with mode: 0755]
typo3/sysext/fluid/doc/wizard_form.html [new file with mode: 0755]
typo3/sysext/fluid/ext_emconf.php [new file with mode: 0755]
typo3/sysext/fluid/ext_icon.gif [new file with mode: 0755]
typo3/sysext/fluid/test.php [new file with mode: 0644]

diff --git a/typo3/sysext/fluid/ChangeLog b/typo3/sysext/fluid/ChangeLog
new file mode 100755 (executable)
index 0000000..6196bef
--- /dev/null
@@ -0,0 +1,3 @@
+2009-03-25 Sebastian Kurfürst  <sebastian@typo3.org>
+
+       * initial code generated with kickstarter
diff --git a/typo3/sysext/fluid/Classes/Compatibility/ObjectFactory.php b/typo3/sysext/fluid/Classes/Compatibility/ObjectFactory.php
new file mode 100644 (file)
index 0000000..dd4a0c6
--- /dev/null
@@ -0,0 +1,43 @@
+<?php
+
+/*                                                                        *
+ * This script is part of the TYPO3 project - inspiring people to share!  *
+ *                                                                        *
+ * TYPO3 is free software; you can redistribute it and/or modify it under *
+ * the terms of the GNU General Public License version 2 as published by  *
+ * the Free Software Foundation.                                          *
+ *                                                                        *
+ * 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 General      *
+ * Public License for more details.                                       *
+ *                                                                        */
+
+/**
+ * @package
+ * @subpackage
+ * @version $Id:$
+ */
+
+class Tx_Fluid_Compatibility_ObjectFactory implements t3lib_Singleton {
+
+       protected $injectors = array(
+               'Core_AbstractViewHelper' => array('injectValidatorResolver' => 'Compatibility_Validation_ValidatorResolver'),
+               'Core_ParsingState' => array('injectVariableContainer' => 'Core_VariableContainer'),
+               'Core_TemplateParser' => array('injectObjectFactory' => 'Compatibility_ObjectFactory'),
+               'Core_VariableContainer' => array('injectObjectFactory' => 'Compatibility_ObjectFactory'),
+       );
+
+       public function create($objectName) {
+               $object = t3lib_div::makeInstance($objectName);
+
+               if (isset($this->injectors['Tx_Fluid_' . $objectName])) {
+                       foreach ($this->injectors['Tx_Fluid_' . $objectName] as $injectMethodName => $objectName) {
+                               call_user_func(array($object, $injectMethodName), t3lib_div::makeInstance('Tx_Fluid' . $objectName));
+                       }
+               }
+               return $object;
+       }
+}
+
+?>
\ No newline at end of file
diff --git a/typo3/sysext/fluid/Classes/Compatibility/TemplateParserBuilder.php b/typo3/sysext/fluid/Classes/Compatibility/TemplateParserBuilder.php
new file mode 100644 (file)
index 0000000..f3ead26
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+
+
+/*                                                                        *
+ * This script is part of the TYPO3 project - inspiring people to share!  *
+ *                                                                        *
+ * TYPO3 is free software; you can redistribute it and/or modify it under *
+ * the terms of the GNU General Public License version 2 as published by  *
+ * the Free Software Foundation.                                          *
+ *                                                                        *
+ * 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 General      *
+ * Public License for more details.                                       *
+ *                                                                        */
+
+/**
+ * @package
+ * @subpackage
+ * @version $Id:$
+ */
+class Tx_Fluid_Compatibility_TemplateParserBuilder {
+       static public function build() {
+               $templateParser = t3lib_div::makeInstance('Tx_Fluid_Core_TemplateParser');
+               $templateParser->injectObjectFactory(t3lib_div::makeInstance('Tx_Fluid_Compatibility_ObjectFactory'));
+               return $templateParser;
+       }
+}
+
+
+?>
\ No newline at end of file
diff --git a/typo3/sysext/fluid/Classes/Compatibility/Validation/DummyValidator.php b/typo3/sysext/fluid/Classes/Compatibility/Validation/DummyValidator.php
new file mode 100644 (file)
index 0000000..5f3b3ba
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+/*                                                                        *
+ * This script is part of the TYPO3 project - inspiring people to share!  *
+ *                                                                        *
+ * TYPO3 is free software; you can redistribute it and/or modify it under *
+ * the terms of the GNU General Public License version 2 as published by  *
+ * the Free Software Foundation.                                          *
+ *                                                                        *
+ * 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 General      *
+ * Public License for more details.                                       *
+ *                                                                        */
+
+/**
+ * @package
+ * @subpackage
+ * @version $Id:$
+ */
+
+class Tx_Fluid_Compatibility_Validation_DummyValidator {
+       public function isValid($object) {
+               return TRUE;
+       }
+}
+
+?>
\ No newline at end of file
diff --git a/typo3/sysext/fluid/Classes/Compatibility/Validation/ValidatorResolver.php b/typo3/sysext/fluid/Classes/Compatibility/Validation/ValidatorResolver.php
new file mode 100644 (file)
index 0000000..f120949
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+/*                                                                        *
+ * This script is part of the TYPO3 project - inspiring people to share!  *
+ *                                                                        *
+ * TYPO3 is free software; you can redistribute it and/or modify it under *
+ * the terms of the GNU General Public License version 2 as published by  *
+ * the Free Software Foundation.                                          *
+ *                                                                        *
+ * 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 General      *
+ * Public License for more details.                                       *
+ *                                                                        */
+
+/**
+ * @package
+ * @subpackage
+ * @version $Id:$
+ */
+
+class Tx_Fluid_Compatibility_Validation_ValidatorResolver implements t3lib_Singleton {
+       public function getValidator($dataType) {
+               return t3lib_div::makeInstance('Tx_Fluid_Compatibility_Validation_DummyValidator');
+       }
+}
+
+?>
\ No newline at end of file
diff --git a/typo3/sysext/fluid/Classes/Test.php b/typo3/sysext/fluid/Classes/Test.php
new file mode 100644 (file)
index 0000000..18ba9c8
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+
+/*                                                                        *
+ * This script is part of the TYPO3 project - inspiring people to share!  *
+ *                                                                        *
+ * TYPO3 is free software; you can redistribute it and/or modify it under *
+ * the terms of the GNU General Public License version 2 as published by  *
+ * the Free Software Foundation.                                          *
+ *                                                                        *
+ * 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 General      *
+ * Public License for more details.                                       *
+ *                                                                        */
+
+/**
+ * @package
+ * @subpackage
+ * @version $Id:$
+ */
+
+class Tx_Fluid_Test {
+
+}
+
+?>
\ No newline at end of file
diff --git a/typo3/sysext/fluid/README.txt b/typo3/sysext/fluid/README.txt
new file mode 100755 (executable)
index 0000000..2b9aebe
--- /dev/null
@@ -0,0 +1,2 @@
+
+Feel free to add some documentation or simply add a link to the online manual.
diff --git a/typo3/sysext/fluid/doc/wizard_form.dat b/typo3/sysext/fluid/doc/wizard_form.dat
new file mode 100755 (executable)
index 0000000..b46eeee
--- /dev/null
@@ -0,0 +1 @@
+a:2:{s:4:"save";a:3:{s:13:"extension_key";s:5:"fluid";s:18:"print_wop_comments";s:1:"0";s:15:"overwrite_files";a:5:{s:9:"ChangeLog";s:1:"1";s:10:"README.txt";s:1:"1";s:12:"ext_icon.gif";s:1:"1";s:19:"doc/wizard_form.dat";s:1:"1";s:20:"doc/wizard_form.html";s:1:"1";}}s:6:"emconf";a:1:{i:1;a:7:{s:5:"title";s:23:"Fluid Templating Engine";s:11:"description";s:100:"Fluid is a next-generation templating engine which makes the life of extension authors a lot easier!";s:8:"category";s:2:"fe";s:5:"state";s:4:"beta";s:12:"dependencies";s:7:"extbase";s:6:"author";s:18:"Sebastian Kurfürst";s:12:"author_email";s:19:"sebastian@typo3.org";}}}
\ No newline at end of file
diff --git a/typo3/sysext/fluid/doc/wizard_form.html b/typo3/sysext/fluid/doc/wizard_form.html
new file mode 100755 (executable)
index 0000000..4fd3cc6
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+
+                       <html>
+                       <head>
+                               <title>Untitled</title>
+                       </head>
+
+                       <body>
+
+                               <table border="0" cellpadding="2" cellspacing="2"><tr bgcolor=""><td><strong><span style="font-family:verdana,arial,sans-serif; font-size:10px;">General info</span></strong></td></tr><tr bgcolor=""><td><span style="font-family:verdana,arial,sans-serif; font-size:10px;">Enter general information about the extension here: Title, description, category, author...</span></td></tr><tr><td></td></tr><tr bgcolor=""><td><span style="font-family:verdana,arial,sans-serif; font-size:10px;"><strong>Title:</strong><br /><a name="260dbfdff6"></a><input type="text" name="kickstarter[wizArray_upd][emconf][1][title]" value="Fluid Templating Engine" style="width:200px;" onchange="setFormAnchorPoint('260dbfdff6');" title="WOP: [emconf][1][title]"></span></td></tr><tr bgcolor=""><td><span style="font-family:verdana,arial,sans-serif; font-size:10px;"><strong>Description:</strong><br /><a name="e9cba6944a"></a><textarea name="kickstarter[wizArray_upd][emconf][1][description]" style="width:600px;" rows="10" wrap="off" onchange="setFormAnchorPoint('e9cba6944a');" title="WOP:[emconf][1][description]" title="WOP: [emconf][1][description]">
+Fluid is a next-generation templating engine which makes the life of extension authors a lot easier!</textarea></span></td></tr><tr bgcolor=""><td><span style="font-family:verdana,arial,sans-serif; font-size:10px;"><strong>Category:</strong><br /><a name="b46008f89f"></a><select name="kickstarter[wizArray_upd][emconf][1][category]" onchange="setFormAnchorPoint('b46008f89f');" title="WOP: [emconf][1][category]"><option value=""></option><option value="fe" selected="selected">Frontend</option><option value="plugin">Frontend Plugins</option><option value="be">Backend</option><option value="module">Backend Modules</option><option value="services">Services</option><option value="example">Examples</option><option value="misc">Miscellaneous</option><option value="templates">Templates</option><option value="doc">Documentation</option></select></span></td></tr><tr bgcolor=""><td><span style="font-family:verdana,arial,sans-serif; font-size:10px;"><strong>State</strong><br /><a name="dbd328a5a5"></a><select name="kickstarter[wizArray_upd][emconf][1][state]" onchange="setFormAnchorPoint('dbd328a5a5');" title="WOP: [emconf][1][state]"><option value="alpha">Alpha (Very initial development)</option><option value="beta" selected="selected">Beta (Under current development, should work partly)</option><option value="stable">Stable (Stable and used in production)</option><option value="experimental">Experimental (Nobody knows if this is going anywhere yet...)</option><option value="test">Test (Test extension, demonstrates concepts etc.)</option></select></span></td></tr><tr bgcolor=""><td><span style="font-family:verdana,arial,sans-serif; font-size:10px;"><strong>Dependencies (comma list of extkeys):</strong><br /><a name="ce30f2d5ba"></a><input type="text" name="kickstarter[wizArray_upd][emconf][1][dependencies]" value="extbase" style="width:200px;" onchange="setFormAnchorPoint('ce30f2d5ba');" title="WOP: [emconf][1][dependencies]"></span></td></tr><tr bgcolor=""><td><span style="font-family:verdana,arial,sans-serif; font-size:10px;"><strong>Author Name:</strong><br /><a name="5317cdfcff"></a><input type="text" name="kickstarter[wizArray_upd][emconf][1][author]" value="Sebastian Kurfürst" style="width:200px;" onchange="setFormAnchorPoint('5317cdfcff');" title="WOP: [emconf][1][author]"></span></td></tr><tr bgcolor=""><td><span style="font-family:verdana,arial,sans-serif; font-size:10px;"><strong>Author email:</strong><br /><a name="58289f4384"></a><input type="text" name="kickstarter[wizArray_upd][emconf][1][author_email]" value="sebastian@typo3.org" style="width:200px;" onchange="setFormAnchorPoint('58289f4384');" title="WOP: [emconf][1][author_email]"></span></td></tr></table>
+                       </body>
+                       </html>
\ No newline at end of file
diff --git a/typo3/sysext/fluid/ext_emconf.php b/typo3/sysext/fluid/ext_emconf.php
new file mode 100755 (executable)
index 0000000..cbc4a12
--- /dev/null
@@ -0,0 +1,45 @@
+<?php
+
+########################################################################
+# Extension Manager/Repository config file for ext: "fluid"
+#
+# Auto generated 25-03-2009 16:26
+#
+# Manual updates:
+# Only the data in the array - anything else is removed by next write.
+# "version" and "dependencies" must not be touched!
+########################################################################
+
+$EM_CONF[$_EXTKEY] = array(
+       'title' => 'Fluid Templating Engine',
+       'description' => 'Fluid is a next-generation templating engine which makes the life of extension authors a lot easier!',
+       'category' => 'fe',
+       'author' => 'Sebastian Kurfürst',
+       'author_email' => 'sebastian@typo3.org',
+       'shy' => '',
+       'dependencies' => 'extbase',
+       'conflicts' => '',
+       'priority' => '',
+       'module' => '',
+       'state' => 'beta',
+       'internal' => '',
+       'uploadfolder' => 0,
+       'createDirs' => '',
+       'modify_tables' => '',
+       'clearCacheOnLoad' => 0,
+       'lockType' => '',
+       'author_company' => '',
+       'version' => '0.0.0',
+       'constraints' => array(
+               'depends' => array(
+                       'extbase' => '',
+               ),
+               'conflicts' => array(
+               ),
+               'suggests' => array(
+               ),
+       ),
+       '_md5_values_when_last_written' => 'a:5:{s:9:"ChangeLog";s:4:"786c";s:10:"README.txt";s:4:"ee2d";s:12:"ext_icon.gif";s:4:"1bdc";s:19:"doc/wizard_form.dat";s:4:"57c9";s:20:"doc/wizard_form.html";s:4:"a1a5";}',
+);
+
+?>
\ No newline at end of file
diff --git a/typo3/sysext/fluid/ext_icon.gif b/typo3/sysext/fluid/ext_icon.gif
new file mode 100755 (executable)
index 0000000..b993e8a
Binary files /dev/null and b/typo3/sysext/fluid/ext_icon.gif differ
diff --git a/typo3/sysext/fluid/test.php b/typo3/sysext/fluid/test.php
new file mode 100644 (file)
index 0000000..2504678
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+require_once(t3lib_extMgm::extPath('extbase').'class.tx_extbase_dispatcher.php');
+
+class user_fluid_test {
+       public function test() {
+               new Tx_ExtBase_Dispatcher();
+
+               $templateParser = Tx_Fluid_Compatibility_TemplateParserBuilder::build();
+               $templateParser->parse('{namespace f3=Tx_Fluid_ViewHelpers}Hallo');
+               return "HU";
+       }
+}
+?>
\ No newline at end of file