Working Copy
authorwunschtacho <wunschtacho@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 16 Oct 2012 14:38:57 +0000 (14:38 +0000)
committerwunschtacho <wunschtacho@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 16 Oct 2012 14:38:57 +0000 (14:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/powermail_cond/trunk@67133 735d13b6-9817-0410-8766-e36946ffe9aa

18 files changed:
.idea/misc.xml
.idea/vcs.xml
.idea/workspace.xml
Classes/Utility/FieldlistingBackend.php [new file with mode: 0644]
Configuration/TCA/Conditions.php [new file with mode: 0644]
Configuration/TCA/Rules.php [new file with mode: 0644]
Resources/Private/.htaccess [new file with mode: 0644]
Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_condition.xml [new file with mode: 0644]
Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_rule.xml [new file with mode: 0644]
Resources/Private/Language/locallang_db.xml [new file with mode: 0644]
Resources/Public/Icons/icon_tx_powermailcond_conditions.gif [new file with mode: 0644]
Resources/Public/Icons/icon_tx_powermailcond_rules.gif [new file with mode: 0644]
ext_emconf.php
ext_tables.php
icon_tx_powermailcond_conditions.gif [deleted file]
icon_tx_powermailcond_rules.gif [deleted file]
locallang_db.xml [deleted file]
tca.php [deleted file]

index 2aae329..ec615b9 100644 (file)
@@ -20,5 +20,8 @@
     <default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>\r
   </component>\r
   <component name="ProjectRootManager" version="2" />\r
+  <component name="SvnBranchConfigurationManager">\r
+    <option name="mySupportsUserInfoFilter" value="true" />\r
+  </component>\r
 </project>\r
 \r
index d2d96f2..cce6fd9 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <project version="4">\r
   <component name="VcsDirectoryMappings">\r
-    <mapping directory="" vcs="" />\r
+    <mapping directory="" vcs="svn" />\r
   </component>\r
 </project>\r
 \r
index fc61fa3..ad48d01 100644 (file)
@@ -1,7 +1,33 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <project version="4">\r
   <component name="ChangeListManager">\r
-    <list default="true" id="500e5988-e13b-4ba1-8a60-e63a97f737a1" name="Default" comment="" />\r
+    <list default="true" readonly="true" id="500e5988-e13b-4ba1-8a60-e63a97f737a1" name="Default" comment="">\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Classes/Utility" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Classes" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Configuration/TCA" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Configuration" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Resources/Private/Language" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Resources/Private" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Resources/Public/Icons" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Resources/Public" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Resources" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Configuration/TCA/Conditions.php" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Configuration/TCA/Rules.php" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Resources/Private/.htaccess" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_condition.xml" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_rule.xml" />\r
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Resources/Private/Language/locallang_db.xml" />\r
+      <change type="DELETED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\locallang_db.xml" afterPath="" />\r
+      <change type="DELETED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\tca.php" afterPath="" />\r
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />\r
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/vcs.xml" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />\r
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />\r
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/ext_emconf.php" afterPath="$PROJECT_DIR$/ext_emconf.php" />\r
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/ext_tables.php" afterPath="$PROJECT_DIR$/ext_tables.php" />\r
+      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\icon_tx_powermailcond_conditions.gif" afterPath="$PROJECT_DIR$/Resources/Public/Icons/icon_tx_powermailcond_conditions.gif" />\r
+      <change type="MOVED" beforePath="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\icon_tx_powermailcond_rules.gif" afterPath="$PROJECT_DIR$/Resources/Public/Icons/icon_tx_powermailcond_rules.gif" />\r
+    </list>\r
     <ignored path="powermail_cond@powermailt347.in2code.de.iws" />\r
     <ignored path=".idea/workspace.xml" />\r
     <option name="TRACKING_ENABLED" value="true" />\r
   </component>\r
   <component name="FileEditorManager">\r
     <leaf>\r
-      <file leaf-file-name="ext_localconf.php" pinned="false" current="false" current-in-tab="false">\r
-        <entry file="file://$PROJECT_DIR$/ext_localconf.php">\r
+      <file leaf-file-name="ext_tables.php" pinned="false" current="true" current-in-tab="true">\r
+        <entry file="file://$PROJECT_DIR$/ext_tables.php">\r
           <provider selected="true" editor-type-id="text-editor">\r
-            <state line="13" column="0" selection-start="265" selection-end="265" vertical-scroll-proportion="-8.5">\r
+            <state line="59" column="93" selection-start="2513" selection-end="2513" vertical-scroll-proportion="1.0732807">\r
               <folding />\r
             </state>\r
           </provider>\r
         </entry>\r
       </file>\r
-      <file leaf-file-name="ext_tables.php" pinned="false" current="true" current-in-tab="true">\r
-        <entry file="file://$PROJECT_DIR$/ext_tables.php">\r
+      <file leaf-file-name="locallang_db.xml" pinned="false" current="false" current-in-tab="false">\r
+        <entry file="file://$PROJECT_DIR$/Resources/Private/Language/locallang_db.xml">\r
+          <provider selected="true" editor-type-id="text-editor">\r
+            <state line="4" column="35" selection-start="145" selection-end="145" vertical-scroll-proportion="0.0">\r
+              <folding />\r
+            </state>\r
+          </provider>\r
+        </entry>\r
+      </file>\r
+      <file leaf-file-name="Conditions.php" pinned="false" current="false" current-in-tab="false">\r
+        <entry file="file://$PROJECT_DIR$/Configuration/TCA/Conditions.php">\r
+          <provider selected="true" editor-type-id="text-editor">\r
+            <state line="163" column="76" selection-start="6090" selection-end="6090" vertical-scroll-proportion="-12.392157">\r
+              <folding />\r
+            </state>\r
+          </provider>\r
+        </entry>\r
+      </file>\r
+      <file leaf-file-name="Rules.php" pinned="false" current="false" current-in-tab="false">\r
+        <entry file="file://$PROJECT_DIR$/Configuration/TCA/Rules.php">\r
           <provider selected="true" editor-type-id="text-editor">\r
-            <state line="41" column="88" selection-start="1523" selection-end="1523" vertical-scroll-proportion="0.5558061">\r
+            <state line="91" column="76" selection-start="4488" selection-end="4488" vertical-scroll-proportion="-30.333334">\r
               <folding />\r
             </state>\r
           </provider>\r
     <option name="changedFiles">\r
       <list>\r
         <option value="$PROJECT_DIR$/ext_localconf.php" />\r
+        <option value="$PROJECT_DIR$/ext_emconf.php" />\r
+        <option value="$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php" />\r
+        <option value="$PROJECT_DIR$/tca.php" />\r
+        <option value="$PROJECT_DIR$/Resources/Private/Language/locallang_csh_tx_powermail_domain_model_condition.xml" />\r
+        <option value="$PROJECT_DIR$/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_condition.xml" />\r
+        <option value="$PROJECT_DIR$/Resources/Private/Language/locallang_db.xml" />\r
+        <option value="$PROJECT_DIR$/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_rule.xml" />\r
+        <option value="$PROJECT_DIR$/Configuration/TCA/Conditions.php" />\r
+        <option value="$PROJECT_DIR$/Configuration/TCA/Rules.php" />\r
         <option value="$PROJECT_DIR$/ext_tables.php" />\r
       </list>\r
     </option>\r
     <option name="width" value="1936" />\r
     <option name="height" value="1096" />\r
   </component>\r
-  <component name="ProjectLevelVcsManager" settingsEditedManually="false">\r
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true">\r
     <OptionsSetting value="true" id="Add" />\r
     <OptionsSetting value="true" id="Remove" />\r
     <OptionsSetting value="true" id="Checkout" />\r
     <OptionsSetting value="true" id="Update" />\r
     <OptionsSetting value="true" id="Status" />\r
     <OptionsSetting value="true" id="Edit" />\r
-    <ConfirmationsSetting value="0" id="Add" />\r
-    <ConfirmationsSetting value="0" id="Remove" />\r
+    <ConfirmationsSetting value="2" id="Add" />\r
+    <ConfirmationsSetting value="2" id="Remove" />\r
   </component>\r
   <component name="ProjectReloadState">\r
     <option name="STATE" value="0" />\r
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
           </PATH>\r
+          <PATH>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Resources" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Public" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Icons" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+          </PATH>\r
+          <PATH>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Resources" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Private" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+          </PATH>\r
+          <PATH>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Resources" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Private" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Language" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+          </PATH>\r
+          <PATH>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="lib" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+          </PATH>\r
+          <PATH>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Configuration" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="TCA" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+          </PATH>\r
+          <PATH>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Classes" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Utility" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+          </PATH>\r
         </subPane>\r
       </pane>\r
     </panes>\r
     <property name="options.splitter.main.proportions" value="0.3" />\r
     <property name="WebServerToolWindowFactoryState" value="true" />\r
     <property name="options.lastSelected" value="reference.settings.deploy.options" />\r
-    <property name="options.splitter.details.proportions" value="0.2" />\r
     <property name="options.searchVisible" value="true" />\r
+    <property name="options.splitter.details.proportions" value="0.2" />\r
   </component>\r
   <component name="PublishConfig" serverName="in2code" serverId="3ca6b370-8a73-4525-bbbd-e6d3cdda1d7f" autoUpload="true" autoUploadExternalChanges="true">\r
     <servers>\r
       </server>\r
     </servers>\r
   </component>\r
+  <component name="RecentsManager">\r
+    <key name="MoveFile.RECENT_KEYS">\r
+      <recent name="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\Resources\Public\Icons" />\r
+      <recent name="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\Resources\Private" />\r
+    </key>\r
+  </component>\r
   <component name="RunManager">\r
+    <configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">\r
+      <TestRunner />\r
+      <method>\r
+        <option name="PhingTarget" enabled="false" />\r
+      </method>\r
+    </configuration>\r
+    <configuration default="true" type="JavascriptDebugSession" factoryName="Remote">\r
+      <JSRemoteDebuggerConfigurationSettings>\r
+        <option name="engineId" />\r
+        <option name="fileUrl" />\r
+      </JSRemoteDebuggerConfigurationSettings>\r
+      <method />\r
+    </configuration>\r
+    <configuration default="true" type="PhpUnitRemoteRunConfigurationType" factoryName="PHPUnit on Server">\r
+      <method>\r
+        <option name="FtpUpload" enabled="false">\r
+          <server_id />\r
+          <server_name />\r
+        </option>\r
+        <option name="PhingTarget" enabled="false" />\r
+      </method>\r
+    </configuration>\r
     <list size="0" />\r
   </component>\r
   <component name="ShelveChangesManager" show_recycled="false" />\r
-  <component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="false">\r
+  <component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="true">\r
     <option name="USER" value="" />\r
     <option name="PASSWORD" value="" />\r
     <option name="mySSHConnectionTimeout" value="30000" />\r
     <option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />\r
     <option name="FORCE_UPDATE" value="false" />\r
     <option name="IGNORE_EXTERNALS" value="false" />\r
+    <configuration useDefault="true">C:\Users\einpraegsam\AppData\Roaming\Subversion</configuration>\r
     <myIsUseDefaultProxy>false</myIsUseDefaultProxy>\r
+    <supportedVersion>125</supportedVersion>\r
+  </component>\r
+  <component name="SvnFileUrlMappingImpl">\r
+    <option name="myMappingRoots">\r
+      <list>\r
+        <SvnCopyRootSimple>\r
+          <option name="myVcsRoot" value="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de" />\r
+          <option name="myCopyRoot" value="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de" />\r
+        </SvnCopyRootSimple>\r
+        <SvnCopyRootSimple>\r
+          <option name="myVcsRoot" value="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\.idea" />\r
+          <option name="myCopyRoot" value="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de\.idea" />\r
+        </SvnCopyRootSimple>\r
+      </list>\r
+    </option>\r
+    <option name="myMoreRealMappingRoots">\r
+      <list>\r
+        <SvnCopyRootSimple>\r
+          <option name="myVcsRoot" value="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de" />\r
+          <option name="myCopyRoot" value="C:\Users\einpraegsam\PhpstormProjects\powermail_cond@powermailt347.in2code.de" />\r
+        </SvnCopyRootSimple>\r
+      </list>\r
+    </option>\r
   </component>\r
   <component name="TaskManager">\r
     <task active="true" id="Default" summary="Default task">\r
+      <changelist id="500e5988-e13b-4ba1-8a60-e63a97f737a1" name="Default" comment="" />\r
       <created>1350394416165</created>\r
       <updated>1350394416165</updated>\r
     </task>\r
   </component>\r
   <component name="ToolWindowManager">\r
     <frame x="1592" y="-262" width="1936" height="1096" extended-state="6" />\r
-    <editor active="true" />\r
+    <editor active="false" />\r
     <layout>\r
-      <window_info id="File Transfer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917964" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />\r
-      <window_info id="Data Sources" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />\r
-      <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />\r
+      <window_info id="File Transfer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917964" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
+      <window_info id="Data Sources" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />\r
+      <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
       <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />\r
       <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />\r
-      <window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />\r
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.20704375" sideWeight="0.67082036" order="0" side_tool="false" content_ui="combo" />\r
+      <window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />\r
+      <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.20917822" sideWeight="0.67082036" order="0" side_tool="false" content_ui="combo" />\r
       <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />\r
-      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />\r
-      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />\r
+      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />\r
+      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />\r
       <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />\r
-      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />\r
+      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
       <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />\r
       <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />\r
-      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />\r
       <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />\r
+      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />\r
       <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />\r
-      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />\r
       <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />\r
+      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />\r
     </layout>\r
   </component>\r
   <component name="VcsContentAnnotationSettings">\r
     <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />\r
     <option name="FORCE_NON_EMPTY_COMMENT" value="false" />\r
     <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />\r
-    <option name="LAST_COMMIT_MESSAGE" />\r
+    <option name="LAST_COMMIT_MESSAGE" value="Working Copy" />\r
     <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />\r
     <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />\r
     <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />\r
     <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />\r
     <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />\r
     <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />\r
+    <MESSAGE value="Initial Upload of powermail_cond 2.0" />\r
+    <MESSAGE value="Working Copy" />\r
   </component>\r
   <component name="XDebuggerManager">\r
     <breakpoint-manager />\r
         </state>\r
       </provider>\r
     </entry>\r
-    <entry file="file://$PROJECT_DIR$/tca.php">\r
+    <entry file="file://$PROJECT_DIR$/ext_emconf.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">\r
+        <state line="14" column="141" selection-start="608" selection-end="608" vertical-scroll-proportion="0.1134594">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://$PROJECT_DIR$/lib/class.tx_powermailcond_fields_be.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="31" column="34" selection-start="1231" selection-end="4290" vertical-scroll-proportion="0.18640351">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://D:/SVN/powermail@forge/Classes/Utility/Div.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="0" column="0" selection-start="0" selection-end="1215" vertical-scroll-proportion="-0.0">\r
           <folding />\r
         </state>\r
       </provider>\r
     </entry>\r
+    <entry file="file://$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="41" column="47" selection-start="1426" selection-end="1426" vertical-scroll-proportion="-12.423077">\r
+          <folding>\r
+            <element signature="n#getFieldsets#0;n#Tx_PowermailCond_Utility_FieldlistingBackend#0;n#!!top" expanded="false" />\r
+            <element signature="n#valuesFromPowermailSelectbox#0;n#Tx_PowermailCond_Utility_FieldlistingBackend#0;n#!!top" expanded="false" />\r
+          </folding>\r
+        </state>\r
+      </provider>\r
+    </entry>\r
     <entry file="file://$PROJECT_DIR$/ext_localconf.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="13" column="0" selection-start="265" selection-end="265" vertical-scroll-proportion="-8.5">\r
+        <state line="13" column="0" selection-start="265" selection-end="265" vertical-scroll-proportion="0.24232456">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://D:/SVN/powermail@forge/Configuration/TCA/Pages.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://D:/SVN/powermail@forge/ext_tables.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="82" column="3" selection-start="2545" selection-end="2709" vertical-scroll-proportion="-12.423077">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://D:/SVN/powermail@forge/Resources/Private/Language/locallang_csh_tx_powermail_domain_model_forms.xml">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="12" column="22" selection-start="0" selection-end="992" vertical-scroll-proportion="0.21748401">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://D:/SVN/powermail@forge/Resources/Private/Language/locallang_db.xml">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="10" column="41" selection-start="0" selection-end="26641" vertical-scroll-proportion="0.18123667">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://$PROJECT_DIR$/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_condition.xml">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="12" column="91" selection-start="0" selection-end="628" vertical-scroll-proportion="0.21748401">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://$PROJECT_DIR$/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_rule.xml">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="12" column="87" selection-start="556" selection-end="556" vertical-scroll-proportion="0.21748401">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://$PROJECT_DIR$/Configuration/TCA/Rules.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="91" column="76" selection-start="4488" selection-end="4488" vertical-scroll-proportion="-30.333334">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://$PROJECT_DIR$/Configuration/TCA/Conditions.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="163" column="76" selection-start="6090" selection-end="6090" vertical-scroll-proportion="-12.392157">\r
+          <folding />\r
+        </state>\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://$PROJECT_DIR$/Resources/Private/Language/locallang_db.xml">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="4" column="35" selection-start="145" selection-end="145" vertical-scroll-proportion="0.0">\r
           <folding />\r
         </state>\r
       </provider>\r
     </entry>\r
     <entry file="file://$PROJECT_DIR$/ext_tables.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="41" column="88" selection-start="1523" selection-end="1523" vertical-scroll-proportion="0.5558061">\r
+        <state line="59" column="93" selection-start="2513" selection-end="2513" vertical-scroll-proportion="1.0732807">\r
           <folding />\r
         </state>\r
       </provider>\r
diff --git a/Classes/Utility/FieldlistingBackend.php b/Classes/Utility/FieldlistingBackend.php
new file mode 100644 (file)
index 0000000..a5df967
--- /dev/null
@@ -0,0 +1,131 @@
+<?php
+/***************************************************************
+ *  Copyright notice
+ *
+ *  (c) 2012 Alex Kellner <alexander.kellner@in2code.de>, in2code.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 3 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!
+ ***************************************************************/
+
+
+/**
+ * List powermail fields in Backend for powermail_cond rules
+ *
+ * @package powermail_cond
+ * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
+ */
+class Tx_PowermailCond_Utility_FieldlistingBackend {
+
+       /**
+        * show all fields in the backend
+        *
+        * @param       array   $params: Params
+        * @param       object  $pObj: Parent Object
+        * @return      void
+        */
+       public function fieldname(&$params, $pObj) {
+               $where = '1';
+               if (isset($params['config']['itemsProcFuncValue'])) { // additional where clause
+                       $where = 'formtype IN (' . $params['config']['itemsProcFuncValue'] . ')';
+               }
+               $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
+                       $select = 'uid, title',
+                       $from = 'tx_powermail_fields',
+                       $where .= ' AND pid = ' . intval($params['row']['pid']) . ' AND hidden = 0 AND deleted = 0',
+                       $groupBy = '',
+                       $orderBy = 'sorting',
+                       $limit = ''
+               );
+               if ($res) {
+                       $params['items'][] = array('powermail Fields', '--div--');
+                       while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
+                               $params['items'][] = array($pObj->sL($row['title']) . ' (' . $row['uid'] . ')', $row['uid']);
+                       }
+               }
+
+               if (isset($params['config']['itemsProcFunc_addFieldsets'])) { // add fieldsets to selection
+                       $params['items'] = array_merge((array) $params['items'], $this->getFieldsets($params['row']['pid'])); // add some fieldsets
+               }
+       }
+
+       /**
+        * give me all fieldsets in an array
+        *
+        * @param       integer $pid: Page ID
+        * @return      array   $arr: all fieldsets with its name and the fieldset uid
+        */
+       public function getFieldsets($pid) {
+               $arr = array();
+               $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
+                       $select = 'uid, title',
+                       $from = 'tx_powermail_fieldsets',
+                       $where .= 'pid = ' . intval($pid) . ' AND hidden = 0 AND deleted = 0',
+                       $groupBy = '',
+                       $orderBy = 'sorting',
+                       $limit = ''
+               );
+               if ($res) {
+                       $arr[] = array('powermail Fieldsets', '--div--');
+                       while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
+                               $arr[] = array($row['title'] . ' (' . $row['uid'] . ')', 'fieldset:' . $row['uid']);
+                       }
+               }
+               return $arr;
+       }
+
+       /**
+        * List values of a powermail selectorbox
+        *
+        * @param       array   $params: Params
+        * @param       object  $pObj: Parent Object
+        * @return      void
+        */
+       public function valuesFromPowermailSelectbox(&$params, $pObj) {
+               // Get targetField UID
+               $gParams = t3lib_div::_GET('edit');
+               $gParams2 = $gParams['tx_powermailcond_conditions'];
+               foreach ((array) $gParams2 as $uid => $actions) {
+                       $thisConditionsUid = $uid;
+               }
+               $targetField = $pObj->cachedTSconfig['tx_powermailcond_conditions:' . $thisConditionsUid]['_THIS_ROW']['targetField'];
+
+               // Read values from powermail
+               $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
+                       $select = 'flexform',
+                       $from = 'tx_powermail_fields',
+                       $where = 'uid = ' . intval($targetField),
+                       $groupBy = '',
+                       $orderBy = '',
+                       $limit = '1'
+               );
+               if ($res) {
+                       $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
+               }
+
+               // Change xml to a readable format
+               $arr = (array) t3lib_div::xml2array($row['flexform']);
+               $optionlist = $arr['data']['sDEF']['lDEF']['options']['vDEF'];
+               $options = t3lib_div::trimExplode("\n", $optionlist, 1);
+
+               // write params
+               foreach ((array) $options as $option) {
+                       $params['items'][] = array(htmlspecialchars($option), htmlspecialchars($option));
+               }
+       }
+}
\ No newline at end of file
diff --git a/Configuration/TCA/Conditions.php b/Configuration/TCA/Conditions.php
new file mode 100644 (file)
index 0000000..3ae4dfa
--- /dev/null
@@ -0,0 +1,173 @@
+<?php
+if (!defined ('TYPO3_MODE')) {
+       die ('Access denied.');
+}
+
+$TCA['tx_powermailcond_conditions'] = array (
+       'ctrl' => $TCA['tx_powermailcond_conditions']['ctrl'],
+       'interface' => array (
+               'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,starttime,endtime,title,targetField,actions,filterSelectField,rules,conjunction'
+       ),
+       'types' => array (
+               '0' => array('showitem' => '--palette--;;1, targetField, --palette--;;2, rules, conjunction, sys_language_uid, l18n_parent, l18n_diffsource')
+       ),
+       'palettes' => array (
+               '1' => array('showitem' => 'title, starttime, endtime, hidden'),
+               '2' => array('showitem' => 'actions, filterSelectField')
+       ),
+       'feInterface' => $TCA['tx_powermailcond_conditions']['feInterface'],
+       'columns' => array (
+               'sys_language_uid' => array (
+                       'exclude' => 1,
+                       'label'  => 'LLL:EXT:lang/locallang_general.xml: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.xml:LGL.allLanguages', -1),
+                                       array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
+                               )
+                       )
+               ),
+               'l18n_parent' => array (
+                       'displayCond' => 'FIELD:sys_language_uid:>:0',
+                       'exclude'     => 1,
+                       'label'       => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
+                       'config'      => array (
+                               'type'  => 'select',
+                               'items' => array (
+                                       array('', 0),
+                               ),
+                               'foreign_table'       => 'tx_powermailcond_conditions',
+                               'foreign_table_where' => 'AND tx_powermailcond_conditions.pid=###CURRENT_PID### AND tx_powermailcond_conditions.sys_language_uid IN (-1,0)',
+                       )
+               ),
+               'l18n_diffsource' => array (
+                       'config' => array (
+                               'type' => 'passthrough'
+                       )
+               ),
+               'hidden' => array (
+                       'exclude' => 1,
+                       'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
+                       'config'  => array (
+                               'type'    => 'check',
+                               'default' => '0'
+                       )
+               ),
+               'starttime' => array (
+                       'exclude' => 1,
+                       'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
+                       'config'  => array (
+                               'type'     => 'input',
+                               'size'     => '8',
+                               'max'      => '20',
+                               //'eval'     => 'date',
+                               'default'  => '0',
+                               'checkbox' => '0'
+                       )
+               ),
+               'endtime' => array (
+                       'exclude' => 1,
+                       'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
+                       'config'  => array (
+                               'type'     => 'input',
+                               'size'     => '8',
+                               'max'      => '20',
+                               //'eval'     => 'date',
+                               'checkbox' => '0',
+                               'default'  => '0',
+                               'range'    => array (
+                                       'upper' => mktime(0, 0, 0, 12, 31, 2020),
+                                       'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))
+                               )
+                       )
+               ),
+               'title' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.title',
+                       'config' => Array (
+                               'type' => 'input',
+                               'size' => '30',
+                       )
+               ),
+               'targetField' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.targetField',
+                       'config' => Array (
+                               'type' => 'select',
+                               'items' => Array (
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.targetField.I.0', '0'),
+                               ),
+                               'itemsProcFunc' => 'tx_powermailcond_fields_be->fieldname',
+                               'itemsProcFunc_addFieldsets' => 1, // add fieldsets
+                               'size' => 1,
+                               'maxitems' => 1,
+                               'eval' => 'required'
+                       )
+               ),
+               'actions' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.action',
+                       'config' => Array (
+                               'type' => 'select',
+                               'items' => Array (
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.action.I.main', '--div--'), // title main
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.action.I.0', '0'), // hide
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.action.I.1', '1'), // unhide
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.action.I.additional', '--div--'), // title additional
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.action.I.2', '2'), // filter selectbox
+                               ),
+                               'size' => 1,
+                               'maxitems' => 1,
+                       )
+               ),
+               'filterSelectField' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.filterSelectField',
+                       'config' => Array (
+                               'type' => 'select',
+                               'items' => Array (
+                               ),
+                               'itemsProcFunc' => 'tx_powermailcond_fields_be->valuesFromPowermailSelectbox',
+                               'size' => 4,
+                               'maxitems' => 1000
+                       ),
+                       'displayCond' => 'FIELD:actions:IN:2' // show only if ops value is greater than 1
+               ),
+               'rules' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.rules',
+                       'config' => Array (
+                               'type' => 'inline',
+                               'foreign_table' => 'tx_powermailcond_rules',
+                               'foreign_table_where' => 'AND tx_powermailcond_rules.pid=###CURRENT_PID### ORDER BY tx_powermailcond_rules.uid',
+                               'foreign_field' => 'conditions',
+                               'maxitems' => 99,
+                               'appearance' => array(
+                                       'collapseAll' => 1,
+                                       'expandSingle' => 1,
+                                       'useSortable' => 1,
+                                       'newRecordLinkAddTitle' => 1,
+                                       'newRecordLinkPosition' => 'both',
+                               ),
+                       )
+               ),
+               'conjunction' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.conjunction',
+                       'config' => Array (
+                               'type' => 'select',
+                               'items' => Array (
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.conjunction.I.1', 'OR'), // OR
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions.conjunction.I.0', 'AND'), // AND
+                               ),
+                               'size' => 1,
+                               'maxitems' => 1,
+                       )
+               ),
+       ),
+);
+
+?>
\ No newline at end of file
diff --git a/Configuration/TCA/Rules.php b/Configuration/TCA/Rules.php
new file mode 100644 (file)
index 0000000..db00ef7
--- /dev/null
@@ -0,0 +1,104 @@
+<?php
+if (!defined ('TYPO3_MODE')) {
+       die ('Access denied.');
+}
+
+$TCA['tx_powermailcond_rules'] = array (
+       'ctrl' => $TCA['tx_powermailcond_rules']['ctrl'],
+       'interface' => array (
+               'showRecordFieldList' => 'hidden,startField,ops,condstring,equalField'
+       ),
+       'types' => array (
+               '0' => array('showitem' => '--palette--;;1,startField,--palette--;;2')
+       ),
+       'palettes' => array (
+               '1' => array('showitem' => 'title, hidden'),
+               '2' => array('showitem' => 'ops,condstring,equalField')
+       ),
+       'feInterface' => $TCA['tx_powermailcond_rules']['feInterface'],
+       'columns' => array (
+               'hidden' => array (
+                       'exclude' => 1,
+                       'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
+                       'config'  => array (
+                               'type'    => 'check',
+                               'default' => '0'
+                       )
+               ),
+               'title' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.title',
+                       'config' => Array (
+                               'type' => 'input',
+                               'size' => '30',
+                       )
+               ),
+               'startField' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.startField',
+                       'config' => Array (
+                               'type' => 'select',
+                               'items' => Array (
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.startField.I.0', '0'),
+                               ),
+                               'itemsProcFunc' => 'tx_powermailcond_fields_be->fieldname',
+                               'itemsProcFuncValue' => '"text","textarea","select","radio","check"', // allow only this types of fields in selector
+                               'size' => 1,
+                               'maxitems' => 1,
+                               'eval' => 'required'
+                       )
+               ),
+               'ops' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator',
+                       'config' => Array (
+                               'type' => 'select',
+                               'items' => Array (
+                                       //Array('', ''), // empty
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.operators', '--div--'), // title operators
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.0', '0'), // is set
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.1', '1'), // is not set
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.operatorsComparisonValue', '--div--'), // title operatorsComparisonValue
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.2', '2'), // contains
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.3', '3'), // contains not
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.4', '4'), // is
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.5', '5'), // is not
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.6', '6'), // is greater than
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.7', '7'), // is less than
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.operatorsComparisonField', '--div--'), // title operatorsComparisonField
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.8', '8'), // contains value from field
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.operator.I.9', '9'), // contains not value from field
+                               ),
+                               'size' => 1,
+                               'maxitems' => 1
+                       )
+               ),
+               'condstring' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.condstring',
+                       'config' => Array (
+                               'type' => 'text',
+                               'cols' => '30',
+                               'rows' => '2',
+                       ),
+                       'displayCond' => 'FIELD:ops:IN:2,3,4,5,6,7' // show only if ops value is greater than 1
+               ),
+               'equalField' => Array (
+                       'exclude' => 1,
+                       'label' => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.equalField',
+                       'config' => Array (
+                               'type' => 'select',
+                               'items' => Array (
+                                       Array('LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules.equalField.I.0', '0'),
+                               ),
+                               'itemsProcFunc' => 'tx_powermailcond_fields_be->fieldname',
+                               'itemsProcFuncValue' => '"text","textarea","select","radio"', // allow only this types of fields in selector
+                               'size' => 1,
+                               'maxitems' => 1
+                       ),
+                       'displayCond' => 'FIELD:ops:IN:8,9' // show only if ops value is greater than 1
+               ),
+       ),
+);
+
+?>
\ No newline at end of file
diff --git a/Resources/Private/.htaccess b/Resources/Private/.htaccess
new file mode 100644 (file)
index 0000000..dfc0272
--- /dev/null
@@ -0,0 +1 @@
+deny  from all
\ No newline at end of file
diff --git a/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_condition.xml b/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_condition.xml
new file mode 100644 (file)
index 0000000..4eccd71
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3locallang>
+       <meta type="array">
+               <description>Context Sensitive Help (CSH) for table tx_powermailcond_domain_model_condition</description>
+               <type>CSH</type>
+               <csh_table>tx_powermailcond_domain_model_condition</csh_table>
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
+                       <label index="title.description">Enter a title for this condition</label>
+               </languageKey>
+               <languageKey index="de" type="array">
+                       <label index="title.description">Geben Sie eine Bezeichnung für diese Bedingung ein</label>
+               </languageKey>
+       </data>
+</T3locallang>
\ No newline at end of file
diff --git a/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_rule.xml b/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_rule.xml
new file mode 100644 (file)
index 0000000..4c5ac45
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3locallang>
+       <meta type="array">
+               <description>Context Sensitive Help (CSH) for table tx_powermailcond_domain_model_rule</description>
+               <type>CSH</type>
+               <csh_table>tx_powermailcond_domain_model_rule</csh_table>
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
+                       <label index="title.description">Enter a title for this rule</label>
+               </languageKey>
+               <languageKey index="de" type="array">
+                       <label index="title.description">Geben Sie eine Bezeichnung für diese Regel ein</label>
+               </languageKey>
+       </data>
+</T3locallang>
\ No newline at end of file
diff --git a/Resources/Private/Language/locallang_db.xml b/Resources/Private/Language/locallang_db.xml
new file mode 100644 (file)
index 0000000..683f834
--- /dev/null
@@ -0,0 +1,85 @@
+<?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 'powermail_cond'</description>
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
+                       <label index="tx_powermailcond_conditions">Conditions</label>
+                       <label index="tx_powermailcond_conditions.title">Title</label>
+                       <label index="tx_powermailcond_conditions.targetField">Which field is affected (target field)?</label>
+                       <label index="tx_powermailcond_conditions.targetField.I.0">Please choose...</label>
+                       <label index="tx_powermailcond_conditions.action">What should happen to the chosen field?</label>
+                       <label index="tx_powermailcond_conditions.action.I.main">Main actions</label>
+                       <label index="tx_powermailcond_conditions.action.I.additional">Additional Actions</label>
+                       <label index="tx_powermailcond_conditions.action.I.0">hide</label>
+                       <label index="tx_powermailcond_conditions.action.I.1">unhide</label>
+                       <label index="tx_powermailcond_conditions.action.I.2">filter Selectbox (for fields only)</label>
+                       <label index="tx_powermailcond_conditions.filterSelectField">Filter to these values</label>
+                       <label index="tx_powermailcond_conditions.rules">Rules</label>
+                       <label index="tx_powermailcond_conditions.conjunction">Conjunction of the rules</label>
+                       <label index="tx_powermailcond_conditions.conjunction.I.0">AND</label>
+                       <label index="tx_powermailcond_conditions.conjunction.I.1">OR</label>
+                       <label index="tx_powermailcond_rules">Rules</label>
+                       <label index="tx_powermailcond_rules.title">Title</label>
+                       <label index="tx_powermailcond_rules.startField">Which field starts the condition (start field)?</label>
+                       <label index="tx_powermailcond_rules.startField.I.0">Please choose...</label>
+                       <label index="tx_powermailcond_rules.operator">Operator</label>
+                       <label index="tx_powermailcond_rules.operator.I.operators">Simple Operators</label>
+                       <label index="tx_powermailcond_rules.operator.I.operatorsComparisonValue">Operators with comparison value</label>
+                       <label index="tx_powermailcond_rules.operator.I.operatorsComparisonField">Operators with comparison field</label>
+                       <label index="tx_powermailcond_rules.operator.I.0">is set</label>
+                       <label index="tx_powermailcond_rules.operator.I.1">is not set</label>
+                       <label index="tx_powermailcond_rules.operator.I.2">contains value</label>
+                       <label index="tx_powermailcond_rules.operator.I.3">contains value not</label>
+                       <label index="tx_powermailcond_rules.operator.I.4">is</label>
+                       <label index="tx_powermailcond_rules.operator.I.5">is not</label>
+                       <label index="tx_powermailcond_rules.operator.I.6">is greater than (numbers only)</label>
+                       <label index="tx_powermailcond_rules.operator.I.7">is less than (numbers only)</label>
+                       <label index="tx_powermailcond_rules.operator.I.8">contains value from field</label>
+                       <label index="tx_powermailcond_rules.operator.I.9">contains not value from field</label>
+                       <label index="tx_powermailcond_rules.condstring">Value</label>
+                       <label index="tx_powermailcond_rules.equalField">Field for comparison</label>
+                       <label index="tx_powermailcond_rules.equalField.I.0">Please choose...</label>
+               </languageKey>
+               <languageKey index="de" type="array">
+                       <label index="tx_powermailcond_conditions">Bedingungen</label>
+                       <label index="tx_powermailcond_conditions.title">Bezeichnung</label>
+                       <label index="tx_powermailcond_conditions.targetField">Welches Feld ist betroffen (Zielfeld)?</label>
+                       <label index="tx_powermailcond_conditions.targetField.I.0">Bitte wählen...</label>
+                       <label index="tx_powermailcond_conditions.action">Was soll mit dem gewählten Feld passieren?</label>
+                       <label index="tx_powermailcond_conditions.action.I.main">Hauptaktionen</label>
+                       <label index="tx_powermailcond_conditions.action.I.additional">Zusätzliche Aktionen</label>
+                       <label index="tx_powermailcond_conditions.action.I.0">verberge</label>
+                       <label index="tx_powermailcond_conditions.action.I.1">zeige</label>
+                       <label index="tx_powermailcond_conditions.action.I.2">filter Auswahlbox (nur für Felder)</label>
+                       <label index="tx_powermailcond_conditions.filterSelectField">Auf diese Werte begrenzen</label>
+                       <label index="tx_powermailcond_conditions.rules">Regeln</label>
+                       <label index="tx_powermailcond_conditions.conjunction">Logische Verknüpfung der Regeln</label>
+                       <label index="tx_powermailcond_conditions.conjunction.I.0">UND</label>
+                       <label index="tx_powermailcond_conditions.conjunction.I.1">ODER</label>
+                       <label index="tx_powermailcond_rules">Regeln</label>
+                       <label index="tx_powermailcond_rules.title">Bezeichnung</label>
+                       <label index="tx_powermailcond_rules.startField">Welches Feld löst die Bedingung aus (Startfeld)?</label>
+                       <label index="tx_powermailcond_rules.startField.I.0">Bitte wählen...</label>
+                       <label index="tx_powermailcond_rules.operator">Operator</label>
+                       <label index="tx_powermailcond_rules.operator.I.operators">Einfache Operatoren</label>
+                       <label index="tx_powermailcond_rules.operator.I.operatorsComparisonValue">Operatoren mit Vergleichswert</label>
+                       <label index="tx_powermailcond_rules.operator.I.operatorsComparisonField">Operatoren mit Vergleichsfeld</label>
+                       <label index="tx_powermailcond_rules.operator.I.0">nicht leer</label>
+                       <label index="tx_powermailcond_rules.operator.I.1">leer</label>
+                       <label index="tx_powermailcond_rules.operator.I.2">beinhaltet Wert</label>
+                       <label index="tx_powermailcond_rules.operator.I.3">beinhaltet Wert nicht</label>
+                       <label index="tx_powermailcond_rules.operator.I.4">ist</label>
+                       <label index="tx_powermailcond_rules.operator.I.5">ist nicht</label>
+                       <label index="tx_powermailcond_rules.operator.I.6">ist größer als (nur Zahlen)</label>
+                       <label index="tx_powermailcond_rules.operator.I.7">ist kleiner als (nur Zahlen)</label>
+                       <label index="tx_powermailcond_rules.operator.I.8">beinhaltet Wert von Feld</label>
+                       <label index="tx_powermailcond_rules.operator.I.9">beinhaltet nicht Wert von Feld</label>
+                       <label index="tx_powermailcond_rules.condstring">Wert</label>
+                       <label index="tx_powermailcond_rules.equalField">Vergleichsfeld</label>
+                       <label index="tx_powermailcond_rules.equalField.I.0">Bitte wählen...</label>
+               </languageKey>
+       </data>
+</T3locallang>
\ No newline at end of file
diff --git a/Resources/Public/Icons/icon_tx_powermailcond_conditions.gif b/Resources/Public/Icons/icon_tx_powermailcond_conditions.gif
new file mode 100644 (file)
index 0000000..0480fc3
Binary files /dev/null and b/Resources/Public/Icons/icon_tx_powermailcond_conditions.gif differ
diff --git a/Resources/Public/Icons/icon_tx_powermailcond_rules.gif b/Resources/Public/Icons/icon_tx_powermailcond_rules.gif
new file mode 100644 (file)
index 0000000..18415b1
Binary files /dev/null and b/Resources/Public/Icons/icon_tx_powermailcond_rules.gif differ
index 5fe4f6f..58ff52c 100644 (file)
 
 $EM_CONF[$_EXTKEY] = array(
        'title' => 'Powermail Conditions',
-       'description' => 'Add conditions via AJAX to powermail forms (fields and fieldsets). This extension uses jQuery.',
+       'description' => 'Add conditions via AJAX to powermail 2.x forms (fields and fieldsets). This extension uses jQuery as JavaScript Library.',
        'category' => 'plugin',
        'shy' => 0,
-       'version' => '1.0.2',
+       'version' => '2.0.0alpha',
        'dependencies' => '',
        'conflicts' => '',
        'priority' => '',
index c2b37bc..55ff88a 100644 (file)
@@ -2,56 +2,62 @@
 if (!defined ('TYPO3_MODE')) {
        die ('Access denied.');
 }
-if (TYPO3_MODE=='BE') {
-       include_once(t3lib_extMgm::extPath('powermail_cond') . 'lib/class.tx_powermailcond_fields_be.php');
+
+// Fieldlisting in Backend
+if (TYPO3_MODE == 'BE') {
+       include_once(t3lib_extMgm::extPath('powermail_cond') . 'Classes/Utility/FieldlistingBackend.php');
 }
 
+// Add TypoScript Static Template
 t3lib_extMgm::addStaticFile($_EXTKEY, 'files/static/', 'Main TypoScript');
-t3lib_extMgm::allowTableOnStandardPages('tx_powermailcond_conditions');
-t3lib_extMgm::allowTableOnStandardPages('tx_powermailcond_rules');
-
 
+// Configuration for Conditions
+t3lib_extMgm::addLLrefForTCAdescr('tx_powermail_domain_model_forms', 'EXT:powermail_cond/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_condition.xml');
+t3lib_extMgm::allowTableOnStandardPages('tx_powermailcond_conditions');
 $TCA['tx_powermailcond_conditions'] = array (
        'ctrl' => array (
-               'title'     => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions',
+               'title'     => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_conditions',
                'label'     => 'title',
                'tstamp'    => 'tstamp',
                'crdate'    => 'crdate',
                'cruser_id' => 'cruser_id',
-               'languageField'            => 'sys_language_uid',       
-               'transOrigPointerField'    => 'l18n_parent',    
-               'transOrigDiffSourceField' => 'l18n_diffsource',        
-               'sortby' => 'sorting',  
-               'delete' => 'deleted',  
-               'enablecolumns' => array (              
-                       'disabled' => 'hidden', 
-                       'starttime' => 'starttime',     
+               'languageField'            => 'sys_language_uid',
+               'transOrigPointerField'    => 'l18n_parent',
+               'transOrigDiffSourceField' => 'l18n_diffsource',
+               'sortby' => 'sorting',
+               'delete' => 'deleted',
+               'enablecolumns' => array (
+                       'disabled' => 'hidden',
+                       'starttime' => 'starttime',
                        'endtime' => 'endtime'
                ),
                'requestUpdate' => 'actions',
-               'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
-               'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_powermailcond_conditions.gif'
+               'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Conditions.php',
+               'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY) . '/Resources/Public/Icons/icon_tx_powermailcond_conditions.gif'
        ),
        'feInterface' => array (
                'fe_admin_fieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,starttime,endtime,title,targetField,actions,rules,conjunction',
        )
 );
 
+// Configuration for Rules
+t3lib_extMgm::addLLrefForTCAdescr('tx_powermail_domain_model_forms', 'EXT:powermail_cond/Resources/Private/Language/locallang_csh_tx_powermailcond_domain_model_rule.xml');
+t3lib_extMgm::allowTableOnStandardPages('tx_powermailcond_rules');
 $TCA['tx_powermailcond_rules'] = array (
        'ctrl' => array (
-               'title'     => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules',
+               'title'     => 'LLL:EXT:powermail_cond/Resources/Private/Language/locallang_db.xml:tx_powermailcond_rules',
                'label'     => 'title',
                'tstamp'    => 'tstamp',
                'crdate'    => 'crdate',
                'cruser_id' => 'cruser_id',
-               'sortby' => 'sorting',  
-               'delete' => 'deleted',  
-               'enablecolumns' => array (              
+               'sortby' => 'sorting',
+               'delete' => 'deleted',
+               'enablecolumns' => array (
                        'disabled' => 'hidden'
                ),
                'requestUpdate' => 'ops',
-               'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
-               'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_powermailcond_rules.gif'
+               'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Rules.php',
+               'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY) . '/Resources/Public/Icons/icon_tx_powermailcond_rules.gif'
        ),
        'feInterface' => array (
                'fe_admin_fieldList' => 'hidden,startField,ops,condstring'
diff --git a/icon_tx_powermailcond_conditions.gif b/icon_tx_powermailcond_conditions.gif
deleted file mode 100644 (file)
index 0480fc3..0000000
Binary files a/icon_tx_powermailcond_conditions.gif and /dev/null differ
diff --git a/icon_tx_powermailcond_rules.gif b/icon_tx_powermailcond_rules.gif
deleted file mode 100644 (file)
index 18415b1..0000000
Binary files a/icon_tx_powermailcond_rules.gif and /dev/null differ
diff --git a/locallang_db.xml b/locallang_db.xml
deleted file mode 100644 (file)
index 15be45c..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>\r
-<T3locallang>\r
-       <meta type="array">\r
-               <type>database</type>\r
-               <description>Language labels for database tables/fields belonging to extension 'powermail_cond'</description>\r
-       </meta>\r
-       <data type="array">\r
-               <languageKey index="default" type="array">\r
-                       <label index="tx_powermailcond_conditions">Conditions</label>\r
-                       <label index="tx_powermailcond_conditions.title">Title</label>\r
-                       <label index="tx_powermailcond_conditions.targetField">Which field is affected (target field)?</label>\r
-                       <label index="tx_powermailcond_conditions.targetField.I.0">Please choose...</label>\r
-                       <label index="tx_powermailcond_conditions.action">What should happen to the chosen field?</label>\r
-                       <label index="tx_powermailcond_conditions.action.I.main">Main actions</label>\r
-                       <label index="tx_powermailcond_conditions.action.I.additional">Additional Actions</label>\r
-                       <label index="tx_powermailcond_conditions.action.I.0">hide</label>\r
-                       <label index="tx_powermailcond_conditions.action.I.1">unhide</label>\r
-                       <label index="tx_powermailcond_conditions.action.I.2">filter Selectbox (for fields only)</label>\r
-                       <label index="tx_powermailcond_conditions.filterSelectField">Filter to these values</label>\r
-                       <label index="tx_powermailcond_conditions.rules">Rules</label>\r
-                       <label index="tx_powermailcond_conditions.conjunction">Conjunction of the rules</label>\r
-                       <label index="tx_powermailcond_conditions.conjunction.I.0">AND</label>\r
-                       <label index="tx_powermailcond_conditions.conjunction.I.1">OR</label>\r
-                       <label index="tx_powermailcond_rules">Rules</label>\r
-                       <label index="tx_powermailcond_rules.title">Title</label>\r
-                       <label index="tx_powermailcond_rules.startField">Which field starts the condition (start field)?</label>\r
-                       <label index="tx_powermailcond_rules.startField.I.0">Please choose...</label>\r
-                       <label index="tx_powermailcond_rules.operator">Operator</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.operators">Simple Operators</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.operatorsComparisonValue">Operators with comparison value</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.operatorsComparisonField">Operators with comparison field</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.0">is set</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.1">is not set</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.2">contains value</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.3">contains value not</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.4">is</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.5">is not</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.6">is greater than (numbers only)</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.7">is less than (numbers only)</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.8">contains value from field</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.9">contains not value from field</label>\r
-                       <label index="tx_powermailcond_rules.condstring">Value</label>\r
-                       <label index="tx_powermailcond_rules.equalField">Field for comparison</label>\r
-                       <label index="tx_powermailcond_rules.equalField.I.0">Please choose...</label>\r
-               </languageKey>\r
-               <languageKey index="de" type="array">\r
-                       <label index="tx_powermailcond_conditions">Bedingungen</label>\r
-                       <label index="tx_powermailcond_conditions.title">Bezeichnung</label>\r
-                       <label index="tx_powermailcond_conditions.targetField">Welches Feld ist betroffen (Zielfeld)?</label>\r
-                       <label index="tx_powermailcond_conditions.targetField.I.0">Bitte wählen...</label>\r
-                       <label index="tx_powermailcond_conditions.action">Was soll mit dem gewählten Feld passieren?</label>\r
-                       <label index="tx_powermailcond_conditions.action.I.main">Hauptaktionen</label>\r
-                       <label index="tx_powermailcond_conditions.action.I.additional">Zusätzliche Aktionen</label>\r
-                       <label index="tx_powermailcond_conditions.action.I.0">verberge</label>\r
-                       <label index="tx_powermailcond_conditions.action.I.1">zeige</label>\r
-                       <label index="tx_powermailcond_conditions.action.I.2">filter Auswahlbox (nur für Felder)</label>\r
-                       <label index="tx_powermailcond_conditions.filterSelectField">Auf diese Werte begrenzen</label>\r
-                       <label index="tx_powermailcond_conditions.rules">Regeln</label>\r
-                       <label index="tx_powermailcond_conditions.conjunction">Logische Verknüpfung der Regeln</label>\r
-                       <label index="tx_powermailcond_conditions.conjunction.I.0">UND</label>\r
-                       <label index="tx_powermailcond_conditions.conjunction.I.1">ODER</label>\r
-                       <label index="tx_powermailcond_rules">Regeln</label>\r
-                       <label index="tx_powermailcond_rules.title">Bezeichnung</label>\r
-                       <label index="tx_powermailcond_rules.startField">Welches Feld löst die Bedingung aus (Startfeld)?</label>\r
-                       <label index="tx_powermailcond_rules.startField.I.0">Bitte wählen...</label>\r
-                       <label index="tx_powermailcond_rules.operator">Operator</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.operators">Einfache Operatoren</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.operatorsComparisonValue">Operatoren mit Vergleichswert</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.operatorsComparisonField">Operatoren mit Vergleichsfeld</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.0">nicht leer</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.1">leer</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.2">beinhaltet Wert</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.3">beinhaltet Wert nicht</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.4">ist</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.5">ist nicht</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.6">ist größer als (nur Zahlen)</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.7">ist kleiner als (nur Zahlen)</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.8">beinhaltet Wert von Feld</label>\r
-                       <label index="tx_powermailcond_rules.operator.I.9">beinhaltet nicht Wert von Feld</label>\r
-                       <label index="tx_powermailcond_rules.condstring">Wert</label>\r
-                       <label index="tx_powermailcond_rules.equalField">Vergleichsfeld</label>\r
-                       <label index="tx_powermailcond_rules.equalField.I.0">Bitte wählen...</label>\r
-               </languageKey>\r
-       </data>\r
-</T3locallang>\r
diff --git a/tca.php b/tca.php
deleted file mode 100644 (file)
index 666a412..0000000
--- a/tca.php
+++ /dev/null
@@ -1,272 +0,0 @@
-<?php
-if (!defined ('TYPO3_MODE')) {
-       die ('Access denied.');
-}
-
-$TCA['tx_powermailcond_conditions'] = array (
-       'ctrl' => $TCA['tx_powermailcond_conditions']['ctrl'],
-       'interface' => array (
-               'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,starttime,endtime,title,targetField,actions,filterSelectField,rules,conjunction'
-       ),
-       'feInterface' => $TCA['tx_powermailcond_conditions']['feInterface'],
-       'columns' => array (
-               'sys_language_uid' => array (           
-                       'exclude' => 1,
-                       'label'  => 'LLL:EXT:lang/locallang_general.xml: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.xml:LGL.allLanguages', -1),
-                                       array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
-                               )
-                       )
-               ),
-               'l18n_parent' => array (                
-                       'displayCond' => 'FIELD:sys_language_uid:>:0',
-                       'exclude'     => 1,
-                       'label'       => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
-                       'config'      => array (
-                               'type'  => 'select',
-                               'items' => array (
-                                       array('', 0),
-                               ),
-                               'foreign_table'       => 'tx_powermailcond_conditions',
-                               'foreign_table_where' => 'AND tx_powermailcond_conditions.pid=###CURRENT_PID### AND tx_powermailcond_conditions.sys_language_uid IN (-1,0)',
-                       )
-               ),
-               'l18n_diffsource' => array (            
-                       'config' => array (
-                               'type' => 'passthrough'
-                       )
-               ),
-               'hidden' => array (             
-                       'exclude' => 1,
-                       'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
-                       'config'  => array (
-                               'type'    => 'check',
-                               'default' => '0'
-                       )
-               ),
-               'starttime' => array (          
-                       'exclude' => 1,
-                       'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
-                       'config'  => array (
-                               'type'     => 'input',
-                               'size'     => '8',
-                               'max'      => '20',
-                               //'eval'     => 'date',
-                               'default'  => '0',
-                               'checkbox' => '0'
-                       )
-               ),
-               'endtime' => array (            
-                       'exclude' => 1,
-                       'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
-                       'config'  => array (
-                               'type'     => 'input',
-                               'size'     => '8',
-                               'max'      => '20',
-                               //'eval'     => 'date',
-                               'checkbox' => '0',
-                               'default'  => '0',
-                               'range'    => array (
-                                       'upper' => mktime(0, 0, 0, 12, 31, 2020),
-                                       'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))
-                               )
-                       )
-               ),
-               'title' => Array (              
-                       'exclude' => 1,         
-                       'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.title',         
-                       'config' => Array (
-                               'type' => 'input',      
-                               'size' => '30',
-                       )
-               ),
-               'targetField' => Array (                
-                       'exclude' => 1,         
-                       'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.targetField',           
-                       'config' => Array (
-                               'type' => 'select',
-                               'items' => Array (
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.targetField.I.0', '0'),
-                               ),
-                               'itemsProcFunc' => 'tx_powermailcond_fields_be->fieldname',     
-                               'itemsProcFunc_addFieldsets' => 1, // add fieldsets
-                               'size' => 1,    
-                               'maxitems' => 1,
-                               'eval' => 'required'
-                       )
-               ),
-        'actions' => Array (
-            'exclude' => 1,
-            'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.action',
-            'config' => Array (
-                'type' => 'select',
-                'items' => Array (
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.action.I.main', '--div--'), // title main
-                    Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.action.I.0', '0'), // hide
-                    Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.action.I.1', '1'), // unhide
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.action.I.additional', '--div--'), // title additional
-                    Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.action.I.2', '2'), // filter selectbox
-                       ),
-                'size' => 1,
-                'maxitems' => 1,
-            )
-        ),
-               'filterSelectField' => Array (          
-                       'exclude' => 1,
-                       'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.filterSelectField',             
-                       'config' => Array (
-                               'type' => 'select',
-                               'items' => Array (
-                               ),
-                               'itemsProcFunc' => 'tx_powermailcond_fields_be->valuesFromPowermailSelectbox',  
-                               'size' => 4,
-                               'maxitems' => 1000
-                       ),
-                       'displayCond' => 'FIELD:actions:IN:2' // show only if ops value is greater than 1
-               ),
-               'rules' => Array (              
-                       'exclude' => 1,
-                       'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.rules',         
-                       'config' => Array (
-                               'type' => 'inline',
-                               'foreign_table' => 'tx_powermailcond_rules',
-                               'foreign_table_where' => 'AND tx_powermailcond_rules.pid=###CURRENT_PID### ORDER BY tx_powermailcond_rules.uid',
-                               'foreign_field' => 'conditions',
-                               'maxitems' => 99,
-                               'appearance' => array(
-                                       'collapseAll' => 1,
-                                       'expandSingle' => 1,
-                                       'useSortable' => 1,
-                                       'newRecordLinkAddTitle' => 1,
-                                       'newRecordLinkPosition' => 'both',
-                               ),
-                       )
-               ),
-               'conjunction' => Array (                
-                       'exclude' => 1,         
-                       'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.conjunction',           
-                       'config' => Array (
-                               'type' => 'select',
-                               'items' => Array (
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.conjunction.I.1', 'OR'), // OR
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_conditions.conjunction.I.0', 'AND'), // AND
-                               ),
-                               'size' => 1,    
-                               'maxitems' => 1,
-                       )
-               ),
-       ),
-       'types' => array (
-               '0' => array('showitem' => '--palette--;;1, targetField, --palette--;;2, rules, conjunction, sys_language_uid, l18n_parent, l18n_diffsource')
-       ),
-       'palettes' => array (
-               '1' => array('showitem' => 'title, starttime, endtime, hidden'),
-               '2' => array('showitem' => 'actions, filterSelectField')
-       )
-);
-
-
-
-$TCA['tx_powermailcond_rules'] = array (
-       'ctrl' => $TCA['tx_powermailcond_rules']['ctrl'],
-       'interface' => array (
-               'showRecordFieldList' => 'hidden,startField,ops,condstring,equalField'
-       ),
-       'feInterface' => $TCA['tx_powermailcond_rules']['feInterface'],
-       'columns' => array (
-               'hidden' => array (             
-                       'exclude' => 1,
-                       'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
-                       'config'  => array (
-                               'type'    => 'check',
-                               'default' => '0'
-                       )
-               ),
-               'title' => Array (              
-                       'exclude' => 1,         
-                       'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.title',              
-                       'config' => Array (
-                               'type' => 'input',      
-                               'size' => '30',
-                       )
-               ),
-               'startField' => Array (         
-                       'exclude' => 1,         
-                       'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.startField',         
-                       'config' => Array (
-                               'type' => 'select',
-                               'items' => Array (
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.startField.I.0', '0'),
-                               ),
-                               'itemsProcFunc' => 'tx_powermailcond_fields_be->fieldname',
-                               'itemsProcFuncValue' => '"text","textarea","select","radio","check"', // allow only this types of fields in selector
-                               'size' => 1,    
-                               'maxitems' => 1,
-                               'eval' => 'required'
-                       )
-               ),
-               'ops' => Array (
-                       'exclude' => 1,         
-                       'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator',           
-                       'config' => Array (
-                               'type' => 'select',
-                               'items' => Array (
-                                       //Array('', ''), // empty
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.operators', '--div--'), // title operators
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.0', '0'), // is set
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.1', '1'), // is not set
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.operatorsComparisonValue', '--div--'), // title operatorsComparisonValue
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.2', '2'), // contains
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.3', '3'), // contains not
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.4', '4'), // is
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.5', '5'), // is not
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.6', '6'), // is greater than
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.7', '7'), // is less than
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.operatorsComparisonField', '--div--'), // title operatorsComparisonField
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.8', '8'), // contains value from field
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.operator.I.9', '9'), // contains not value from field
-                               ),
-                               'size' => 1,    
-                               'maxitems' => 1
-                       )
-               ),
-               'condstring' => Array (
-                       'exclude' => 1,         
-                       'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.condstring',         
-                       'config' => Array (
-                               'type' => 'text',
-                               'cols' => '30', 
-                               'rows' => '2',
-                       ),
-                       'displayCond' => 'FIELD:ops:IN:2,3,4,5,6,7' // show only if ops value is greater than 1
-               ),
-               'equalField' => Array (         
-                       'exclude' => 1,         
-                       'label' => 'LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.equalField',         
-                       'config' => Array (
-                               'type' => 'select',
-                               'items' => Array (
-                                       Array('LLL:EXT:powermail_cond/locallang_db.xml:tx_powermailcond_rules.equalField.I.0', '0'),
-                               ),
-                               'itemsProcFunc' => 'tx_powermailcond_fields_be->fieldname',     
-                               'itemsProcFuncValue' => '"text","textarea","select","radio"', // allow only this types of fields in selector
-                               'size' => 1,    
-                               'maxitems' => 1
-                       ),
-                       'displayCond' => 'FIELD:ops:IN:8,9' // show only if ops value is greater than 1
-               ),
-       ),
-       'types' => array (
-               '0' => array('showitem' => '--palette--;;1,startField,--palette--;;2')
-       ),
-       'palettes' => array (
-               '1' => array('showitem' => 'title, hidden'),
-               '2' => array('showitem' => 'ops,condstring,equalField')
-       )
-);
-?>
\ No newline at end of file