function process($output, $info) { echo "Processing " . $this->url . "\n"; if ($this->test_verbose) { print_r($info); } parent::process($output, $info); }
/** * Adds request to a group * * @throws RollingCurlGroupException * @param RollingCurlGroupRequest|array $request * @return bool */ function add($request) { if ($request instanceof RollingCurlGroupRequest) { $request->setGroup($this); $this->num_requests++; $this->requests[] = $request; } else { if (is_array($request)) { foreach ($request as $req) { $this->add($req); } } else { throw new RollingCurlGroupException("add: Request needs to be of instance RollingCurlGroupRequest"); } } return true; }