Login   Register  
PHP Classes
elePHPant
Icontem

Queue Class: Manage a queue of users competing to run a task

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-05-08 (8 years ago) RSS 2.0 feedStarStarStarStar 65%Total: 1,558 This week: 1All time: 2,323 This week: 1,393Up
Version License Categories  
queue_class 1.0GNU General Public Lice...Databases, Design Patterns
Description Author  

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.

Picture of Matthew McConnell
Name: Matthew McConnell <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: 28
All time rank: 163871 in United Kingdom United Kingdom
Week rank: 1051 Up40 in United Kingdom United Kingdom Up

  Files folder image Files  
File Role Description
Accessible without login HTML file examples.php Example Examples
Plain text file class_queue.php Class Main Class
Accessible without login HTML file documentation.htm Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,558All time:2,323
 This week:1This week:1,393Up
User Ratings User Comments (1)  
 All time
Utility:91%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:65%StarStarStarStar
Rank:439
 
Stupid idea.
1 year ago (Maciej Wnuk)
10%Star