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


PHP Task::__construct方法代码示例

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


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

示例1:

 function __construct(&$settings, $key_id, $value, $expire)
 {
     parent::__construct($settings);
     $this->settings =& $settings;
     $this->key_id = $key_id;
     $this->value = $value;
     $this->expire = $expire;
 }
开发者ID:rongzedong,项目名称:kademlia.php,代码行数:8,代码来源:store.php

示例2:

 function __construct(&$settings, $bootstrap_nodes)
 {
     parent::__construct($settings);
     $this->settings =& $settings;
     $this->bootstrap_nodes = $bootstrap_nodes;
     if (strlen($settings->own_node_id) !== N / 8) {
         $settings->own_node_id = Node::randomNodeId();
     }
 }
开发者ID:rongzedong,项目名称:kademlia.php,代码行数:9,代码来源:bootstrap.php

示例3: __construct

 public function __construct()
 {
     $this->namespace = 'doctrine';
     $this->configDoctrine = $this->getDoctrineConfig();
     $this->configDoctrine = $this->configDoctrine['doctrine'];
     $this->Con = Doctrine_Manager::connection();
     $this->setDefaultOptions();
     parent::__construct();
 }
开发者ID:Nivl,项目名称:Ninaca_1,代码行数:9,代码来源:DoctrineTaskBase.class.php

示例4: __construct

 public function __construct($source, $filename, $input, $params)
 {
     // TODO: find out why java won't work with memory limit set to
     // more plausible values.
     $params['memorylimit'] = 0;
     Task::__construct($source, $filename, $input, $params);
     $this->default_params['interpreterargs'] = array("-Xrs", "-Xss8m", "-Xmx200m");
     // Superclass constructor calls subclasses to get filename if it's
     // not provided, so $this->sourceFileName should now be set correctly.
     $extStart = strpos($this->sourceFileName, '.');
     // Start of extension
     $this->mainClassName = substr($this->sourceFileName, 0, $extStart);
 }
开发者ID:javawolfpack,项目名称:Jobe-Docker,代码行数:13,代码来源:java_task.php

示例5: assert

 function __construct(&$settings, $key_id, $initial_node_list = NULL)
 {
     parent::__construct($settings);
     if ($initial_node_list === NULL) {
         $this->initial_node_list = $settings->kbuckets->closestNodes($key_id, $settings->alpha);
     } else {
         $this->initial_node_list = $initial_node_list;
     }
     assert(get_class($this->initial_node_list) === 'Kademlia\\NodeList');
     $this->settings =& $settings;
     $this->needle_id = Node::hexId2bin($key_id);
     $this->asked_nodes = new NodeList([]);
     $this->found_nodes = new NodeList([]);
     $this->hop = 0;
     $this->values = [];
     $this->previous_distance = NULL;
     $this->min_distance = str_repeat(chr(255), N / 8);
 }
开发者ID:rongzedong,项目名称:kademlia.php,代码行数:18,代码来源:find.php

示例6: __construct

 public function __construct($task_id_, $server_, $applications_)
 {
     Logger::debug('main', 'Starting TASK_remove::__construct for task ' . $task_id_);
     parent::__construct($task_id_, $server_);
     $this->applications = $applications_;
 }
开发者ID:bloveing,项目名称:openulteo,代码行数:6,代码来源:Task_install.class.php

示例7: __construct

 public function __construct($source, $filename, $input, $params)
 {
     Task::__construct($source, $filename, $input, $params);
     $this->default_params['interpreterargs'] = array('-BE');
 }
开发者ID:javawolfpack,项目名称:Jobe-Docker,代码行数:5,代码来源:python3_task.php

示例8: __construct

 public function __construct($source, $filename, $input, $params)
 {
     Task::__construct($source, $filename, $input, $params);
     $this->default_params['compileargs'] = array('-vew', '-Se');
     // stop on first error
 }
开发者ID:javawolfpack,项目名称:Jobe-Docker,代码行数:6,代码来源:pascal_task.php

示例9: __construct

 public function __construct($source, $filename, $input, $params)
 {
     Task::__construct($source, $filename, $input, $params);
     $this->default_params['interpreterargs'] = array('--norc', '--no-window-system', '--silent', '-H');
 }
开发者ID:javawolfpack,项目名称:Jobe-Docker,代码行数:5,代码来源:octave_task.php

示例10:

 function __construct(&$settings, $node)
 {
     parent::__construct($settings);
     $this->node = $node;
 }
开发者ID:rongzedong,项目名称:kademlia.php,代码行数:5,代码来源:ping.php

示例11: __construct

 public function __construct($interval, $cb)
 {
     $this->interval_ = $interval;
     parent::__construct((int) (gettimeofday(true) * 1000) + $this->interval_, $cb);
 }
开发者ID:wedgwood,项目名称:serverbench.php,代码行数:5,代码来源:PeriodicTask.php

示例12: __construct

 /**
  * @param string $name Tasks name
  * @param array $group
  */
 public function __construct($name, $group)
 {
     parent::__construct($name);
     $this->group = $group;
 }
开发者ID:elfet,项目名称:deployer,代码行数:9,代码来源:GroupTask.php

示例13:

 function __construct(&$settings)
 {
     parent::__construct($settings);
 }
开发者ID:rongzedong,项目名称:kademlia.php,代码行数:4,代码来源:task_group.php

示例14: __construct

 public function __construct($client, $response)
 {
     $task_id = get($response, "task_id");
     parent::__construct($client, $task_id);
     $this->response = $response;
 }
开发者ID:deepomatic,项目名称:deepomatic-client-php,代码行数:6,代码来源:Task.php


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