getComponent()->getSource()->getConfig(); $url = $url['properties']['company_url']; break; } if ($url == '') { return; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_TIMEOUT, '30'); curl_exec($ch); curl_close($ch);