72 protected function init() {
89 if (is_array($this->CB)) {
91 $clipObj->initializeClipboard();
92 if ($this->CB[
'paste']) {
93 $clipObj->setCurrentPad($this->CB[
'pad']);
94 $this->file = $clipObj->makePasteCmdArray_file($this->CB[
'paste'], $this->file);
96 if ($this->CB[
'delete']) {
97 $clipObj->setCurrentPad($this->CB[
'pad']);
98 $this->file = $clipObj->makeDeleteCmdArray_file($this->file);
111 $this->fileProcessor->init(array(),
$GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'fileExtensions']);
112 $this->fileProcessor->setActionPermissions();
113 $this->fileProcessor->dontCheckForUnique = $this->overwriteExistingFiles ? 1 : 0;
117 if ($httpHost != $refInfo[
'host'] && $this->vC !=
$GLOBALS[
'BE_USER']->veriCode() && !
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'doNotCheckReferer'] &&
$GLOBALS[
'CLIENT'][
'BROWSER'] !=
'flash') {
118 $this->fileProcessor->writeLog(0, 2, 1,
'Referrer host "%s" and server host "%s" did not match!', array($refInfo[
'host'], $httpHost));
120 $this->fileProcessor->start($this->file);
121 $this->fileData = $this->fileProcessor->processData();
133 $this->fileProcessor->pushErrorMessagesToFlashMessageQueue();
135 if ($this->redirect) {
153 $errors = $this->fileProcessor->getErrorMessages();
154 if (count($errors)) {
155 $ajaxObj->setError(implode(
',', $errors));
157 $flatResult = array();
158 foreach ($this->fileData as $action => $results) {
159 foreach ($results as
$result) {
160 if (is_array($result)) {
161 foreach ($result as $subResult) {
169 $ajaxObj->addContent(
'result', $flatResult);
170 if ($this->redirect) {
171 $ajaxObj->addContent(
'redirect', $this->redirect);
173 $ajaxObj->setContentFormat(
'json');
195 } elseif (
$result instanceof \
TYPO3\CMS\Core\Resource\Folder) {
processAjaxRequest(array $params, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
static getIndpEnv($getEnvName)
flattenResultDataValue($result)
static makeInstance($className)
static mapFileExtensionToSpriteIconClass($fileExtension)
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
static setUpdateSignal($set='', $params='')
static redirect($url, $httpStatus=self::HTTP_STATUS_303)
static sanitizeLocalUrl($url='')
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
if($ajaxRegistryEntry !==NULL) $ajaxObj