UncleCheese\DisplayLogic\Criterion
Synopsis
class Criterion
{
- // members
- protected $master = NULL;
- protected $operator = NULL;
- protected $value = NULL;
- protected Criteria $set = NULL;
- // methods
- public void __construct()
- public string getMaster()
- public $this setMaster()
- public string toScript()
Hierarchy
Uses
- SilverStripe\Core\Extensible
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
Members
protected
- $master
—
string
The name of the form field that is controlling the display - $operator
—
string
The comparison function to use, e.g. "EqualTo" - $set
—
UncleCheese\DisplayLogic\Criteria
The parent {@link Criteria} - $value
—
mixed
The value to compare to
Methods
public
- __construct() — Constructor
- getMaster() — Accessor for the master field
- setMaster()
- toScript() — Creates a JavaScript-readable representation of this criterion