Source for file User.class.php
Documentation is available at User.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
* @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 User Validation Class
* @param bool $throw throw Exceptions
* @param int $level Error Level thrown
public function __construct ($throw=
false, $level=
null) {
* Returns if the value is a Social Security Number
* @todo implement this method
public function isSSN ($val) {
* Returns if the value is a Drivers Liscence Number
* @todo implement this method
* Returns if the value is a valid Login/Username
* @throws Gumbo_Exception
$this->isMatch ($val, "^([a-zA-Z0-9_-]){0,}$");
* Returns if the value is a valid Password
* @throws Gumbo_Exception
$this->isMatch ($val, "^([a-zA-Z0-9!@_-]){0,}$");
* Returns if the value is a valid Alias
* @throws Gumbo_Exception
$this->isMatch ($val, "^([a-z0-9[:space:]\.\)\(,_-]){0,}$");
* Returns if the value is a valid Name
* @throws Gumbo_Exception
public function isName ($val) {
$this->isMatch ($val, "^([a-z[:space:]\.,']){0,}$");