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

Class: Formagic_Rule_ItemDependency

Source Location: /Rule/ItemDependency.php

Class Overview

Formagic_Rule_Abstract
   |
   --Formagic_Rule_ItemDependency

Checks if dependencies between given items are matched


Author(s):

  • Florian Sonnenburg

Version:

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

Copyright:

  • Copyright (c) 2007-2011 Florian Sonnenburg

Variables

Constants

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 37]
Checks if dependencies between given items are matched



Tags:

author:  Florian Sonnenburg
version:  $Id: ItemDependency.php 126 2011-05-18 18:41:58Z meweasle $
copyright:  Copyright (c) 2007-2011 Florian Sonnenburg
license:  New BSD License


[ Top ]


Class Variables

$_condition =

[line 80]

Check condition



Tags:

access:  protected

Type:   integer


[ Top ]

$_dependency =

[line 86]

Item value to be checked



Tags:

access:  protected

Type:   mixed


[ Top ]

$_item = array()

[line 74]

Items the validity of this item is dependent on



Tags:

access:  protected



[ Top ]

$_message =  'Please enter a value'

[line 68]

Default message



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method validate [line 124]

boolean validate( string $value)

Performs rule check



Tags:

return:  True if conditions are matched
access:  public


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

Parameters:

string   $value   Value to be checked

[ Top ]

method _init [line 93]

void _init( $arguments)

Defines dependent items and validate condition.



Tags:

access:  protected


Overrides Formagic_Rule_Abstract::_init() (Allows subclass initialization.)

Parameters:

array   $arguments   Rule options.

[ Top ]


Class Constants

COND_VALUE_EQUALS =  1

[line 57]


[ Top ]

COND_VALUE_NOT_EQUALS =  2

[line 62]


[ Top ]

VALUE_ANY =  true

[line 42]


[ Top ]

VALUE_NONE =  ''

[line 47]


[ Top ]

VALUE_XOR =  '__FM__VALUE_XOR__'

[line 52]


[ Top ]



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