[ 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/ -> ValidationFailed.php (sommaire)

(pas de description)

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

Définit 1 class

ValidationFailed:: (8 méthodes):
  __construct()
  setColumn()
  getColumn()
  setMessage()
  getMessage()
  setValidator()
  getValidator()
  __toString()


Classe: ValidationFailed  - X-Ref

Simple class that serves as a container for any information about a failed validation.

Currently this class stores the qualified column name (e.g. tablename.COLUMN_NAME) and
the message that should be displayed to the user.

An array of these objects will be returned by BasePeer::doValidate() if validation
failed.

__construct($colname, $message, $validator = null)   X-Ref
Construct a new ValidationFailed object.

param: string $colname Column name.
param: string $message Message to display to user.
param: object $validator The Validator that caused this column to fail.

setColumn($v)   X-Ref
Set the column name.

param: string $v

getColumn()   X-Ref
Gets the column name.

return: string Qualified column name (tablename.COLUMN_NAME)

setMessage($v)   X-Ref
Set the message for the validation failure.

param: string $v

getMessage()   X-Ref
Gets the message for the validation failure.

return: string

setValidator($v)   X-Ref
Set the validator object that caused this to fail.

param: object $v

getValidator()   X-Ref
Gets the validator object that caused this to fail.

return: object

__toString()   X-Ref
"magic" method to get string represenation of object.
Maybe someday PHP5 will support the invoking this method automatically
on (string) cast.  Until then it's pretty useless.

return: string



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