本文整理汇总了PHP中CI_Input::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP CI_Input::__construct方法的具体用法?PHP CI_Input::__construct怎么用?PHP CI_Input::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CI_Input
的用法示例。
在下文中一共展示了CI_Input::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
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);
}
}
示例2: __construct
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);
}
}
}
}
示例3: __construct
public function __construct()
{
$this->_POST_RAW = $_POST;
//clone raw post data
parent::__construct();
}
示例4:
function __construct()
{
parent::__construct();
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->is_ajax_request();
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->_security =& load_class('Security');
}
示例7:
function __construct()
{
parent::__construct();
$this->method = $this->server('REQUEST_METHOD');
$this->data = file_get_contents('php://input');
}