ea-Geiercode-base
[ class tree: ea-Geier ] [ index: ea-Geier ] [ all elements ]

Class: eaCheck

Source Location: /code/base/check.class.php

Class eaCheck

Property Summary
string   $error   error message

[ Top ]
Method Summary
boolean   abc()   validate character string
boolean   abcLower()   validate lowercase character string
boolean   abcUpper()   validate uppercase character string
boolean   dsn()   validate database dsn
void   eaInput()   constructor
boolean   ip()   validate ip address string
boolean   mail()   validate email address
boolean   num()   validate numbers
boolean   txt()   validate text
boolean   _error()   store error message and throw error

[ Top ]
Properties
string   $error = '' [line 39]

error message


[ Top ]
Methods
abc  [line 152]

  boolean abc( string &$value  )

validate character string

Parameters:
string   &$value:  test value

API Tags:
Return:  test result


[ Top ]
abcLower  [line 169]

  boolean abcLower( string &$value  )

validate lowercase character string

Parameters:
string   &$value:  test value

API Tags:
Return:  test result


[ Top ]
abcUpper  [line 180]

  boolean abcUpper( string &$value  )

validate uppercase character string

Parameters:
string   &$value:  test value

API Tags:
Return:  test result


[ Top ]
dsn  [line 232]

  boolean dsn( string &$value  )

validate database dsn

allowed format: driver://user:password@server/database

Parameters:
string   &$value:  test value

API Tags:
Return:  result


[ Top ]
eaInput  [line 44]

  void eaInput( )

constructor



[ Top ]
ip  [line 192]

  boolean ip( string &$value, [string $mask = '255.255.255.255']  )

validate ip address string

Parameters:
string   &$value:  test value
string   $mask:  ip mask (255.255.255.255)

API Tags:
Return:  test result


[ Top ]
mail  [line 110]

  boolean mail( string &$value  )

validate email address

according to RFC2822, ignoring IDN

Parameters:
string   &$value:  test value

API Tags:
Return:  test result


[ Top ]
num  [line 85]

  boolean num( string &$value  )

validate numbers

allowed format [-]nnn[(.|,)[nnn]]

Parameters:
string   &$value:  test value

API Tags:
Return:  test result


[ Top ]
txt  [line 66]

  boolean txt( string &$value  )

validate text

Parameters:
string   &$value:  test value

API Tags:
Return:  test result


[ Top ]
_error  [line 55]

  boolean _error( string $message  )

store error message and throw error

Parameters:
string   $message:  error message

API Tags:
Return:  false


[ Top ]

Documentation generated on Sun, 09 Sep 2007 17:08:08 +0200 by phpDocumentor 1.3.1