[TYPO3-core] RFC #13313: ExtDirect API

Steffen Kamper info at sk-typo3.de
Tue Jan 26 10:24:37 CET 2010


Hi Sebastian,

Sebastian Kurfürst schrieb:
> Hi Steffen,
> 
>> 1) The API makes json output hardcoded. That's bad if you want to use it
>> with xml or raw text or whatever. So make it configurable.
> Because that is what Ext.Direct expects as API descriptor :-) So I think
> that's no problem at all, as the API generator is for generating the API
> description in a way so that Ext.Direct can read and understand it.
>
ah ok. Yes, that's true.

>> 3) Reflection is used to get number of parameters. Why, for what usage?
>> Reflection is very expansive call and should be used seldomly.
> Do you have another way to get the number of parameters for a method?
> The client-side needs the number of parameters to build the stubs correctly.
> 

i don't get it, what do you mean with "build the stubs" ?
For client side JS don't need to define all args in function. Also if 
you code the functions you'd know how many args you use.
Maybe you can give a short example?

vg Steffen


More information about the TYPO3-team-core mailing list