本文整理汇总了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");
}
示例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");
}
示例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");
}
}
}
示例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");
}
示例5:
function __construct($name, $fname, $age, $salary, $passwd, $categorySales){
parent::__construct($name, $fname, $age, $salary, $passwd);
$this->categorySales = $categorySales;
}
示例6: __construct
public function __construct()
{
parent::__construct();
}
示例7: __construct
public function __construct($host, $port, $opts = array())
{
parent::__construct("hdp://{$host}:{$port}", $opts);
$this->name = "hprose";
$this->_hprose = new \Bridge\HproseWorkermanService($this);
}
示例8: array
function __construct($core, $tasks = array(), $autosubmit = true)
{
$this->tasks = $tasks;
$this->autosubmit = $autosubmit;
parent::__construct($core);
}
示例9:
function __construct($config)
{
parent::__construct($config);
$this->register_handler("do_get_testphp_example_v1");
$this->register_handler("do_post_testphp_example_v1");
}