18 public function __construct($newTimeLimit = 0, $increaseTimeLimit =
true)
20 $startTime = (int)time();
21 $currentTimeLimit = ini_get(
'max_execution_time');
23 if($newTimeLimit > $currentTimeLimit || $newTimeLimit == 0)
29 if($increaseTimeLimit) {
30 $this->finishTime = $startTime + (int)(
$timeLimit);
34 $this->finishTime = $startTime + (int)($newTimeLimit);