Initial code generated by Kickstarter
authorfrancois <francois@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 18 Jan 2010 12:57:52 +0000 (12:57 +0000)
committerfrancois <francois@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 18 Jan 2010 12:57:52 +0000 (12:57 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/expressions_sandbox/trunk@28956 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog [new file with mode: 0644]
README.txt [new file with mode: 0644]
ext_emconf.php [new file with mode: 0644]
ext_icon.gif [new file with mode: 0644]
ext_localconf.php [new file with mode: 0644]
ext_tables.php [new file with mode: 0644]
locallang_db.xml [new file with mode: 0644]
pi1/class.tx_expressionssandbox_pi1.php [new file with mode: 0644]
pi1/locallang.xml [new file with mode: 0644]

diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..8bb32ad
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,3 @@
+2010-01-18 Francois Suter (Cobweb)  <typo3@cobweb.ch>
+
+       * initial code generated with kickstarter
diff --git a/README.txt b/README.txt
new file mode 100644 (file)
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/ext_emconf.php b/ext_emconf.php
new file mode 100644 (file)
index 0000000..9b0906d
--- /dev/null
@@ -0,0 +1,45 @@
+<?php
+
+########################################################################
+# Extension Manager/Repository config file for ext: "expressions_sandbox"
+#
+# Auto generated 18-01-2010 13:02
+#
+# 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' => 'Testing environment for expressions',
+       'description' => 'Provides a frontend testing area for expressions parsed by the generic expressions parser.',
+       'category' => 'plugin',
+       'author' => 'Francois Suter (Cobweb)',
+       'author_email' => 'typo3@cobweb.ch',
+       'shy' => '',
+       'dependencies' => 'expressions',
+       'conflicts' => '',
+       'priority' => '',
+       'module' => '',
+       'state' => 'alpha',
+       'internal' => '',
+       'uploadfolder' => 0,
+       'createDirs' => '',
+       'modify_tables' => '',
+       'clearCacheOnLoad' => 0,
+       'lockType' => '',
+       'author_company' => '',
+       'version' => '0.0.0',
+       'constraints' => array(
+               'depends' => array(
+                       'expressions' => '',
+               ),
+               'conflicts' => array(
+               ),
+               'suggests' => array(
+               ),
+       ),
+       '_md5_values_when_last_written' => 'a:10:{s:9:"ChangeLog";s:4:"c4ef";s:10:"README.txt";s:4:"ee2d";s:12:"ext_icon.gif";s:4:"1bdc";s:17:"ext_localconf.php";s:4:"a5fd";s:14:"ext_tables.php";s:4:"697d";s:16:"locallang_db.xml";s:4:"c673";s:19:"doc/wizard_form.dat";s:4:"f547";s:20:"doc/wizard_form.html";s:4:"a924";s:39:"pi1/class.tx_expressionssandbox_pi1.php";s:4:"71c4";s:17:"pi1/locallang.xml";s:4:"bfc4";}',
+);
+
+?>
\ No newline at end of file
diff --git a/ext_icon.gif b/ext_icon.gif
new file mode 100644 (file)
index 0000000..b993e8a
Binary files /dev/null and b/ext_icon.gif differ
diff --git a/ext_localconf.php b/ext_localconf.php
new file mode 100644 (file)
index 0000000..49e510a
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+if (!defined ('TYPO3_MODE')) {
+       die ('Access denied.');
+}
+
+t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_expressionssandbox_pi1.php', '_pi1', 'list_type', 0);
+?>
\ No newline at end of file
diff --git a/ext_tables.php b/ext_tables.php
new file mode 100644 (file)
index 0000000..9edb03d
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+if (!defined ('TYPO3_MODE')) {
+       die ('Access denied.');
+}
+
+t3lib_div::loadTCA('tt_content');
+$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='layout,select_key';
+
+
+t3lib_extMgm::addPlugin(array(
+       'LLL:EXT:expressions_sandbox/locallang_db.xml:tt_content.list_type_pi1',
+       $_EXTKEY . '_pi1',
+       t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'
+),'list_type');
+?>
\ No newline at end of file
diff --git a/locallang_db.xml b/locallang_db.xml
new file mode 100644 (file)
index 0000000..132c197
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3locallang>
+       <meta type="array">
+               <type>database</type>
+               <description>Language labels for database tables/fields belonging to extension 'expressions_sandbox'</description>
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
+                       <label index="tt_content.list_type_pi1">Expressions sandbox</label>
+               </languageKey>
+       </data>
+</T3locallang>
\ No newline at end of file
diff --git a/pi1/class.tx_expressionssandbox_pi1.php b/pi1/class.tx_expressionssandbox_pi1.php
new file mode 100644 (file)
index 0000000..823e61a
--- /dev/null
@@ -0,0 +1,82 @@
+<?php
+/***************************************************************
+*  Copyright notice
+*
+*  (c) 2010 Francois Suter (Cobweb) <typo3@cobweb.ch>
+*  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!
+***************************************************************/
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ * Hint: use extdeveval to insert/update function index above.
+ */
+
+require_once(PATH_tslib.'class.tslib_pibase.php');
+
+
+/**
+ * Plugin 'Expressions sandbox' for the 'expressions_sandbox' extension.
+ *
+ * @author     Francois Suter (Cobweb) <typo3@cobweb.ch>
+ * @package    TYPO3
+ * @subpackage tx_expressionssandbox
+ */
+class tx_expressionssandbox_pi1 extends tslib_pibase {
+       var $prefixId      = 'tx_expressionssandbox_pi1';               // Same as class name
+       var $scriptRelPath = 'pi1/class.tx_expressionssandbox_pi1.php'; // Path to this script relative to the extension dir.
+       var $extKey        = 'expressions_sandbox';     // The extension key.
+       
+       /**
+        * The main method of the PlugIn
+        *
+        * @param       string          $content: The PlugIn content
+        * @param       array           $conf: The PlugIn configuration
+        * @return      The content that is displayed on the website
+        */
+       function main($content, $conf) {
+               $this->conf = $conf;
+               $this->pi_setPiVarDefaults();
+               $this->pi_loadLL();
+               $this->pi_USER_INT_obj = 1;     // Configuring so caching is not expected. This value means that no cHash params are ever set. We do this, because it's a USER_INT object!
+       
+               $content='
+                       <strong>This is a few paragraphs:</strong><br />
+                       <p>This is line 1</p>
+                       <p>This is line 2</p>
+       
+                       <h3>This is a form:</h3>
+                       <form action="'.$this->pi_getPageLink($GLOBALS['TSFE']->id).'" method="POST">
+                               <input type="text" name="'.$this->prefixId.'[input_field]" value="'.htmlspecialchars($this->piVars['input_field']).'">
+                               <input type="submit" name="'.$this->prefixId.'[submit_button]" value="'.htmlspecialchars($this->pi_getLL('submit_button_label')).'">
+                       </form>
+                       <br />
+                       <p>You can click here to '.$this->pi_linkToPage('get to this page again',$GLOBALS['TSFE']->id).'</p>
+               ';
+       
+               return $this->pi_wrapInBaseClass($content);
+       }
+}
+
+
+
+if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/expressions_sandbox/pi1/class.tx_expressionssandbox_pi1.php'])        {
+       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/expressions_sandbox/pi1/class.tx_expressionssandbox_pi1.php']);
+}
+
+?>
\ No newline at end of file
diff --git a/pi1/locallang.xml b/pi1/locallang.xml
new file mode 100644 (file)
index 0000000..2077b3b
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3locallang>
+       <meta type="array">
+               <type>module</type>
+               <description>Language labels for plugin &quot;tx_expressionssandbox_pi1&quot;</description>
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
+                       <label index="list_mode_1">Mode 1</label>
+                       <label index="list_mode_2">Mode 2</label>
+                       <label index="list_mode_3">Mode 3</label>
+                       <label index="back">Back</label>
+                       <label index="submit_button_label">Click here to submit value</label>
+               </languageKey>
+       </data>
+</T3locallang>
\ No newline at end of file