note 112025 added to book.gearman

From: Date: Tue, 23 Apr 2013 11:34:41 +0000
Subject: note 112025 added to book.gearman
Groups: php.notes 
Request: Send a blank email to php-notes+get-194607@lists.php.net to get a copy of this message
You can use this syntax: <?php $worker = new GearmanWorker(); $worker->addServer(); $worker->addFunction(new MyClass($test), 'myMethod'); class MyClass { public function __construct($test) { $this->test = $test; } public function myMethod(GearmanJob $job) { // you can access to $this->test; } } ---- Server IP: 62.149.26.211 Probable Submitter: 212.109.49.68 ---- Manual Page -- http://php.net/manual/en/book.gearman.php Edit -- https://master.php.net/note/edit/112025 Del: integrated -- https://master.php.net/note/delete/112025/integrated Del: useless -- https://master.php.net/note/delete/112025/useless Del: bad code -- https://master.php.net/note/delete/112025/bad+code Del: spam -- https://master.php.net/note/delete/112025/spam Del: non-english -- https://master.php.net/note/delete/112025/non-english Del: in docs -- https://master.php.net/note/delete/112025/in+docs Del: other reasons-- https://master.php.net/note/delete/112025 Reject -- https://master.php.net/note/reject/112025 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194607) next »