function MY_Input() { parent::__construct(); if ($this->server('REQUEST_METHOD') == 'DELETE') { parse_str(file_get_contents('php://input'), $this->delete); $this->delete = $this->_clean_input_data($this->delete); } elseif ($this->server('REQUEST_METHOD') == 'PUT') { parse_str(file_get_contents('php://input'), $this->put); $this->put = $this->_clean_input_data($this->put); } }
public function __construct() { parent::__construct(); $this->raw = file_get_contents('php://input'); if (!empty($this->raw)) { if ($this->request_method() == 'DELETE') { $this->delete = $this->_sanitize_request($this->raw); } else { if ($this->request_method() == 'put') { $this->put = $this->_sanitize_request($this->raw); } } } }
public function __construct() { $this->_POST_RAW = $_POST; //clone raw post data parent::__construct(); }
function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->is_ajax_request(); }
public function __construct() { parent::__construct(); $this->_security =& load_class('Security'); }
public function __construct() { // make a clone of the raw post data $this->_POST_RAW = $_POST; parent::__construct(); }
function __construct() { parent::__construct(); $this->method = $this->server('REQUEST_METHOD'); $this->data = file_get_contents('php://input'); }
function __construct() { // Call the Model constructor parent::__construct(); }