本文整理汇总了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;
}
示例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();
}
}
示例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();
}
示例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);
}
示例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);
}
示例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_;
}
示例7: __construct
public function __construct($source, $filename, $input, $params)
{
Task::__construct($source, $filename, $input, $params);
$this->default_params['interpreterargs'] = array('-BE');
}
示例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
}
示例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');
}
示例10:
function __construct(&$settings, $node)
{
parent::__construct($settings);
$this->node = $node;
}
示例11: __construct
public function __construct($interval, $cb)
{
$this->interval_ = $interval;
parent::__construct((int) (gettimeofday(true) * 1000) + $this->interval_, $cb);
}
示例12: __construct
/**
* @param string $name Tasks name
* @param array $group
*/
public function __construct($name, $group)
{
parent::__construct($name);
$this->group = $group;
}
示例13:
function __construct(&$settings)
{
parent::__construct($settings);
}
示例14: __construct
public function __construct($client, $response)
{
$task_id = get($response, "task_id");
parent::__construct($client, $task_id);
$this->response = $response;
}