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

Class: Formagic_Rule_Numeric

Source Location: /Rule/Numeric.php

Class Overview

Formagic_Rule
   |
   --Formagic_Rule_Numeric

Checks if value is numeric


Author(s):

  • Florian Sonnenburg
  • Marc Schrader

Version:

  • $Id: Numeric.php 17 2007-08-19 20:40:10Z meweasle $

Copyright:

  • Copyright (c) 2007 Marc Schrader

Variables

Methods


Inherited Variables

Inherited Methods

Class: Formagic_Rule

Formagic_Rule::__construct()
Constructor
Formagic_Rule::check()
Abstract of main check method. Returns boolean value of check success.
Formagic_Rule::getCode()
Returns error code of rule
Formagic_Rule::getLevel()
Returns error level of rule. Default is Formagic::ERROR
Formagic_Rule::getMessage()
Returns error message of rule
Formagic_Rule::getType()
Returns rule type identification string

Class Details

[line 36]
Checks if value is numeric



Tags:

author:  Florian Sonnenburg
author:  Marc Schrader
version:  $Id: Numeric.php 17 2007-08-19 20:40:10Z meweasle $
copyright:  Copyright (c) 2007 Marc Schrader


[ Top ]


Class Variables

$_errorCode =  1

[line 49]

Default error code



Tags:

access:  protected

Type:   integer
Overrides:   Array


[ Top ]

$_errorMessage =  'Bitte einen numerischen Wert eingeben'

[line 43]

Default error message



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method check [line 59]

boolean check( $item, Formagic_Item $itemObj)

Performs rule check

Numeric rule checks if value is numeric.




Tags:

access:  public


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

Parameters:

Formagic_Item   $itemObj  
   $item  

[ Top ]


Documentation generated on Thu, 23 Aug 2007 00:29:44 +0200 by phpDocumentor 1.4.0