Login |  Register 
Your PHP skills tool showed me were I needed to improve and how to do it!
Tom
 

RocksFormComparisionRegex Class

Description

This represents a comparision of a field against a regex for validation reasons.

This simplifies common problems to do with form handling and validation. This class is usually used internally.

  • property: string $regex: the regex to use for comparision
  • property: string $message: the message to use if the comparision against the regular expression fails.
  • author: Dominic Skinner
  • version: 0.2.1

Located in /RocksFormComparisionRegex.php (line 13)


	
			
Method Summary
RocksFormComparisionRegex __construct (string $regex, string $message)
void __get ( $name)
Methods
Constructor __construct (line 23)

This creates the regex comparission.

  • access: public
RocksFormComparisionRegex __construct (string $regex, string $message)
  • string $regex: this is the regex to compare against the field
  • string $message: this is message that is displayed if the regex does not match the field
__get (line 34)
  • access: public
void __get ( $name)
  • $name

No comments have been provided.
security image

Written by Dominic Skinner
Last Updated: 2011-10-25 16:00:38