| 1 | <?php |
||
| 7 | class IdnValidator extends DomainValidator |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @inheritdoc |
||
| 11 | */ |
||
| 12 | public function validateAttribute($model, $attribute) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $value the IDN domain name that should be converted to ASCII |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | public function convertIdnToAscii($value) |
||
| 27 | |||
| 28 | public function convertAsciiToIdn($value) |
||
| 32 | |||
| 33 | |||
| 34 | public function clientValidateAttribute($model, $attribute, $view) |
||
| 41 | } |
||
| 42 |