[TYPO3-dev] Data exchange between USER/USER_INT
Steffen Kamper
steffen at sk-typo3.de
Mon Dec 3 22:49:38 CET 2007
Hi Ernesto,
"Ernesto Baschny [cron IT]" <ernst at cron-it.de> schrieb im Newsbeitrag
news:mailman.1.1196711295.27244.typo3-dev at lists.netfielders.de...
> Hi,
>
> Steffen Kamper wrote: on 03.12.2007 14:16:
>
>>> Steffen Kamper schrieb:
>>>> You're idea is good and imho the only way to get the data. Session is
>>>> the
>>>> wrong way because multiple windows. So the central way is the
>>>> TSFE-Object.
>>>> But in this case the USER_INT has to be on the same page, what happens
>>>> if
>>>> you are on a different page, is the data in TSFE accessible ?
>>> Yes, this works only if both objects are on the same page. If plugins
>>> are on differen pages or if one object is generating data for the whole
>>> site (e.g. a plugin that shows the wheather and is visible on every page
>>> of a website), an own caching is required.
>
>> i would vote for a general cache solution so any extension (USER) can
>> write
>> data to. Then it's not limited in any way.
>> e.g. new table cache_extensiondata where data is written to
>>
>> vg Steffen
>
> An USER caching some data doesn't seems needed to me (as its output will
> already be cached. You mean an USER_INT caching data, right?
>
no - initial idea was that a USER_INT getting data from USER via TSFE-var.
So your hint is good, i'm not used with it. But storeHash could be
"dangerous" if cache was emptied, then there is no initial data.
So if you want to be ensure you must call a method of the USER-Ext to fetch
it.
This brings me to the idea of a small service an extension could have to
deliver the needed vars. The advantage is that the service could be called
everywhere.
vg Steffen
More information about the TYPO3-dev
mailing list