コード例 #1
0
ファイル: workerTestSync.php プロジェクト: wqx081/gearbox
 function __construct($config)
 {
     parent::__construct($config);
     $this->register_handler("do_get_testsyncphp_thing_v1");
     $this->register_handler("do_put_testsyncphp_thing_v1");
     $this->register_handler("do_post_testsyncphp_thing_v1");
     $this->register_handler("do_delete_testsyncphp_thing_v1");
 }
コード例 #2
0
ファイル: workerBarn.php プロジェクト: wqx081/gearbox
 function __construct($config)
 {
     parent::__construct($config);
     $this->register_handler("do_get_barn_animal_v1");
     $this->register_handler("do_put_barn_animal_v1");
     $this->register_handler("do_post_barn_animal_v1");
     $this->register_handler("do_delete_barn_animal_v1");
 }
コード例 #3
0
ファイル: workerTestDelay.php プロジェクト: wqx081/gearbox
 function __construct($config)
 {
     parent::__construct($config);
     $this->register_handler("do_get_testdelayphp_counter_v1");
     $this->register_handler("do_post_testdelayphp_counter_v1");
     $this->register_handler("do_delete_testdelayphp_counter_v1");
     $this->register_handler("do_increment_testdelayphp_counter_v1");
 }
コード例 #4
0
ファイル: workerTestCancel.php プロジェクト: wqx081/gearbox
 function __construct($config)
 {
     parent::__construct($config);
     $this->register_handler("do_post_testcancelphp_thing_v1");
     $this->register_handler("do_cancel_testcancelphp_thing_v1");
     $this->register_handler("do_post_testcancelphp_continuation_v1");
     $this->register_handler("do_run_testcancelphp_continuation_v1");
     $this->register_handler("do_finish_testcancelphp_continuation_v1");
 }
コード例 #5
0
ファイル: workerTestAgents.php プロジェクト: wqx081/gearbox
 function __construct($config)
 {
     parent::__construct($config);
     $this->register_handler("do_get_testagentsphp_thing_v1", "thing_handler");
     $this->register_handler("do_post_testagentsphp_thing_v1", "thing_handler");
     $this->register_handler("do_delete_testagentsphp_thing_v1", "thing_handler");
     foreach (array("A", "B", "C", "D") as $resource) {
         foreach (array("reg", "unreg") as $op) {
             $this->register_handler("do_{$op}_testagentsphp_{$resource}_v1", "dummy_handler");
         }
     }
 }
コード例 #6
0
ファイル: workerTestChained.php プロジェクト: wqx081/gearbox
 function __construct($config)
 {
     parent::__construct($config);
     $this->register_handler("do_get_testchainedphp_hello_v1");
     $this->register_handler("do_get_internalphp_hello1_v1");
     $this->register_handler("do_post_testchainedphp_hello2_v1");
     $this->register_handler("do_get_testchainedphp_goodbye_v1");
     $this->register_handler("do_post_testchainedphp_goodbye_v1");
     $this->register_handler("do_append_internalphp_goodbye1_v1");
     $this->register_handler("do_append_internalphp_goodbye2_v1");
     $this->register_handler("do_get_testchainedphp_thing_v1");
     $this->register_handler("do_post_testchainedphp_thing_v1");
     $this->register_handler("do_reg_internalphp_service1_v1");
     $this->register_handler("do_post_testchainedphp_service2_v1");
     $this->register_handler("do_delete_testchainedphp_thing_v1");
     $this->register_handler("do_unreg_internalphp_service1_v1");
     $this->register_handler("do_delete_testchainedphp_service2_v1");
 }
コード例 #7
0
		function __construct($name, $fname, $age, $salary, $passwd, $categorySales){
			
			parent::__construct($name, $fname, $age, $salary, $passwd);
			
			$this->categorySales = $categorySales;
		}
コード例 #8
0
ファイル: test.php プロジェクト: cxj009/php-light-queue
 public function __construct()
 {
     parent::__construct();
 }
コード例 #9
0
 public function __construct($host, $port, $opts = array())
 {
     parent::__construct("hdp://{$host}:{$port}", $opts);
     $this->name = "hprose";
     $this->_hprose = new \Bridge\HproseWorkermanService($this);
 }
コード例 #10
0
ファイル: _generic.php プロジェクト: tomzx/wikimedia-apibot
 function __construct($core, $tasks = array(), $autosubmit = true)
 {
     $this->tasks = $tasks;
     $this->autosubmit = $autosubmit;
     parent::__construct($core);
 }
コード例 #11
0
ファイル: workerTestPhp.php プロジェクト: wqx081/gearbox
 function __construct($config)
 {
     parent::__construct($config);
     $this->register_handler("do_get_testphp_example_v1");
     $this->register_handler("do_post_testphp_example_v1");
 }