Source for file Constraint.class.php
Documentation is available at Constraint.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* Input Constraint Interface
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @desc Input Constraint Interface
* Tests the Constraint, returning either boolean or formatted data
public function test ($data);
* Adds a Case to the Constraint Method (accepts additional arguments)
* Resets all Case Argument
* @postcondition !getCases()
* Sets the Function|Method
* @param string|StdClass$obj
public function setMethod ($func, $obj=
null);
* Sets the Key, which indicates the location the 'data' argument should be placed (starts at 0 for 1st position)
public function setKey ($key);
* Returns the Function|Method
* Returns the Case Arguments (extra parameters sent to the function)