Login   Register  
PHP Classes
elePHPant
Icontem

Class: Queue Class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Matthew McConnell  >  Queue Class  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Queue Class
Base name: queue_class
Description: Manage a queue of users competing to run a task
Related classes: , , , , , , ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1327 users
All time rank: 2412
Week users: 3 users
Week rank: 1216
Picture of Matthew McConnell
Author: Matthew McConnell <e-mail contact>
Packages: 1 Browse this author's classes Browse this author's classes
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Age: 25
All time rank: 156467 in United Kingdom United Kingdom
Week rank: 994 Up43 in United Kingdom United Kingdom Up


  Detailed description  
This class can be used to manage a queue of users competing to execute a task that can only be run by a single user at a time.

The class stores in a MySQL table the queue of users that want to execute a task.

An entry in the queue table is added for each user that wants to run the task.

While the current user is not the next to run the task, he must wait for his turn.

When the first user in the queue finishes to run the task, its queue entry is deleted to pass the turn to the next user in the queue.

 

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Design Patterns Implementations of well known design patterns View top rated classes

  Rate classes User ratings   Applications   Files Files  

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

  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
HTML file examples.php Example Examples
Plain text file class_queue.php Class Main Class
HTML file documentation.htm Doc. Documentation

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