PHP 클래스 IsoCodes\Ssn

파일 보기 프로젝트 열기: ronanguilloux/isocodes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$highgroup This list is from September 2007
$possibleGroups The SSA uses a funky method of figuring out what group number to use next. This area has them in the proper order and makes it easier to generate a SSN.
$statePrefixes http://www.ssa.gov/employer/stateweb.htm
$states

보호된 프로퍼티들

프로퍼티 타입 설명
$initialized

공개 메소드들

메소드 설명
generate ( mixed $state = false, string $separator = '-' ) : false | string Generate an SSN based on state.
validate ( mixed $ssn ) : boolean Validate a SSN.

보호된 메소드들

메소드 설명
initialize ( ) Cleans the high group number list so it is useful.

메소드 상세

generate() 공개 정적인 메소드

Generate an SSN based on state.
public static generate ( mixed $state = false, string $separator = '-' ) : false | string
$state mixed
$separator string
리턴 false | string (false: bad state found)

initialize() 보호된 정적인 메소드

Cleans the high group number list so it is useful.
protected static initialize ( )

validate() 공개 정적인 메소드

Validate a SSN.
public static validate ( mixed $ssn ) : boolean
$ssn mixed
리턴 boolean : false, or two letter state abbreviation if it is valid

프로퍼티 상세

$highgroup 공개적으로 정적으로 프로퍼티

This list is from September 2007
public static $highgroup

$initialized 보호되어 있는 정적으로 프로퍼티

protected static $initialized

$possibleGroups 공개적으로 정적으로 프로퍼티

The SSA uses a funky method of figuring out what group number to use next. This area has them in the proper order and makes it easier to generate a SSN.
public static $possibleGroups

$statePrefixes 공개적으로 정적으로 프로퍼티

http://www.ssa.gov/employer/stateweb.htm
public static $statePrefixes

$states 공개적으로 정적으로 프로퍼티

public static $states