CI_Xmlrpc

class CI_Xmlrpc initialize([$config = array()]) Parameters: $config (array) – Configuration data Return type: void Initializes the XML-RPC library. Accepts an associative array containing your settings. server($url[, $port = 80[, $proxy = FALSE[, $proxy_port = 8080]]]) Parameters: $url (string) – XML-RPC server URL $port (int) – Server port $proxy (string) – Optional proxy $proxy_port (int) – Proxy listening port Return type: void Sets the URL and port number of the ser

CI_Xmlrpc::display_response()

display_response() Returns: Response Return type: mixed Returns the response from the remote server once request is received. The response will typically be an associative array. $this->xmlrpc->display_response();

CI_User_agent::version()

version() Returns: Detected browser version or an empty string Return type: string Returns a string containing the version number of the web browser viewing your site.

CI_Xmlrpc::display_error()

display_error() Returns: Error message string Return type: string Returns an error message as a string if your request failed for some reason. echo $this->xmlrpc->display_error();

CI_User_agent::referrer()

referrer() Returns: Detected referrer or an empty string Return type: string The referrer, if the user agent was referred from another site. Typically you’ll test for this as follows: if ($this->agent->is_referral()) { echo $this->agent->referrer(); }

CI_User_agent::parse()

parse($string) Parameters: $string (string) – A custom user-agent string Return type: void Parses a custom user-agent string, different from the one reported by the current visitor.

CI_User_agent::is_referral()

is_referral() Returns: TRUE if the user agent is a referral, FALSE if not Return type: bool Returns TRUE/FALSE (boolean) if the user agent was referred from another site.

CI_User_agent::is_mobile()

is_mobile([$key = NULL]) Parameters: $key (string) – Optional mobile device name Returns: TRUE if the user agent is a (specified) mobile device, FALSE if not Return type: bool Returns TRUE/FALSE (boolean) if the user agent is a known mobile device. if ($this->agent->is_mobile('iphone')) { $this->load->view('iphone/home'); } elseif ($this->agent->is_mobile()) { $this->load->view('mobile/home'); } else { $this->load->view('web/home

CI_User_agent::is_robot()

is_robot([$key = NULL]) Parameters: $key (string) – Optional robot name Returns: TRUE if the user agent is a (specified) robot, FALSE if not Return type: bool Returns TRUE/FALSE (boolean) if the user agent is a known robot. Note The user agent library only contains the most common robot definitions. It is not a complete list of bots. There are hundreds of them so searching for each one would not be very efficient. If you find that some bots that commonly visit your site are missing

CI_User_agent::languages()

languages() Returns: An array list of accepted languages Return type: array Returns an array of languages supported by the user agent.