Source for file Input.class.php

Documentation is available at Input.class.php

  1. <?php
  2. /**
  3.  * Gumbo Library Framework
  4.  *
  5.  * LICENSE
  6.  * This library is being released under the terms of the New BSD License.  A
  7.  * copy of the license is packaged with the software (LICENSE.txt).  If no
  8.  * copy is found, a copy of the license template can be found at:
  9.  * http://www.opensource.org/licenses/bsd-license.php
  10.  * 
  11.  * @category Gumbo
  12.  * @package Http
  13.  * @copyright Copyright (c) 2007, iBayou, Michael Luster
  14.  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
  15.  * @author Michael Luster <mluster79@yahoo.com>
  16.  * @link http://sourceforge.net/projects/phpgumbo
  17.  * @version 0.0.1
  18.  */
  19.  
  20. /**
  21.  * Http User Input Interface
  22.  *
  23.  * @category Gumbo
  24.  * @package Http
  25.  * @copyright Copyright (c) 2007, iBayou, Michael Luster
  26.  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
  27.  * @author Michael Luster <mluster79@yahoo.com>
  28.  * @link http://sourceforge.net/projects/phpgumbo
  29.  * @desc Http User Input Interface
  30.  * @version 0.0.1
  31.  */
  32.  
  33.  
  34.     /** ACTION METHODS **/
  35.     /**
  36.      * Adds a Constraint to a given field
  37.      * @param string $field 
  38.      * @param Gumbo_Interface_Constraint $obj 
  39.      * @param bool $return_val if Constraint returns a value
  40.      */
  41.     public function addConstraint ($fieldGumbo_Interface_Constraint $obj$return_val=false);
  42.     
  43.     /**
  44.      * Resets Constraints
  45.      * @param string $field 
  46.      * @throws Gumbo_Exception
  47.      */
  48.     public function resetInput ($field);
  49.     
  50.     
  51.     
  52.     /** MUTATOR METHODS **/
  53.     /**
  54.      * Sets if the object should ignore the status code and return raw data
  55.      * @param bool $val 
  56.      */
  57.     public function setIgnoreConstraints ($val);
  58.     
  59.     
  60.     
  61.     /** ACCESSOR METHODS **/
  62.     /**
  63.      * Returns the Constaints of the supplied field
  64.      * @param string $field 
  65.      * @return Gumbo_Interface_Input 
  66.      */
  67.     public function getInput ($field);
  68.     
  69.     /**
  70.      * Returns if the field has a constraint
  71.      * @param string $field 
  72.      * @return bool 
  73.      */
  74.     public function hasInput ($field);
  75.     
  76.     /**
  77.      * Returns if data should be returned raw
  78.      * @return bool 
  79.      */
  80.     public function toIgnoreConstraints ();
  81.     
  82. }
  83.  
  84. ?>