FORMidable RAD Framework

ext_localconf.php

00001 <?php
00002         
00003         if (!defined ("TYPO3_MODE"))    die ("Access denied.");
00004 
00005         define("PATH_formidable", t3lib_extMgm::extPath("ameos_formidable"));
00006         define("PATH_formidableapi", PATH_formidable . "api/class.tx_ameosformidable.php");
00007 
00008         // define XCLASS to t3lib_tsparser
00009         $TYPO3_CONF_VARS['FE']['XCLASS']['t3lib/class.t3lib_tsparser.php'] = PATH_formidable . "res/xclass/class.ux_t3lib_tsparser.php";
00010         $TYPO3_CONF_VARS['BE']['XCLASS']['t3lib/class.t3lib_tsparser.php'] = PATH_formidable . "res/xclass/class.ux_t3lib_tsparser.php";
00011 
00012         // defines the Formidable ajax content-engine ID
00013         $TYPO3_CONF_VARS['FE']['eID_include']['tx_ameosformidable'] = 'EXT:ameos_formidable/remote/formidableajax.php';
00014 
00015         // defines content objects FORMIDABLE (cached) and FORMIDABLE_INT (not cached)
00016         $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][] = array(
00017                 0 => "FORMIDABLE",
00018                 1 => "EXT:ameos_formidable/api/class.user_ameosformidable_cobj.php:user_ameosformidable_cobj",
00019         );
00020 
00021         $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][] = array(
00022                 0 => "FORMIDABLE_INT",
00023                 1 => "EXT:ameos_formidable/api/class.user_ameosformidable_cobj.php:user_ameosformidable_cobj",
00024         );
00025 
00026         // defines the generic CACHED rendering plugin 
00027         t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_ameosformidable_pi1.php','_pi1','list_type',1);
00028 
00029         // defines the generic NOT CACHED rendering plugin 
00030         t3lib_extMgm::addPItoST43($_EXTKEY,'pi2/class.tx_ameosformidable_pi2.php','_pi2','list_type',0);
00031 
00032         if(TRUE/*(TYPO3_MODE === "FE" || (t3lib_div::getIndpEnv("REMOTE_ADDR") !== "192.168.9.254")*/) {
00033 
00034                 if (!defined('PATH_tslib')) {
00035                         if (@is_dir(PATH_site.TYPO3_mainDir.'sysext/cms/tslib/')) {
00036                                 define('PATH_tslib', PATH_site.TYPO3_mainDir.'sysext/cms/tslib/');
00037                         } elseif (@is_dir(PATH_site.'tslib/')) {
00038                                 define('PATH_tslib', PATH_site.'tslib/');
00039                         }
00040                 }
00041 
00042                 if(!isset($GLOBALS["_SESSION"])) {
00043                         session_start();
00044                 }
00045 
00046                 if(!array_key_exists("ameos_formidable", $GLOBALS["_SESSION"])) {
00047 
00048                         $GLOBALS["_SESSION"]["ameos_formidable"] = array();
00049                         $GLOBALS["_SESSION"]["ameos_formidable"]["ajax_services"] = array();
00050                         $GLOBALS["_SESSION"]["ameos_formidable"]["ajax_services"]["tx_ameosformidable"] = array();
00051                         $GLOBALS["_SESSION"]["ameos_formidable"]["ajax_services"]["tx_ameosformidable"]["ajaxevent"] = array();
00052 
00053                         $GLOBALS["_SESSION"]["ameos_formidable"]["hibernate"] = array();
00054 
00055                         $GLOBALS["_SESSION"]["ameos_formidable"]["applicationdata"] = array();
00056                 }
00057                 
00058                 if(!array_key_exists("ameos_formidable", $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"])) {
00059 
00060                         require_once(PATH_formidable . 'ext_emconf.php');
00061 
00062                         $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"] = array(
00063                                 "ext_emconf.php" => $EM_CONF[$_EXTKEY],
00064                                 "declaredobjects" => array(
00065                                         "validators" => array(),
00066                                         "datahandlers" => array(),
00067                                         "datasources" => array(),
00068                                         "renderers" => array(),
00069                                         "renderlets" => array(),
00070                                         "actionlets" => array(),
00071                                 ),
00072                                 "validators" => array(),
00073                                 "datahandlers" => array(),
00074                                 "datasources" => array(),
00075                                 "renderers" => array(),
00076                                 "renderlets" => array(),
00077                                 "actionlets" => array(),
00078                                 "ajax_services" => array(),
00079                                 "context" => array(
00080                                         "forms" => array(),
00081                                         "be_headerdata" => array(),
00082                                 )
00083                         );
00084                 }
00085 
00086                 //require_once(PATH_formidable . 'api/class.tx_ameosformidable.php');
00087 
00088                 $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"]["declaredobjects"]["datasources"] = array(
00089                         "DB"            => array("key" => "ds_db",                      "base" => TRUE),
00090                         "PHPARRAY"      => array("key" => "ds_phparray",        "base" => TRUE),
00091                 );
00092 
00093                 $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"]["declaredobjects"]["actionlets"] = array(
00094                         "MAIL"          => array("key" => "act_mail",           "base" => TRUE),
00095                         "REDIRECT"      => array("key" => "act_redct",          "base" => TRUE),
00096                         "USEROBJ"       => array("key" => "act_userobj",        "base" => TRUE),
00097                         "STEPPER"       => array("key" => "act_stepper",        "base" => TRUE),
00098                 );
00099 
00100                 $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"]["declaredobjects"]["datahandlers"] = array(
00101                         "DB"            => array("key" => "dh_db",              "base" => TRUE),
00102                         "LISTER"        => array("key" => "dh_lister",  "base" => TRUE),
00103                         "RAW"           => array("key" => "dh_raw",             "base" => TRUE),
00104                         "STANDARD"      => array("key" => "dh_std",             "base" => TRUE),
00105                         "VOID"          => array("key" => "dh_void",    "base" => TRUE),
00106                         //"DBMM"        => array("key" => "dh_dbmm",    "base" => TRUE),
00107                 );
00108 
00109                 $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"]["declaredobjects"]["renderers"] = array(
00110                         "STANDARD"      => array("key" => "rdr_std",            "base" => TRUE),
00111                         "BACKEND"       => array("key" => "rdr_be",                     "base" => TRUE),
00112                         "TEMPLATE"      => array("key" => "rdr_template",       "base" => TRUE),
00113                         "VOID"          => array("key" => "rdr_void",           "base" => TRUE),
00114                 );
00115 
00116                 $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"]["declaredobjects"]["renderlets"] = array(
00117                         "BLANK"                 => array("key" => "rdt_blank",                  "base" => TRUE),
00118                         "CHECKBOX"              => array("key" => "rdt_checkbox",               "base" => TRUE),
00119                         "CHECKSINGLE"   => array("key" => "rdt_checksingle",    "base" => TRUE),
00120                         "DATE"                  => array("key" => "rdt_date",                   "base" => TRUE),
00121                         "FILE"                  => array("key" => "rdt_file",                   "base" => TRUE),
00122                         "HIDDEN"                => array("key" => "rdt_hidden",                 "base" => TRUE),
00123                         "LABEL"                 => array("key" => "rdt_lbl",                    "base" => TRUE),
00124                         "LISTBOX"               => array("key" => "rdt_listbox",                "base" => TRUE),
00125                         "PASSTHRU"              => array("key" => "rdt_passthru",               "base" => TRUE),
00126                         "PASSWORD"              => array("key" => "rdt_pwd",                    "base" => TRUE),
00127                         "RADIOBUTTON"   => array("key" => "rdt_radio",                  "base" => TRUE),
00128                         "SUBMIT"                => array("key" => "rdt_submit",                 "base" => TRUE),
00129                         "TEXT"                  => array("key" => "rdt_text",                   "base" => TRUE),
00130                         "BUTTON"                => array("key" => "rdt_button",                 "base" => TRUE),
00131                         "IMAGE"                 => array("key" => "rdt_img",                    "base" => TRUE),
00132                         "URL"                   => array("key" => "rdt_url",                    "base" => TRUE),
00133                         "TEXTAREA"              => array("key" => "rdt_txtarea",                "base" => TRUE),
00134                         //"SUBFORM"             => array("key" => "rdt_subform",                "base" => TRUE),
00135                         "DUMMY"                 => array("key" => "rdt_dummy",                  "base" => TRUE),
00136                         "BOX"                   => array("key" => "rdt_box",                    "base" => TRUE),
00137                         "LINK"                  => array("key" => "rdt_link",                   "base" => TRUE),
00138                         "CHOOSER"               => array("key" => "rdt_chooser",                "base" => TRUE),
00139                         "CAPTCHA"               => array("key" => "rdt_captcha",                "base" => TRUE),
00140                         "DEWPLAYER"             => array("key" => "rdt_dewplayer",              "base" => TRUE),
00141                         "TINYMCE"               => array("key" => "rdt_tinymce",                "base" => TRUE),
00142                         "AJAXLIST"              => array("key" => "rdt_ajaxlist",               "base" => TRUE),
00143                         "TREE"                  => array("key" => "rdt_tree",                   "base" => TRUE),
00144                         "FLEXPLOAD"             => array("key" => "rdt_flexpload",              "base" => TRUE),
00145                         "MODALBOX"              => array("key" => "rdt_modalbox",               "base" => TRUE),
00146                         "TABPANEL"              => array("key" => "rdt_tabpanel",               "base" => TRUE),
00147                         "TAB"                   => array("key" => "rdt_tab",                    "base" => TRUE),
00148                         "I18N"                  => array("key" => "rdt_i18n",                   "base" => TRUE),
00149                         "SEARCHFORM"    => array("key" => "rdt_searchform",             "base" => TRUE),
00150                         "LISTER"                => array("key" => "rdt_lister",                 "base" => TRUE),
00151 
00152                         "UPLOAD"                => array("key" => "rdt_upload",                 "base" => TRUE),
00153                         "SELECTOR"              => array("key" => "rdt_selector",               "base" => TRUE),
00154                 );
00155 
00156                 $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"]["declaredobjects"]["validators"] = array(
00157                         "DB"            => array("key" => "va_db",              "base" => TRUE),
00158                         "STANDARD"      => array("key" => "va_std",             "base" => TRUE),
00159                         "FILE"          => array("key" => "va_file",    "base" => TRUE),
00160                         "PREG"          => array("key" => "va_preg",    "base" => TRUE),
00161                         "NUM"           => array("key" => "va_num",             "base" => TRUE),
00162                         "CAPTCHA"       => array("key" => "va_captcha", "base" => TRUE),
00163                 );
00164 
00165                 /*tx_ameosformidable::declareAjaxService(
00166                         "tx_ameosformidable",           // formidable object handling this service
00167                         "ajaxevent",                            // service key (for this object)
00168                         TRUE,                           // virtualize FE
00169                         FALSE                           // init BE USER
00170                 );
00171                 
00172                 tx_ameosformidable::declareAjaxService(
00173                         "rdt_ajaxlist",         // ajaxlist handling this service
00174                         "content",                      // service key (for this object)
00175                         TRUE,                           // virtualize FE
00176                         FALSE                           // init BE USER
00177                 );*/
00178 
00179                 $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"]["ajax_services"]["tx_ameosformidable"]["ajaxevent"]["conf"] = array(
00180                         "virtualizeFE"  => TRUE,
00181                         "initBEuser"    => FALSE,
00182                 );
00183 
00184                 $GLOBALS["TYPO3_CONF_VARS"]["EXTCONF"]["ameos_formidable"]["ajax_services"]["rdt_ajaxlist"]["content"]["conf"] = array(
00185                         "virtualizeFE"  => TRUE,
00186                         "initBEuser"    => FALSE,
00187                 );
00188         }
00189 ?>


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6