get_post() public method

Fetch an item from GET data with fallback to POST
public get_post ( string $index, boolean $xss_clean = NULL ) : mixed
$index string Index for item to be fetched from $_GET or $_POST
$xss_clean boolean Whether to apply XSS filtering
return mixed
Beispiel #1
0
 /**
  * 重写Input的get_post方法
  *
  * @param string $index
  * @param bool $xss_clean
  * @return string
  */
 public function get_post($index, $xss_clean = FALSE)
 {
     $this->set_urls();
     return parent::get_post($index, $xss_clean);
 }