Login   Register  
PHP Classes
elePHPant
Icontem

Class: setTimeout and setInterval

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sam Shull  >  setTimeout and setInterval  >  Download .tar.gz .zip  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: setTimeout and setInterval
Base name: callback_timers
Description: Call a function after a period of time
Related classes: , , ,
Version: 0.5
PHP version: 5.0
License: MIT/X Consortium License
All time users: 1043 users
All time rank: 2896
Week users: 1 user
Week rank: 2467
Picture of Sam Shull
Author: Sam Shull is available for providing paid consulting. Contact Sam Shull .
Packages: 9 Browse this author's classes Browse this author's classes
Country: United States United States - PHP jobs in United States
Age: 35
All time rank: 40744 in United States United States
Week rank: 519 Down58 in United States United States Down
Innovation award
Innovation award
Nominee: 8x


  Detailed description  
This class can be used to make PHP call a function after a period of time.

It can register one or more callback functions that should be called after a given timeout value or every time after a given period of time elapses.

The class registers a single callback function to handle PHP tick calls. That function takes care of calling all registered timer callback functions.

 

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Time and Date Time and date values, formats and conversion View top rated classes
Group folder image Language Constructs to assist in the language control View top rated classes

  Rate classes User ratings   Applications   Files Files  

  Innovation Award  
PHP Programming Innovation award nominee
August 2009
Number 7
Some applications have scripts that need to execute tasks that take a long time to execute.

In some cases, it is convenient to execute code periodically during the execution of such long tasks, like for instance to update information about the tasks' progress.

This class provides a generic solution for regularly calling application defined code during the execution of a long task.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this 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 Timers.class.php Class The class and function definition file
Accessible without login Plain text file Timers_test.php Example An example of how the timers are implemented and used.
Accessible without login Plain text file Timers_test2.php Example An additional portion of the example
Accessible without login Plain text file Timers_test3.php Example An additional portion of the example

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