Jump to content

AtkEmailAttribute

From NusaATK

Attribute: atkEmailAttribute

API docs | Flags

List of other attributes

atkEmailAttribute screenshot

Description

The atkEmailAttribute is used to represent email addresses.

Params

The constructor of the atkEmailAttribute has the following params:

 atkEmailAttribute (String $name, [boolean $search = false], [int $flags = 0], [int $size = 0]) 
String $name
Name of the attribute
boolean $search
Search DNS for MX records in validate function
int $flags
Flags for the attribute
int $size
The size of the field in characters

Examples

(in a node constructor):

 $this->add(new atkEmailAttribute ("email", false, AF_HIDE_LIST|AF_FORCE_LOAD));

Adds a field 'email' to the node that displays an email address and does not check MX records for valid addresses. The flags hide it from the list view,

--Rwolverine 19:54, 6 December 2007 (CET)