CI_Input::method()

method([$upper = FALSE]) Parameters: $upper (bool) – Whether to return the request method name in upper or lower case Returns: HTTP request method Return type: string Returns the $_SERVER['REQUEST_METHOD'], with the option to set it in uppercase or lowercase. echo $this->input->method(TRUE); // Outputs: POST echo $this->input->method(FALSE); // Outputs: post echo $this->input->method(); // Outputs: post

CI_Input::is_cli_request()

is_cli_request() Returns: TRUE if it is a CLI request, FALSE if not Return type: bool Checks to see if the application was run from the command-line interface. Note This method checks both the PHP SAPI name currently in use and if the STDIN constant is defined, which is usually a failsafe way to see if PHP is being run via the command line. $this->input->is_cli_request() Note This method is DEPRECATED and is now just an alias for the is_cli() function.

CI_Input::input_stream()

input_stream([$index = NULL[, $xss_clean = NULL]]) Parameters: $index (mixed) – Key name $xss_clean (bool) – Whether to apply XSS filtering Returns: Input stream array if no parameters supplied, otherwise the specified value if found or NULL if not Return type: mixed This method is identical to get(), post() and cookie(), only it fetches the php://input stream data.

CI_Image_lib::watermark()

watermark() Returns: TRUE on success, FALSE on failure Return type: bool Creates a watermark over an image, please refer to the Watermarking an Image section for more info.

CI_Input::get_post()

get_post($index[, $xss_clean = NULL]) Parameters: $index (string) – GET/POST parameter name $xss_clean (bool) – Whether to apply XSS filtering Returns: GET/POST value if found, NULL if not Return type: mixed This method works the same way as post_get() only it looks for GET data first. $this->input->get_post(‘some_data’, TRUE); Note This method used to act EXACTLY like post_get(), but it’s behavior has changed in CodeIgniter 3.0.

CI_Input

class CI_Input $raw_input_stream Read only property that will return php://input data as is. The property can be read multiple times. post([$index = NULL[, $xss_clean = NULL]]) Parameters: $index (mixed) – POST parameter name $xss_clean (bool) – Whether to apply XSS filtering Returns: $_POST if no parameters supplied, otherwise the POST value if found or NULL if not Return type: mixed The first parameter will contain the name of the POST item you are looking for: $this->i

CI_Input::cookie()

cookie([$index = NULL[, $xss_clean = NULL]]) Parameters: $index (mixed) – COOKIE name $xss_clean (bool) – Whether to apply XSS filtering Returns: $_COOKIE if no parameters supplied, otherwise the COOKIE value if found or NULL if not Return type: mixed This method is identical to post() and get(), only it fetches cookie data: $this->input->cookie('some_cookie'); $this->input->cookie('some_cookie, TRUE); // with XSS filter To return an array of multiple cookie values, pa

CI_Input::get()

get([$index = NULL[, $xss_clean = NULL]]) Parameters: $index (mixed) – GET parameter name $xss_clean (bool) – Whether to apply XSS filtering Returns: $_GET if no parameters supplied, otherwise the GET value if found or NULL if not Return type: mixed This method is identical to post(), only it fetches GET data. $this->input->get('some_data', TRUE); To return an array of all GET items call without any parameters. To return all GET items and pass them through the XSS filter set

CI_Image_lib

class CI_Image_lib initialize([$props = array()]) Parameters: $props (array) – Image processing preferences Returns: TRUE on success, FALSE in case of invalid settings Return type: bool Initializes the class for processing an image. resize() Returns: TRUE on success, FALSE on failure Return type: bool The image resizing method lets you resize the original image, create a copy (with or without resizing), or create a thumbnail image. For practical purposes there is no differenc

CI_Image_lib::initialize()

initialize([$props = array()]) Parameters: $props (array) – Image processing preferences Returns: TRUE on success, FALSE in case of invalid settings Return type: bool Initializes the class for processing an image.