예제 #1
0
 function validateBbanHTTPInput($bban, $contentObjectAttribute)
 {
     if (!Bban::validate($bban)) {
         $contentObjectAttribute->setValidationError(ezpI18n::tr('kernel/classes/datatypes', 'The BBAN code is not valid.'));
         return eZInputValidator::STATE_INVALID;
     }
     return eZInputValidator::STATE_ACCEPTED;
 }
예제 #2
0
 public function testEmptyBbanAsInvalid()
 {
     $this->assertEquals(Bban::validate(''), false);
     $this->assertEquals(Bban::validate(' '), false);
 }