Example #1
0
 public function getPhoneValidator()
 {
     if ($this->phoneValidator === NULL) {
         $validator = new PhoneNumber();
         $validator->setOptions($this->getPhoneConfig())->setMessages(array(PhoneNumber::NO_MATCH => $this->getErrorMessage('PHONENUMBER::NO_MATCH'), PhoneNumber::UNSUPPORTED => $this->getErrorMessage('PHONENUMBER::UNSUPPORTED'), PhoneNumber::INVALID => $this->getErrorMessage('PHONENUMBER::INVALID')));
         $this->setPhoneValidator($validator);
     }
     return $this->phoneValidator;
 }