Rule
[ class tree: Rule ] [ index: Rule ] [ all elements ]

Class: Formagic_Rule_Email

Source Location: /Rule/Email.php

Class Overview

Formagic_Rule
   |
   --Formagic_Rule_Email

Email rule checks if a valid email address is entered.


Author(s):

  • Florian Sonnenburg
  • Marc Schrader

Version:

  • $Id: Email.php 17 2007-08-19 20:40:10Z meweasle $

Copyright:

  • Copyright (c) 2007 Marc Schrader

Variables

Methods


Inherited Variables

Inherited Methods

Class: Formagic_Rule

Formagic_Rule::__construct()
Constructor
Formagic_Rule::check()
Abstract of main check method. Returns boolean value of check success.
Formagic_Rule::getCode()
Returns error code of rule
Formagic_Rule::getLevel()
Returns error level of rule. Default is Formagic::ERROR
Formagic_Rule::getMessage()
Returns error message of rule
Formagic_Rule::getType()
Returns rule type identification string

Class Details

[line 41]
Email rule checks if a valid email address is entered.

The following arguments are supported:

  • (boolean)'checkDns': Performs DNS lookup
If only one argument is passed instead of array, it is interpreted as 'checkDns'




Tags:

author:  Florian Sonnenburg
author:  Marc Schrader
version:  $Id: Email.php 17 2007-08-19 20:40:10Z meweasle $
copyright:  Copyright (c) 2007 Marc Schrader


[ Top ]


Class Variables

$_errorCode =  1

[line 54]

Default error code



Tags:

access:  protected

Type:   integer
Overrides:   Array


[ Top ]

$_errorMessage =  'Bitte eine Email-Adresse eingeben'

[line 48]

Default error message



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method check [line 68]

boolean check( $item, Formagic_Item $itemObj)

Performs rule check



Tags:

access:  public


Overrides Formagic_Rule::check() (Abstract of main check method. Returns boolean value of check success.)

Parameters:

Formagic_Item   $itemObj  
   $item  

[ Top ]


Documentation generated on Thu, 23 Aug 2007 00:29:36 +0200 by phpDocumentor 1.4.0