/** * Method to get remote content * * @access public * @param string URL from remote site * @return string Content from remote site */ public function getRemote($url) { require_once JPATH_COMPONENT . '/lib/remote.class.php'; $remote = new RemoteConnection(); $remote->setUrl($url); $content = $remote->getContent(); return $content; }
public static function registerLogger($loggerId, $conf) { return RemoteConnection::getInstance()->write(el::newLogger($loggerId, $conf)); }