Class: checkit

Quellcode Position: Program_Root/sys_checkit.php

Class checkit

Class Overview

Examine a string to given properties like email, numbers etc. This class will be used directly. You call the include functions with checkit::xyz.

Implementiert in Program_Root/sys_checkit.php [Zeile 18]



		
				Author(s):
		
		
		
Information Tags:

Methods

Method Summary
mixed   check()   Check string against the pattern (PCRE)
boolean   filled()   Check if string is NOT empty
mixed   internalSafeURL()   Check string is a adress
mixed   isAlpha()   Check string consists of letter or alfanumeric characters.
mixed   isAlphaChar()   Check string consists of letter or numbers.
mixed   isAlphaNum()   Check string consists of alphanumeric characters
mixed   isAlphaNumChar()   Check string consists of alphanumeric characters with numbers
mixed   isEmail()   Check string is email-adress
mixed   isFile()   Check string is filename
mixed   isGermanDate()   Check string is date in german format dd.mm.yyyy.
mixed   isGUID()   Check string is alphanumeric
mixed   isHTMLColor()   Check string is HTML color
mixed   isHTTP()   Check web adress (http://* or www.*)
void   isHTTPHost()  
mixed   isHTTPX()   Extended HTTP check
mixed   isISODate()   Check date is in ISO-format
mixed   isISODateTime()   Check date and time is in ISO-format
mixed   isNoHTML()   Check string is no HTML
mixed   isNum()   Check string consists of numbers
mixed   isNumUnit()   Check string consists of measure and numbers
mixed   isPath()   Check string is path
mixed   isPhone()   Check string is a phone number
mixed   isSomeText()   Check string is some text
mixed   isTime()   Check string is a date

Methods
check  [Zeile 37]

  mixed check( string $str, string $pattern, [boolean $mustfilled = false]  )

Check string against the pattern (PCRE)

Parameters:
string   $str:  string
string   $pattern:  filter
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  int or false


filled  [Zeile 26]

  boolean filled( string $str  )

Check if string is NOT empty

Parameters:
string   $str:  Der zu pruefende String


internalSafeURL  [Zeile 130]

  mixed internalSafeURL( string $str, [boolean $mustfilled = false]  )

Check string is a adress

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isAlpha  [Zeile 54]

  mixed isAlpha( string $str, [boolean $mustfilled = false]  )

Check string consists of letter or alfanumeric characters.

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empgty ?

API Tags:
Return:  int or false


isAlphaChar  [Zeile 64]

  mixed isAlphaChar( string $str, [boolean $mustfilled = false]  )

Check string consists of letter or numbers.

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  int or false


isAlphaNum  [Zeile 97]

  mixed isAlphaNum( string $str, [boolean $mustfilled = false]  )

Check string consists of alphanumeric characters

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isAlphaNumChar  [Zeile 108]

  mixed isAlphaNumChar( string $str, [boolean $mustfilled = false]  )

Check string consists of alphanumeric characters with numbers

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isEmail  [Zeile 241]

  mixed isEmail( string $str, [boolean $mustfilled = false]  )

Check string is email-adress

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isFile  [Zeile 174]

  mixed isFile( string $str, [boolean $mustfilled = false]  )

Check string is filename

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isGermanDate  [Zeile 196]

  mixed isGermanDate( string $str, [boolean $mustfilled = false]  )

Check string is date in german format dd.mm.yyyy.

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isGUID  [Zeile 254]

  mixed isGUID( string $str, [boolean $mustfilled = false]  )

Check string is alphanumeric

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isHTMLColor  [Zeile 298]

  mixed isHTMLColor( string $str, [boolean $mustfilled = false]  )

Check string is HTML color

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isHTTP  [Zeile 223]

  mixed isHTTP( string $str, [boolean $mustfilled = false]  )

Check web adress (http://* or www.*)

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isHTTPHost  [Zeile 229]

  void isHTTPHost( mixed $str, [mixed $mustfilled = false]  )



isHTTPX  [Zeile 212]

  mixed isHTTPX( string $str, [boolean $mustfilled = false]  )

Extended HTTP check

anchors http://www.blah.de/index.html#top parameters http://www.blah.de/index.html?foo=bar virtual directories http://www.blah.de/~user/index.html

Parameters:
string   $str: 
boolean   $mustfilled:  optional, default value false

API Tags:
Return:  false or int
Access:  public


isISODate  [Zeile 265]

  mixed isISODate( string $str, [boolean $mustfilled = false]  )

Check date is in ISO-format

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isISODateTime  [Zeile 276]

  mixed isISODateTime( string $str, [boolean $mustfilled = false]  )

Check date and time is in ISO-format

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isNoHTML  [Zeile 141]

  mixed isNoHTML( string $str, [boolean $mustfilled = false]  )

Check string is no HTML

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isNum  [Zeile 77]

  mixed isNum( string $str, [boolean $mustfilled = false], [integer $digitmin = NULL], [integer $digitmax = NULL]  )

Check string consists of numbers

Parameters:
string   $str:  string
boolean   $mustfilled:  srting may be emtpty ?
integer   $digitmin:  minimum number of numbers
integer   $digitmax:  maximum number of numbers

API Tags:
Return:  false or int


isNumUnit  [Zeile 119]

  mixed isNumUnit( string $str, [boolean $mustfilled = false]  )

Check string consists of measure and numbers

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isPath  [Zeile 185]

  mixed isPath( string $str, [boolean $mustfilled = false]  )

Check string is path

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isPhone  [Zeile 163]

  mixed isPhone( string $str, [boolean $mustfilled = false]  )

Check string is a phone number

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isSomeText  [Zeile 152]

  mixed isSomeText( string $str, [boolean $mustfilled = false]  )

Check string is some text

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int


isTime  [Zeile 287]

  mixed isTime( string $str, [boolean $mustfilled = false]  )

Check string is a date

Parameters:
string   $str:  string
boolean   $mustfilled:  string may be empty ?

API Tags:
Return:  false or int