Class IdCardTw
Check if the input is valid Taiwan identity card
- Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\IdCardTw
Namespace: Wei\Validator
Author: Twin Huang twinhuang@qq.com
Link: http://zh.wikipedia.org/wiki/%E4%B8%AD%E8%8F%AF%E6%B0%91%E5%9C%8B%E5%9C%8B%E6%B0%91%E8%BA%AB%E5%88%86%E8%AD%89
Located at Validator/IdCardTw.php
Author: Twin Huang twinhuang@qq.com
Link: http://zh.wikipedia.org/wiki/%E4%B8%AD%E8%8F%AF%E6%B0%91%E5%9C%8B%E5%9C%8B%E6%B0%91%E8%BA%AB%E5%88%86%E8%AD%89
Located at Validator/IdCardTw.php
protected
boolean
|
__call(),
__construct(),
__get(),
getOption(),
setOption()
|
t()
|
protected
string
|
$invalidMessage
|
#
'%name% must be valid Taiwan identity card'
|
protected
string
|
$negativeMessage
The common message for negative validator |
#
'%name% must not be valid Taiwan identity card'
|
protected
array
|
$map
|
#
array(
'A' => 10,
'B' => 11,
'C' => 12,
'D' => 13,
'E' => 14,
'F' => 15,
'G' => 16,
'H' => 17,
'I' => 34,
'J' => 18,
'K' => 19,
'M' => 21,
'N' => 22,
'O' => 35,
'P' => 23,
'Q' => 24,
'T' => 27,
'U' => 28,
'V' => 29,
'W' => 32,
'X' => 30,
'Z' => 33,
'L' => 20,
'R' => 25,
'S' => 26,
'Y' => 31
)
|
$errors,
$name,
$negative,
$notStringMessage,
$validator
|
$providers,
$wei
|
$t
|