00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00051 require('init.php');
00052 require('template.php');
00053 $LANG->includeLLFile('EXT:lang/locallang_alt_doc.xml');
00054 require_once (PATH_t3lib.'class.t3lib_tceforms.php');
00055
00056 require_once (PATH_t3lib.'class.t3lib_clipboard.php');
00057
00058 require_once (PATH_t3lib.'class.t3lib_tcemain.php');
00059 require_once (PATH_t3lib.'class.t3lib_loaddbgroup.php');
00060 require_once (PATH_t3lib.'class.t3lib_transferdata.php');
00061
00062
00063 t3lib_BEfunc::lockRecords();
00064
00065
00066
00067 class SC_alt_doc_ajax {
00068 var $content;
00069 var $retUrl;
00070 var $R_URL_parts;
00071 var $R_URL_getvars;
00072 var $R_URI;
00073
00079 var $tceforms;
00080 var $localizationMode;
00081 var $ajax = array();
00082
00083 function init() {
00084 global $BE_USER;
00085
00086
00087 $this->ajax = t3lib_div::_GP('ajax');
00088
00089
00090
00091
00092
00093
00094 $this->MOD_MENU = array(
00095 'showPalettes' => '',
00096 'showDescriptions' => '',
00097 'disableRTE' => ''
00098 );
00099
00100 $this->MCONF['name']='xMOD_alt_doc.php';
00101
00102 $this->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU, t3lib_div::_GP('SET'), $this->MCONF['name']);
00103
00104 $this->tceforms = t3lib_div::makeInstance('t3lib_TCEforms');
00105 $this->tceforms->initDefaultBEMode();
00106 $this->tceforms->palettesCollapsed = !$this->MOD_SETTINGS['showPalettes'];
00107 $this->tceforms->disableRTE = $this->MOD_SETTINGS['disableRTE'];
00108 $this->tceforms->enableClickMenu = TRUE;
00109 $this->tceforms->enableTabMenu = TRUE;
00110
00111
00112 $this->tceforms->clipObj = t3lib_div::makeInstance('t3lib_clipboard');
00113 $this->tceforms->clipObj->initializeClipboard();
00114
00115
00116 if ($BE_USER->uc['edit_showFieldHelp']!='text' && $this->MOD_SETTINGS['showDescriptions']) $this->tceforms->edit_showFieldHelp='text';
00117 }
00118
00126 function main() {
00127 header('Expires: Fri, 27 Nov 1981 09:04:00 GMT');
00128 header('Last-Modified: '.gmdate("D, d M Y H:i:s").' GMT');
00129 header('Cache-Control: no-cache, must-revalidate');
00130 header('Pragma: no-cache');
00131 header('Content-type: text/javascript; charset=utf-8');
00132
00133 $this->content = '';
00134
00135 if (is_array($this->ajax) && count($this->ajax)) {
00136
00137 $method = array_shift($this->ajax);
00138
00139
00140 if (!in_array($method, array('createNewRecord', 'setExpandedCollapsedState'))) {
00141 return false;
00142 }
00143
00144
00145 $this->tceforms->inline->initForAJAX($method, $this->ajax);
00146 $this->content = call_user_func_array(
00147 array(&$this->tceforms->inline, $method),
00148 $this->ajax
00149 );
00150 }
00151 }
00152
00158 function printContent() {
00159 echo $this->content;
00160 }
00161 }
00162
00163
00164 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_doc_ajax.php']) {
00165 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_doc_ajax.php']);
00166 }
00167
00168
00169
00170
00171
00172
00173
00174 $SOBE = t3lib_div::makeInstance('SC_alt_doc_ajax');
00175
00176
00177 $SOBE->init();
00178 $SOBE->main();
00179 $SOBE->printContent();
00180
00181 ?>
This documentation has been generated automatically from TYPO3 source code using
Doxygen and is provided as is by
Cast Iron Coding
as a courtesy to other TYPO3 developers and users. Please consider
Cast Iron Coding — a full-service web development
agency in Portland, Oregon specializing in TYPO3 extension development — for all of your TYPO3 development and consulting needs!