\ValidationLogicCriterion
- Author: <shea@silverstripe.com.au> Credit to Uncle Cheese for the recipe
- License: BSD License http://www.silverstripe.org/bsd-license
Synopsis
class ValidationLogicCriterion
{
- // members
- protected $master = NULL;
- protected $operator = NULL;
- protected $value = NULL;
- protected ValidationLogicCriteria $set = NULL;
- // methods
- public void __construct()
- public string getMaster()
- public void phpOperator()
- public string toPHP()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Members
protected
- $master
—
string
The name of the form field that is controlling the Validation - $operator
—
string
The comparison function to use, e.g. "EqualTo" - $set
—
ValidationLogicCriteria
The parent {@link ValidationLogicCriteria} - $value
—
mixed
The value to compare to
Methods
public
- __construct() — Constructor
- getMaster() — Accessor for the master field
- phpOperator()
- toPHP() — Returns a string of php code to be evaluated