[TYPO3-english] destroy the object

Dawid Pacholczyk dpacholczyk at gmail.com
Thu Jan 13 17:35:33 CET 2011


On 13.01.2011 16:12, Dmitry Dulepov wrote:
> Hi!
>
> Dawid Pacholczyk wrote:
>> I`m using ext_autoload with t3lib_div::makeInstance to create an
>> instance of some object.
>>
>> I want to - after operations that i need to invoke - destroy the object.
>> Is there some smooth way to do that ?
>
> In PHP objects are destroyed when they go out of scope or when you use
> unset($object).
>
I can use - at least I think so - __destruct() method to perform some 
action before it is destroyed.


More information about the TYPO3-english mailing list