kernel/private/rest/classes/request/http_parser.php

Show: inherited
Table of Contents

File containing the ezpRestHttpRequestParser class

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
kernel  
Version
4.6.0  

\ezpRestHttpRequestParser

Package: Default

Custom request parser which creates instances of ezpRestRequest.

The main difference is that GET and POST data is protected from potential cookie pollution. And each category of variable has its own silo, to prevent one from overwriting another.

Parent(s)
\ezcMvcHttpRequestParser

Properties

Propertyprotected\ezpRestRequest  $request= ''

Details
Type
\ezpRestRequest

Methods

methodprotectedcreateRequestObject( ) : \ezpRestRequest

Overload createRequestObject() to make sure ezpRestRequest is created.

Returns
Type Description
\ezpRestRequest
methodprotectedfillContentVariables( ) : array

Extract variables related to content from GET

Returns
Type Description
array
methodprotectedfillVariables( ) : array

Extract variables to be used internally from GET

Returns
Type Description
array
methodprotectedprocessBody( ) : void

Overloads processBody() to add support for body on DELETE in addition to PUT

methodprotectedprocessEncryption( ) : void

Sets the isEncrypted flag if HTTPS is on.

methodprotectedprocessProtocolOverride( ) : void

Adds support for using POST for PUT and DELETE for legacy browsers that does not support these.

If a post param "_method" is set to either PUT or DELETE, then ->protocol is changed to that. ( original protocol is kept on ->originalProtocol param ) Post is used as this is only meant for forms in legacy browsers.

methodprotectedprocessStandardHeaders( ) : void

Overloads parent::processStandardHeaders() to also call processEncryption()

methodprotectedprocessVariables( ) : void

Overloads processVariables() to instead get ezpRest specific variables

Note: ->variables is set with ezpRest specific variables instead of raw $_REQUEST.

Documentation was generated by DocBlox 0.18.1.