[TYPO3-core] RFC #12154: Improve flashmessages API

Rupert Germann rupi at gmx.li
Sun Oct 11 17:57:18 CEST 2009


hi

I updated the documentation of flashmessages
http://wiki.typo3.org/index.php/File:Flash_messages_v2.odt
http://wiki.typo3.org/index.php/Pending_Documentation

greets
rupert


Rupert Germann schrieb:
> FYI: the attached patch have been committed to trunk rev 6133
> 
> changes:
> 
> - renamed class t3lib_MessageQueue to t3lib_FlashMessageQueue
> - renamed function t3lib_FlashMessageQueue::getMessages() to 
> t3lib_FlashMessageQueue::getAllMessagesAndFlush()
> - renamed function t3lib_FlashMessage::getStoreInSession() to
> t3lib_FlashMessage::isSessionMessage()
> - changed all occurences of the affected classes and functions in the 
> core accordingly.
> 
> greets
> rupert
> 
> 
> Rupert Germann schrieb:
>> FYI: committed to trunk rev 6125
>>
>> changed documentation uploaded to:
>> http://wiki.typo3.org/index.php/Pending_Documentation#doc_core_api
>> http://wiki.typo3.org/index.php/File:Flash_messages_v2.odt
>>
>>
>> greets
>> rupert
>>
>>
>> Rupert Germann schrieb:
>>> Hi,
>>>
>>> this is a SVN patch request (second try ;-) ).
>>>
>>> Type: clean-up/improvement
>>>
>>> Bugtracker references:
>>> http://bugs.typo3.org/view.php?id=12154
>>>
>>> Branches: Trunk
>>>
>>> Problem:
>>> The current handling of the message queue for flashmessages happens 
>>> in template.php and is quite unflexible.
>>> Storing the messages in the user session is very performance 
>>> intensive and it is not needed in all cases.
>>>
>>> Solution:
>>> the patch adds a new class which handles the message queue 
>>> (t3lib_MessageQueue). All message-handling functions from 
>>> template.php are moved to t3lib_MessageQueue.
>>> the patch also extends the flashmessages object by a parameter which 
>>> configures whether the message is stored in the session (these 
>>> messages will survive redirects) or store them in the messagequeue 
>>> object (default).
>>>
>>>
>>> greets
>>> rupert
>>>
> 


More information about the TYPO3-team-core mailing list