[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/propel/validator/ -> NotMatchValidator.php (sommaire)

(pas de description)

Poids: 79 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

NotMatchValidator:: (2 méthodes):
  prepareRegexp()
  isValid()


Classe: NotMatchValidator  - X-Ref

A validator for regular expressions.

This validator will return true, when the passed value does *not* match
the regular expression.

If you do want to test if the value *matches* an expression, you can use
the MatchValidator class instead.

Below is an example usage for your Propel xml schema file.

<code>
<column name="ISBN" type="VARCHAR" size="20" required="true" />
<validator column="username">
<!-- disallow everything that's not a digit or minus -->
<rule
name="notMatch"
value="/[^\d-]+/"
message="Please enter a valid email adress." />
</validator>
</code>

prepareRegexp($exp)   X-Ref
Prepares the regular expression entered in the XML
for use with preg_match().

param: string $exp
return: string Prepared regular expession.

isValid(ValidatorMap $map, $str)   X-Ref
Whether the passed string matches regular expression.




Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7