Documentation

目次

前のトピックへ

< Class Phalcon\Validation\Exception

次のトピックへ

Class Phalcon\Validation\Message\Group >

このページ

Class Phalcon\Validation\Message

Encapsulates validation info generated in the validation process

Methods

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