category OSS
package OSS_Validate
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

Validates a given PPS number for the correct format.

isValid(string $value) : bool

This includes number and position of letters / digits and MOD23.

link http://en.wikipedia.org/wiki/Personal_Public_Service_Number
link http://pear.php.net/package/Validate_IE/docs/latest/__filesource/fsource_Validate_IE__Validate_IE-1.0.2ValidateIE.php.html#a443

Parameters

$value

string

The tax number to validate

Returns

bool

Returns true if the checksum in the specified PPSN or tax number, without the 'IE' prefix, is valid.

checkMOD23(string $value) : bool
Static

Parameters

$value

string

Value to perform modulus 23 checksum on.

Returns

bool

 Properties

 

Error message templates

$_messageTemplates : array

 Constants

 

NOT_VALID

NOT_VALID