[TYPO3-mvc] Interfaces or abstract classes as action arguments?

Dennis Ahrens dennis.ahrens at googlemail.com
Thu Jul 1 11:31:52 CEST 2010


Hi Jochen,

thanks for the clue - i thought the TS configuration only works if i'd 
like to have single table inheritance. Will have a look if i can 
configure all my child classes of e.g. 
Tx_Extbase_DomainObject_AbstractEntity and hand over them to an action.

regards
Dennis

Jochen Rau wrote:
> Hi Dennis.
> 
> On 2010-06-30, Dennis Ahrens <dennis.ahrens at googlemail.com> wrote:
>> what's about having a action that can handle each object of a parent 
>> type given as interface or abtract class. While digging through the code 
>> it seems to me as if this is not possible right now.
>>
>> What do you think of handing over the object class as GET/POST and using 
>> this information for reconstruction - if the action just gives an 
>> interface/abstract class as parameter description?
> 
> This should already work without passing the class via GET/POST. But you have to configure the class hierarchy via TS. Search this list for "Single Table Inheritance" for an example.
> 
> Regards
> Jochen


More information about the TYPO3-project-typo3v4mvc mailing list