当前位置: 首页>>代码示例>>PHP>>正文


PHP Worker::__construct方法代码示例

本文整理汇总了PHP中Worker::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Worker::__construct方法的具体用法?PHP Worker::__construct怎么用?PHP Worker::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Worker的用法示例。


在下文中一共展示了Worker::__construct方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

 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");
 }
开发者ID:wqx081,项目名称:gearbox,代码行数:8,代码来源:workerTestSync.php

示例2:

 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");
 }
开发者ID:wqx081,项目名称:gearbox,代码行数:9,代码来源:workerTestCancel.php

示例3: foreach

 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");
         }
     }
 }
开发者ID:wqx081,项目名称:gearbox,代码行数:12,代码来源:workerTestAgents.php

示例4:

 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");
 }
开发者ID:wqx081,项目名称:gearbox,代码行数:18,代码来源:workerTestChained.php

示例5:

		function __construct($name, $fname, $age, $salary, $passwd, $categorySales){
			
			parent::__construct($name, $fname, $age, $salary, $passwd);
			
			$this->categorySales = $categorySales;
		}
开发者ID:BETEP2063,项目名称:PHP-lections,代码行数:6,代码来源:oop+extends.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:cxj009,项目名称:php-light-queue,代码行数:4,代码来源:test.php

示例7: __construct

 public function __construct($host, $port, $opts = array())
 {
     parent::__construct("hdp://{$host}:{$port}", $opts);
     $this->name = "hprose";
     $this->_hprose = new \Bridge\HproseWorkermanService($this);
 }
开发者ID:suhanyujie,项目名称:hprose-workerman,代码行数:6,代码来源:HproseWorkermanService.php

示例8: array

 function __construct($core, $tasks = array(), $autosubmit = true)
 {
     $this->tasks = $tasks;
     $this->autosubmit = $autosubmit;
     parent::__construct($core);
 }
开发者ID:tomzx,项目名称:wikimedia-apibot,代码行数:6,代码来源:_generic.php

示例9:

 function __construct($config)
 {
     parent::__construct($config);
     $this->register_handler("do_get_testphp_example_v1");
     $this->register_handler("do_post_testphp_example_v1");
 }
开发者ID:wqx081,项目名称:gearbox,代码行数:6,代码来源:workerTestPhp.php


注:本文中的Worker::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。