public static function make(quiz $quizobj, $timenow, $canignoretimelimits) { if ($quizobj->get_num_attempts_allowed() == 0) { return null; } return new self($quizobj, $timenow); }