mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
timeout can be passed to constructor
This commit is contained in:
parent
06e9f41ec1
commit
8940a3b338
|
@ -91,11 +91,11 @@ class SeedDMS_ConversionServiceExec extends SeedDMS_ConversionServiceBase {
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
public function __construct($from, $to, $cmd) {
|
public function __construct($from, $to, $cmd, $timeout=5) {
|
||||||
$this->from = $from;
|
$this->from = $from;
|
||||||
$this->to = $to;
|
$this->to = $to;
|
||||||
$this->cmd = $cmd;
|
$this->cmd = $cmd;
|
||||||
$this->timeout = 5;
|
$this->timeout = ((int) $timeout) ? (int) $timeout : 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getInfo() {
|
public function getInfo() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user