protected function getUrl(array $c_opts = null) { if (!isset($c_opts['url'])) { $c_opts['url'] = $this->data_url; } return \PVL\Service\Curl::request($c_opts); }
protected function getUrl($c_opts = null) { if ($c_opts === null) { $c_opts = array(); } if (!isset($c_opts['url'])) { $c_opts['url'] = $this->url; } if (!isset($c_opts['timeout'])) { $c_opts['timeout'] = 4; } return \PVL\Service\Curl::request($c_opts); }
public static function requestExternalUrl($url) { return Service\Curl::request(array('url' => $url)); }