Login |  Register 
I had no idea at all about PHP or programming until I started reading your website!
Scott
 

RocksFormComparisionPair Class

Description

This represents a pair of form fields that are going to be compared for validation reasons.

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

  • author: Dominic Skinner
  • version: 0.2.1

Located in /RocksFormComparisionPair.php (line 13)


	
			
Method Summary
RocksFormComparisionPair __construct (string $itemOne, string $itemTwo, string $message)
void GetFormName ()
void GetMessage ()
void ItemOne ()
void ItemTwo ()
Methods
Constructor __construct (line 25)

This creates the form comparission pair.

  • access: public
RocksFormComparisionPair __construct (string $itemOne, string $itemTwo, string $message)
  • string $itemOne: this is the name of the first field to compare
  • string $itemTwo: this is the name of the second field to compare
  • string $message: this is message that is displayed if the fields are not equal
GetFormName (line 59)

This return the name of the form name for the comparision pair

  • access: public
void GetFormName ()
GetMessage (line 51)

This return the value of error message

  • access: public
void GetMessage ()
ItemOne (line 35)

This return the value of item one

  • access: public
void ItemOne ()
ItemTwo (line 43)

This return the value of item two

  • access: public
void ItemTwo ()

Comments to date: 1. Page 1 of 1. Average Rating:
Daveigh   9:57am on Saturday, December 3rd, 2011 
Keep these articles coimng as they've opened many new doors for me.

security image

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