CI_Zip::add_data()

add_data($filepath[, $data = NULL]) Parameters: $filepath (mixed) – A single file path or an array of file => data pairs $data (array) – File contents (ignored if $filepath is an array) Return type: void Adds data to the Zip archive. Can work both in single and multiple files mode. When adding a single file, the first parameter must contain the name you would like given to the file and the second must contain the file contents: $name = 'mydata1.txt'; $data = 'A Data String!'; $thi

CI_Zip

class CI_Zip $compression_level = 2 The compression level to use. It can range from 0 to 9, with 9 being the highest and 0 effectively disabling compression: $this->zip->compression_level = 0; add_data($filepath[, $data = NULL]) Parameters: $filepath (mixed) – A single file path or an array of file => data pairs $data (array) – File contents (ignored if $filepath is an array) Return type: void Adds data to the Zip archive. Can work both in single and multiple files m

CI_Xmlrpc::timeout()

timeout($seconds = 5) Parameters: $seconds (int) – Timeout in seconds Return type: void Set a time out period (in seconds) after which the request will be canceled: $this->xmlrpc->timeout(6);

CI_Xmlrpc::server()

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 server to which a request is to be sent: $this->xmlrpc->server('http://www.sometimes.com/pings.php', 80); Basic HTTP authentication is also supported, simply add it to the server URL: $this->xmlrpc->server

CI_Xmlrpc::send_request()

send_request() Returns: TRUE on success, FALSE on failure Return type: bool The request sending method. Returns boolean TRUE or FALSE based on success for failure, enabling it to be used conditionally.

CI_Xmlrpc::send_error_message()

send_error_message($number, $message) Parameters: $number (int) – Error number $message (string) – Error message Returns: XML_RPC_Response instance Return type: XML_RPC_Response This method lets you send an error message from your server to the client. First parameter is the error number while the second parameter is the error message. return $this->xmlrpc->send_error_message(123, 'Requested data not available');

CI_Xmlrpc::request()

request($incoming) Parameters: $incoming (array) – Request data Return type: void Takes an array of data and builds request to be sent to XML-RPC server: $request = array(array('My Photoblog', 'string'), 'http://www.yoursite.com/photoblog/'); $this->xmlrpc->request($request);

CI_Xmlrpc::method()

method($function) Parameters: $function (string) – Method name Return type: void Sets the method that will be requested from the XML-RPC server: $this->xmlrpc->method('method'); Where method is the name of the method.

CI_Xmlrpc::initialize()

initialize([$config = array()]) Parameters: $config (array) – Configuration data Return type: void Initializes the XML-RPC library. Accepts an associative array containing your settings.

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();