Gumbo_Interface_Http_Request



HTTP Request Interface

Author(s): Michael Luster <mluster79@yahoo.com>
License:New BSD License
Copyright:Copyright (c) 2007, iBayou, Michael Luster
Link:http://sourceforge.net/projects/phpgumbo
Version:0.0.1

Interface Methods

public mixed get ( string $field, [string $mode] ) [line 77]

Returns the value of the $_REQUEST field

Parameter(s):

  • (string) $field
  • (string) $mode

[ Top ]
public array getMap ( [bool $reload] ) [line 84]

Returns an array map of User Input

Parameter(s):

  • (bool) $reload :: reloads the map

[ Top ]
public string getMethod ( ) [line 90]

Returns the HTTP request method


[ Top ]
public string getMode ( ) [line 96]

Returns the mode return values will be retrieved from


[ Top ]
public void setMode ( string $mode ) [line 66]

Sets the default return mode (request|cookie|post|get)

Parameter(s):

  • (string) $mode

[ Top ]
public void validate ( [string $field] ) [line 57]

Validates the $_REQUEST variable Input Constraints (if null, validates all)

Parameter(s):

  • (string) $field

[ Top ]
public mixed __get ( string $fld ) [line 41]

Returns the value of the $_REQUEST field based on the mode

Parameter(s):

  • (string) $fld

[ Top ]
public mixed __isset ( string $fld ) [line 48]

Returns if the field exists in the REQUEST array

Parameter(s):

  • (string) $fld

[ Top ]