Project

General

Profile

Actions

Bug #18050

closed

new method to find a specific AjaxCall

Added by Steffen Kamper almost 17 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-01-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

with the new Ajax-Interface there is a new standard for ajaxcalls in BE.
The ajaxID has this syntax:
classname::methodename

In BE many classes use this interface. In any case they have to differ if they are called from Ajax or not, eg to do some additional initialising of needed Objects.

At the moment they do it this way:

if(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) { ... }

But this is wrong, these flags are set if any AjaxCall was started before. So may be this can fail.

For this case i introduce a new static function in t3lib_div::findAjaxCall($classname) which returns true, if the classname is part of the ajaxId, and the determination could be done by this call:

if (t3lib_div::findAjaxCall('SC_alt_db_navframe') { ...}
(issue imported from #M7266)


Files

20080124_findAjaxCall.diff (871 Bytes) 20080124_findAjaxCall.diff Administrator Admin, 2008-01-24 18:31
Actions #1

Updated by Benni Mack over 16 years ago

I think we agreed not integrating this feature, right?

Actions #2

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Closed
  • Target version deleted (0)

No response in over one year => closed.

Actions

Also available in: Atom PDF