[TYPO3-mvc] Change storage backend / extending Typo3DbBackend

Thomas Heilmann heilmann at mindscreen.de
Tue Feb 2 15:42:18 CET 2010


Hi Dennis,

thanks for your hints, that sounds good! I will try it.

Regards,
Thomas

Am 29.01.2010 14:39, schrieb dennis ahrens:
> Hi Thomas,
> 
> if u like to use your own StorageBackend for all your models have a
> look to the method:
> 
> Tx_Extbase_Dispatcher::getPersistenceManager();
> 
> There the Typo3DbBackend is instantiated and setted for all need obejcts.
> The PersistenceManager is a Singleton - if your write a Service that
> fetches this Object you can build up a instance of your
> StorageBackend-Class and inject this Object to the PersistenceManager.
> 
> have a look at this Mailing-List-Topic:
> Tx_Extbase_Persistence_Backend::injectStorageBackend() missing
> 
> i'm not sure if this solution is really clean - but for now i have no
> better idea and it works for me.
> 
> regards
> Dennis
> 
> 2010/1/24 Thomas Heilmann | mindscreen <heilmann at mindscreen.de>:
>> Hello everbody,
>>
>> I am making my first steps with extbase and have a question regarding
>> the persistence storage backend. Some table fields in my database are
>> AES encrypted. The decryption and encryption of the tables should be
>> moved out of regular extension code into a deeper level. Digging a
>> little bit into the persistence classes I found various parse functions
>> in the Typo3DbBackend (parseQuery etc.). As the SQL statement parts are
>> stored in handy arrays there, perhaps this would be a good place to add
>> the AES functions.
>>
>> But now my question: Is there a nice way to change the storage backend
>> used by extbase? If I coded an extension the old way, I would write an
>> XClass of Typo3DbBackend; I could do that with extbase, too -- but as
>> there is no XClass-Code in extbase, I guess this is not considered best
>> practice.
>>
>> Thank you for your hints!
>> Thomas
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>



More information about the TYPO3-project-typo3v4mvc mailing list