[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/ -> Scheduler.php (sommaire)

(pas de description)

Poids: 213 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Horde_Scheduler:: (7 méthodes):
  Horde_Scheduler()
  run()
  serialize()
  unserialize()
  sleep()
  factory()
  singleton()


Classe: Horde_Scheduler  - X-Ref

Horde_Scheduler

$Horde: framework/Scheduler/Scheduler.php,v 1.23.10.8 2005/12/01 15:27:23 chuck Exp $

Horde_Scheduler()   X-Ref
Constructor.

Figures out how we can best sleep with microsecond precision
based on what platform we're running on.

run()   X-Ref
Main loop/action function.


serialize($id = '')   X-Ref
Preserve the internal state of the scheduler object that we are
passed, and save it to the Horde VFS backend. Horde_Scheduler
objects should define __sleep() and __wakeup() serialization
callbacks for anything that needs to be done at object
serialization or deserialization - handling database
connections, etc.

param: string  $id  An id to uniquely identify this scheduler from

unserialize($class, $id = '', $autosave = true)   X-Ref
Restore a Horde_Scheduler object from the cache.

param: string  $class     The name of the Horde_Scheduler object to restore.
param: string  $id        An id to uniquely identify this
param: boolean $autosave  Automatically store (serialize) the returned

sleep($msec)   X-Ref
Platform-independant sleep $msec microseconds.

param: integer $msec  Microseconds to sleep.

factory($driver, $params = null)   X-Ref
Attempts to return a concrete Horde_Scheduler instance based on $driver.

param: mixed $driver  The type of concrete Horde_Scheduler subclass to
param: array $params  A hash containing any additional configuration or
return: Horde_Scheduler  The newly created concrete Horde_Scheduler

singleton($driver, $params = null)   X-Ref
Attempts to return a reference to a concrete Horde_Scheduler
instance based on $driver. It will only create a new instance
if no Horde_Scheduler instance with the same parameters
currently exists.

This should be used if multiple schedulers (and, thus, multiple
Horde_Scheduler instances) are required.

This method must be invoked as: $var = &Horde_Scheduler::singleton()

param: string $driver  The type of concrete Horde_Scheduler subclass to
param: array $params   A hash containing any additional configuration or
return: Horde_Scheduler  The concrete Horde_Scheduler reference, or



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7