Voodoo\Core\Http\Request::getParams PHP Method

getParams() public static method

Return all the params
public static getParams ( ) : Array
return Array
    public static function getParams()
    {
        if (!self::$params) {
            $params = array_merge(self::getGetParams(), self::getPostParams());
            self::$params = array_filter($params);
        }
        return self::$params;
    }

Usage Example

コード例 #1
0
ファイル: Controller.php プロジェクト: voodoophp/voodoo
 /**
  * Return all the request params of GET and POST
  *
  * @return Array
  */
 public function getParams()
 {
     return Http\Request::getParams();
 }