Project

General

Profile

Actions

Feature #16974

closed

Provide general AJAX call handler for backend functions/modules with mID technique

Added by Oliver Hader about 17 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-02-11
Due date:
% Done:

0%

Estimated time:
PHP Version:
4
Tags:
Complexity:
Sprint Focus:

Description

This is a feature request for TYPO3 4.2.

To avoid that every backend module has to create and use its own AJAX handler, a general handler class is required. According to the eID of the TYPO3 front-end there shall be a mID (module identifier) for back-end purpose.

The stack to register and enable a module and an action could look like this:
$TYPO3_CONF_VARS['BE']['mID_include'][<package>][<action>] = array(
'handler' => '<handler>',
'required' => array('<php-class-file-1>', '<php-class-file-2>'),
'encodeUTF8' => <boolean>
);

The extended Backus-Naur (eBNF) form of the key 'handler' could look like this:
handler ::= <static> | <instance>
static ::= <class> "::" <function>
instance ::= (<variable>|<class>) "->" {<object> "->"} <method>
variable ::= "$" <valid-php-identifier>
class ::= <valid-php-identifier>
object ::= <valid-php-identifier>
function ::= <valid-php-identifier>
method ::= <valid-php-identifier>
(* @see http://www.php.net/manual/en/language.variables.php *)
valid-php-identifier = ? chars that are valid in PHP for variables ?

Currently affected parts of the TYPO3 core:
- Kasper's new backend functionalities
- AJAX page tree and file tree
- Inline Relational Record Editing

This feature could be used by any backend function of individual user extensions.

(issue imported from #M4966)


Files

alt_doc_ajax.php (10.4 KB) alt_doc_ajax.php Administrator Admin, 2007-02-12 01:54
Actions #1

Updated by Steffen Kamper about 17 years ago

Great ! Another step forward !

I would wish a short introduction or simple examples how to use this.

Actions #2

Updated by Maximo Cuadros about 17 years ago

I uploaded the alt_ajax_doc.php with current code for mID, maybe can be useful make a tx_ajax extension and include in the core.

Best regards.

Actions #3

Updated by Benni Mack over 15 years ago

Hey Maximo,

we now have the ajax.php, the backend AJAX framework including documentation. The new interface is now used everywhere for 4.2. Please adjust and use that interface for your work,.

Actions #4

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF