Tabla de Contenidos

Tema anterior

< Class Phalcon\Validation\Exception

Próximo tema

Class Phalcon\Validation\Message\Group >

Esta página

Class Phalcon\Validation\Message

Encapsulates validation info generated in the validation process


public __construct (string $message, [string $field], [string $type])

Phalcon\Validation\Message constructor

public Phalcon\Mvc\Model\Message setType (string $type)

Sets message type

public string getType ()

Returns message type

public Phalcon\Mvc\Model\Message setMessage (string $message)

Sets verbose message

public string getMessage ()

Returns verbose message

public Phalcon\Mvc\Model\Message setField (string $field)

Sets field name related to message

public string getField ()

Returns field name related to message

public string __toString ()

Magic __toString method returns verbose message

public static Phalcon\Mvc\Model\Message __set_state (array $message)

Magic __set_state helps to recover messsages from serialization