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

Class: Formagic_Rule_Mandatory

Source Location: /Rule/Mandatory.php

Class Overview

Formagic_Rule
   |
   --Formagic_Rule_Mandatory

Checks if value is given


Author(s):

  • Florian Sonnenburg

Version:

  • $Id: Mandatory.php 14 2007-08-13 20:33:26Z meweasle $

Copyright:

  • Copyright (c) 2007 Florian Sonnenburg

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 35]
Checks if value is given



Tags:

author:  Florian Sonnenburg
version:  $Id: Mandatory.php 14 2007-08-13 20:33:26Z meweasle $
copyright:  Copyright (c) 2007 Florian Sonnenburg
license:  New BSD License


[ Top ]


Class Variables

$_errorCode =  1

[line 48]

Default error code



Tags:

access:  protected

Type:   integer
Overrides:   Array


[ Top ]

$_errorMessage =  'Bitte Wert eingeben'

[line 42]

Default error message



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method check [line 58]

boolean check( $itemObj, mixed $value)

Performs rule check

Mandatory rule checks if value is given. Throws formagicRuleException if not.




Tags:

access:  public


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

Parameters:

mixed   $value   Value to be checked
   $itemObj  

[ Top ]


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