Login   Register  
PHP Classes
elePHPant
Icontem

Destructor

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Bryan Smith
Name: Bryan Smith <e-mail contact>
Packages: 3 Browse all classes by Bryan Smith Browse all classes by
Country: Canada Canada - PHP jobs in Canada
Age: 34
All time rank: 117833 in Canada Canada
Week rank: 2041 Down53 in Canada Canada Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This class can be used to implement class destructor functionality in a way that it works under PHP 4.

It works as a base class that keeps track of all objects that are created by its subclasses.

If a PHP script attempts to exit before an object is destroyed, a shutdown function is called to explicitly destroy any pending objects.

  Classes of Bryan Smith  >  Destructor  >  Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Destructor
Base name: destructor
Description: Implement class destructors under PHP 4
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1043 users
All time rank: 3096
Week users: 0 users
Week rank: 2282 Equal
 
  Groups   Freshmeat project   Rate classes User ratings  
  Dependents   Applications   Files Files  

  Groups  
Group folder image Language Constructs to assist in the language control View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
November 2005
Number 8
When an object of a class is destroyed, sometimes is necessary to execute maintenance tasks, like for instance freeing resources allocated during the object life time. Usually this is done using destructor functions. However, class destructor functions are not supported under PHP 4.

This class provides an alternative solution that consists on registering a shutdown function that assures that the class destructor function is always called until the end of the current script.

Manuel Lemos

  Freshmeat project  
Project record: destructor
Popularity score: 9.9
Vitality score: 1.0

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (81.2%)
Sufficient (75.0%)
-
Sufficient (75.0%)
-
-
Not sure (55.6%)
1145
Month:
Not yet rated by the users

  Packages that need this class  
Class Dependency Why it is needed
MySQL Database
Required
Cleanup of database class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file DESTRUCTOR.php Class DESTRUCTOR Class
Plain text file Sample.php Example How to use DESTRUCTOR class.

Download all files: destructor.tar.gz destructor.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.