protected function receiveArguments($method = Doozr_Http::REQUEST_METHOD_GET)
    {
        global $_GET, $_POST, $_DELETE, $_PUT;

        // Retrieve parameter/arguments by method
        switch ($method) {

            case Doozr_Http::REQUEST_METHOD_GET:
                /* @var $arguments $_GET */
                $arguments = $_GET;
                break;

            case Doozr_Http::REQUEST_METHOD_POST:
                /* @var $arguments $_POST */
                $arguments = $_POST;
                break;

            case Doozr_Http::REQUEST_METHOD_PUT:
                /* @var $arguments $_PUT */
                $arguments = $_PUT;
                break;

            case Doozr_Http::REQUEST_METHOD_DELETE:
                /* @var $arguments $_DELETE */
                $arguments = $_DELETE;
                break;

            default:
                $arguments = [];
        }

        return $arguments;
    }
protected function receiveArguments($method = Doozr_Http::REQUEST_METHOD_GET)
    {
        global $_GET, $_POST, $_DELETE, $_PUT;

        // Retrieve parameter/arguments by method
        switch ($method) {

            case Doozr_Http::REQUEST_METHOD_GET:
                /* @var $arguments $_GET */
                $arguments = $_GET;
                break;

            case Doozr_Http::REQUEST_METHOD_POST:
                /* @var $arguments $_POST */
                $arguments = $_POST;
                break;

            case Doozr_Http::REQUEST_METHOD_PUT:
                /* @var $arguments $_PUT */
                $arguments = $_PUT;
                break;

            case Doozr_Http::REQUEST_METHOD_DELETE:
                /* @var $arguments $_DELETE */
                $arguments = $_DELETE;
                break;

            default:
                $arguments = [];
        }

        return $arguments;
    }
protected function receiveArguments ( $ method = Doozr_Http :: REQUEST_METHOD_GET ) { global $ _GET , $ _POST , $ _DELETE , $ _PUT ; // Retrieve parameter/arguments by method switch ( $ method ) { case Doozr_Http :: REQUEST_METHOD_GET : /* @var $arguments $_GET */ $ arguments = $ _GET ; break ; case Doozr_Http :: REQUEST_METHOD_POST : /* @var $arguments $_POST */ $ arguments = $ _POST ; break ; case Doozr_Http :: REQUEST_METHOD_PUT : /* @var $arguments $_PUT */ $ arguments = $ _PUT ; break ; case Doozr_Http :: REQUEST_METHOD_DELETE : /* @var $arguments $_DELETE */ $ arguments = $ _DELETE ; break ; default : $ arguments = [ ] ; } return $ arguments ; }
Returns the query parameter for a HTTP method as array.

@param string $method The HTTP method to receive query parameter for.

@author Benjamin Carl <opensource@clickalicious.de>

@return array The query parameter
Returns the query parameter for a HTTP method as array .