[ Index ] |
|
Code source de dotProject 2.1 RC1 |
[Code source] [Imprimer] [Statistiques]
Event handling queue class.
Poids: | 211 lignes (6 kb) |
Inclus ou requis: | 2 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
EventQueue:: (8 méthodes):
EventQueue()
add()
remove()
find()
execute()
scan()
update_event()
commit_updates()
Classe: EventQueue - X-Ref
EventQueue() X-Ref |
Pas de description |
add($callback, &$args, $module, $sysmodule = false, $id = 0, $type = '', $date = 0, $repeat_interval = 0, $repeat_count = 1) X-Ref |
Add an event to the queue. The callback can either be the name of a global function or the name of a class param: mixed $callback function to call when this event is due. param: mixed $args Arguments to pass to the callback param: string $module module, or originator of the event param: string $type type of event (to allow searching) param: integer $id id of originating event. param: integer $date Seconds since 1970 to trigger event. param: integer $repeat_interval seconds to repeat param: integer $repeat_count number of times to repeat return: integer queue id |
remove($id) X-Ref |
Remove the event from the queue. |
find($module, $type, $id = null) X-Ref |
Find a queue record (or records) based upon the |
execute(&$fields) X-Ref |
Execute a queue entry. This involves resolving the method to execute and passing the arguments to it. |
scan() X-Ref |
Scans the queue for entries that are older than current date. If it finds one it tries to execute the attached function. If successful, the entry is removed from the queue, or if it is a repeatable event the repeat time is added to the start time and the repeat count (if set) is decremented. |
update_event(&$fields) X-Ref |
Pas de description |
commit_updates() X-Ref |
Pas de description |
Généré le : Sun Feb 18 19:46:52 2007 | par Balluche grâce à PHPXref 0.7 |