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

Class: Formagic_Rule_Numeric

Source Location: /Rule/Numeric.php

Class Overview

Formagic_Rule_Abstract
   |
   --Formagic_Rule_Numeric

Checks if value is numeric


Author(s):

  • Florian Sonnenburg
  • Marc Schrader

Version:

  • $Id: Numeric.php 126 2011-05-18 18:41:58Z meweasle $

Copyright:

  • Copyright (c) 2007-2011 Florian Sonnenburg

Variables

Methods


Inherited Variables

Inherited Methods

Class: Formagic_Rule_Abstract

Formagic_Rule_Abstract::__construct()
Constructor
Formagic_Rule_Abstract::getMessage()
Returns translated error message of rule
Formagic_Rule_Abstract::getName()
Returns rule type identification string.
Formagic_Rule_Abstract::setMessage()
Sets the error message property.
Formagic_Rule_Abstract::validate()
Abstract of main validate method. Returns boolean value of check success.
Formagic_Rule_Abstract::_init()
Allows subclass initialization.

Class Details

[line 38]
Checks if value is numeric



Tags:

author:  Florian Sonnenburg
author:  Marc Schrader
version:  $Id: Numeric.php 126 2011-05-18 18:41:58Z meweasle $
copyright:  Copyright (c) 2007-2011 Florian Sonnenburg


[ Top ]


Class Variables

$_message =  'Please enter a numeric value'

[line 44]

Default error message



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method validate [line 54]

boolean validate( string $value)

Performs rule check

Numeric rule checks if item has a numeric value.




Tags:

return:  True if the item value is numeric
access:  public


Overrides Formagic_Rule_Abstract::validate() (Abstract of main validate method. Returns boolean value of check success.)

Parameters:

string   $value   The item value to be validated

[ Top ]


Documentation generated on Sun, 22 May 2011 22:40:18 +0200 by phpDocumentor 1.4.3