Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 public static function requestExternalUrl($url)
 {
     return Service\Curl::request(array('url' => $url));
 }