Umfragen
regexp Class Reference

class for checking a text widget's input against a regexp More...

Public Member Functions

 make_err ($name)
 get the error message with name substitute
 test ($str)
 test for matches in a string
 __toString ()

Data Fields

 $desc_tiny = ""
 description in the textExt edit table
 $desc_short = ""
 description for the normal text edit drop down
 $desc_long = ""
 description in the widget when displayed
 $err_msg = ""
 error message to show {name} wille be replaced with the widget name
 $exp = ""
 PCRE regular expression.
 $id = ""
 unique identifier like a name

Detailed Description

class for checking a text widget's input against a regexp

See Also
text
textExt

Definition at line 7 of file text.class.php.

Member Function Documentation

__toString ( )

Definition at line 43 of file text.class.php.

make_err (   $name)

get the error message with name substitute

Parameters
string$namethe name we want insert in the prepared string of the error message
Returns
string the finished error message

Definition at line 20 of file text.class.php.

test (   $str)

test for matches in a string

Parameters
string$strthe string we want to filter
Returns
bool true when matching, false on error or no match

Definition at line 29 of file text.class.php.

Field Documentation

$desc_long = ""

description in the widget when displayed

Definition at line 10 of file text.class.php.

$desc_short = ""

description for the normal text edit drop down

Definition at line 9 of file text.class.php.

$desc_tiny = ""

description in the textExt edit table

Definition at line 8 of file text.class.php.

$err_msg = ""

error message to show {name} wille be replaced with the widget name

Definition at line 11 of file text.class.php.

$exp = ""

PCRE regular expression.

Definition at line 12 of file text.class.php.

$id = ""

unique identifier like a name

Definition at line 13 of file text.class.php.


The documentation for this class was generated from the following file: