We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Class Phalcon\Validation\Validator\Email Documentation

Hi!

The Class Phalcon\Validation\Validator\Email has the constructor:

public __construct ([array $options]) inherited from Phalcon\Validation\Validator

Phalcon\Validation\Validator constructor

I looked everywhere for tha options, but I could not find.

Where I can find? Is there any documentation?

Sorry about my bad english ...

edited Dec '14

I will try to be more specific.

This page that you post, is about the class \Phalcon\Validation\Validator\Email, this class has a contruct [array $options].

Exemple:

<?php

use Phalcon\Validation\Validator\Email as EmailValidator;

$validator->add('email', new EmailValidator(array( 'message' => 'The e-mail is not valid' )));

This array with index "messages", is one of options that class recive ...

On the page that you posted, I don't find anything about that options ...

I checked zephir code of Phalcon 2 and there are only 3 options possible I see so far:

  • allowEmpty
  • label
  • message