[TYPO3-core] RFC: #14041: impexp: Add Hooks

Xavier Perseguers typo3 at perseguers.ch
Sat Apr 10 16:01:57 CEST 2010


On 10/04/10 11:38 , Xavier Perseguers wrote:
> Hi,
>
>>> Just wondering: is there enough data passed to the hook function to
>>> perform the necessary actions? When I find a hook function I could use
>>> I usually find that the data I need is not available inside the
>>> function...
>>
>> yes. Each tcemain action use one array with data which is passed. You
>> also have the reference to tx_impexp to access class vars, no more is
>> needed.
>
> Indeed, that's a problem. ATM, most Core classes use "var" to declare
> members. This means we have no chance to make a variable protected if
> the class provides a hook because somebody perhaps used the given
> reference to the class not to access public methods but to access
> "public" members.

Forgot to write "+1 by reading"

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en


More information about the TYPO3-team-core mailing list