Voodoo\Core\Http\Request::getParams PHP Méthode

getParams() public static méthode

Return all the params
public static getParams ( ) : Array
Résultat 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

Exemple #1
0
 /**
  * Return all the request params of GET and POST
  *
  * @return Array
  */
 public function getParams()
 {
     return Http\Request::getParams();
 }