Gumbo_Valid_Phone

Gumbo_Valid
   |
   --Gumbo_Valid_Phone

Phone Number Validation 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

Inherited Methods

Class Methods

public Gumbo_Valid_Phone __construct ( [bool $throw], [int $level] ) [line 42]

Constructor

Parameter(s):

  • (bool) $throw :: throw Exceptions
  • (int) $level :: Error Level thrown
Overrides
Gumbo_Valid::__construct()

[ Top ]
public bool isPhone ( string $val ) [line 54]

Returns if the value is a Phone Number

Parameter(s):

  • (string) $val
  • todo:  implement this method

[ Top ]
public bool isPhoneUS ( string $val ) [line 64]

Returns if the value is a valid US Phone Number

Parameter(s):

  • (string) $val
  • throws:  Gumbo_Exception

[ Top ]