Structures_Form
[ class tree: Structures_Form ] [ index: Structures_Form ] [ all elements ]

File: Numeric.php

Source Location: /Structures_Form-0.8.0devel/Form/Rule/Numeric.php

Page Details:

A rule designed to be used with Structures_Form. This rule makes sure that an element has a value that consists of only numbers, upto one decimal point, and upto one negative sign or nothing at all.

Empty values will pass validation of this rule. If you don't want the value to be empty make sure to also apply the Required rule.

This class uses Perl compatible regular expressions.

This class extends Structures_Form_Rule_Regex. This class implement Structures_Form_RuleInterface.

  • Author: Scott Mattocks
  • Version: 0.8.0devel
  • Copyright: Copyright 2006 Scott Mattocks
  • License: PHP

Includes:

require_once('Structures/Form/Rule/Regex.php') [line 21]

Documentation generated on Mon, 11 Mar 2019 14:44:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.