[TYPO3-english] destroy the object

Jigal van Hemert jigal at xs4all.nl
Thu Jan 13 18:43:36 CET 2011


Hi,

On 13-1-2011 17:35, Dawid Pacholczyk wrote:
> I can use - at least I think so - __destruct() method to perform some
> action before it is destroyed.

Yes, you can make a destructor to perform actions before an object is 
destroyed. You don't need to call a destructor in your own code, because 
"The destructor method will be called as soon as all references to a 
particular object are removed or when the object is explicitly destroyed 
or in any order in shutdown sequence."

-- 
Kind regards / met vriendelijke groet,

Jigal van Hemert.


More information about the TYPO3-english mailing list