downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

GearmanClient::setExceptionCallback> <GearmanClient::setData
[edit] Last updated: Fri, 14 Jun 2013

view this page in

GearmanClient::setDataCallback

(PECL gearman >= 0.6.0)

GearmanClient::setDataCallbackDéfinit une fonction de rappel à appeler lorsqu'un paquet de données est reçu pour une tâche

Description

public bool GearmanClient::setDataCallback ( callable $callback )

Définit une fonction de rappel à appeler lorsqu'un paquet de données est reçu pour une tâche. La fonction de rappel doit accepter un seul argument, un objet GearmanTask.

Liste de paramètres

callback

Une fonction ou une méthode à appeler.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès ou FALSE si une erreur survient.

Voir aussi



add a note add a note User Contributed Notes GearmanClient::setDataCallback - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites