Gumbo_Http_Input



Http User Input Class

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

Implements interfaces:

Class Variables

static Gumbo_Interface_Http_Input $_instance =  null [line 40]
boolean $_ignore =  false [line 45]
Gumbo_Interface_Input[] $_input = array () [line 43]

Class Methods

public static Gumbo_Interface_Http_Input instance ( ) [line 58]

Singleton Method


[ Top ]
private Gumbo_Http_Input __construct ( ) [line 52]

Constructor


[ Top ]
public void addConstraint ( string $field, $obj, [bool $return_val] ) [line 118]

Adds a Constraint to a given field

Parameter(s):

  • throws:  Gumbo_Exception
Implementation of:
Gumbo_Interface_Http_Input::addConstraint()

[ Top ]
public Gumbo_Interface_Input getInput ( string $field ) [line 198]

Returns the Constaints of the supplied field

Parameter(s):

  • (string) $field
  • throws:  Gumbo_Exception
Implementation of:
Gumbo_Interface_Http_Input::getInput()

[ Top ]
public bool hasInput ( string $field ) [line 222]

Returns if the field has a constraint

Parameter(s):

  • (string) $field
  • throws:  Gumbo_Exception
Implementation of:
Gumbo_Interface_Http_Input::hasInput()

[ Top ]
public void resetInput ( string $field ) [line 149]

Resets Constraints

Parameter(s):

  • (string) $field
  • throws:  Gumbo_Exception
Implementation of:
Gumbo_Interface_Http_Input::resetInput()

[ Top ]
public void setIgnoreConstraints ( bool $val ) [line 175]

Sets if the object should ignore the status code and return raw data

Parameter(s):

  • (bool) $val
  • throws:  Gumbo_Exception
Implementation of:
Gumbo_Interface_Http_Input::setIgnoreConstraints()

[ Top ]
public bool toIgnoreConstraints ( ) [line 242]

Returns if data should be returned raw

Implementation of:
Gumbo_Interface_Http_Input::toIgnoreConstraints()

[ Top ]
public Gumbo_Interface_Input __get ( string $field ) [line 72]

Returns the Input object for a given field

Parameter(s):

  • (string) $field

[ Top ]
public void __set ( string $field, [Gumbo_Interface_Constraint $obj] ) [line 82]

Adds|Resets a Constraint for the supplied REQUEST field name

Parameter(s):

  • throws:  Gumbo_Exception

[ Top ]