Source for file form_field_email.class.php
Documentation is available at form_field_email.class.php
// *** Tangra (Application Framework and Tools for PHP)
* Contains class Form_Field_Email
require_once(TANGRA_MAIN_DIR. 'form/fields/text/form_field_text.class.php');
require_once(TANGRA_MAIN_DIR. 'misc/inet_functions.inc.php');
require_once(TANGRA_MAIN_DIR. 'exceptions/te_invalid_email.class.php');
* Represents text field that accepts email
* @param string $name Name of the field
* @param boolean $required Is field required. Default is false
* @param integer $maxlength Maximal length of the text. Default is 100
* @param string $value Default value. Must be valid email. Default is NULL
function __construct($name, $required = false, $maxlength = 100, $value = NULL) {
parent::__construct($name, $required, $maxlength, $value);
* Sets field value. Must be valid email address or empty (NULL/'')
* @throws TE_Invalid_Email
parent::set_value($value);
throw new TE_Invalid_Email($value);
parent::set_value($value);
* Performs basic check for validity
|