Свойство | Type | Description | |
---|---|---|---|
$criteria | array | A list of {@link ValidationLogicCriterion} objects | |
$logicalOperator | string | Either "and" or "or", determines disjunctive or conjunctive logic for the whole criteria set | |
$master | string | The name of the form field that depends on the criteria | |
$parent | ValidationLogicCriteria | A parent {@link ValidationLogicCriteria}, for grouping | |
$slave | FormField | The form field that responds to the state of {@link $master} |
Méthode | Description | |
---|---|---|
__call ( sting $method, array $args ) : ValidationLogicCriteria | Wildcard method for applying all the possible conditions | |
__construct ( FormField $slave, [type] $master, [type] $parent = null ) | Constructor | |
addCriterion ( ValidationLogicCriterion $c ) | Adds a new criterion | |
andIf ( string $master = null ) : ValidationLogicCriteria | Adds a new criterion, and makes this set use conjuctive logic | |
end ( ) : FormField/ValidationLogicCriteria | Ends the chaining and returns the parent object, either {@link ValidationLogicCriteria} or {@link FormField} | |
getCriteria ( ) : array | Gets all the criteria | |
getLogicalOperator ( ) : string | Gets a Javascript symbol for the logical operator | |
getMasterList ( ) : string | Gets a list of all the master fields in this criteria set | |
group ( ) : ValidationLogicCriteria | Creates a nested {@link ValidationLogicCriteria} | |
orIf ( string $master = null ) : ValidationLogicCriteria | Adds a new criterion, and makes this set use disjunctive logic | |
phpEvalString ( ) : string | ||
toScript ( ) : string | Creates a JavaScript readable representation of the logic |
public __construct ( FormField $slave, [type] $master, [type] $parent = null ) | ||
$slave | FormField | The form field that responds to changes of another form field |
$master | [type] | |
$parent | [type] |
public addCriterion ( ValidationLogicCriterion $c ) | ||
$c | ValidationLogicCriterion |
public end ( ) : FormField/ValidationLogicCriteria | ||
Résultat | FormField/ValidationLogicCriteria |
public getLogicalOperator ( ) : string | ||
Résultat | string |
public getMasterList ( ) : string | ||
Résultat | string |
public group ( ) : ValidationLogicCriteria | ||
Résultat | ValidationLogicCriteria |
protected array $criteria | ||
Résultat | array |
protected string $logicalOperator | ||
Résultat | string |
protected string $master | ||
Résultat | string |
protected ValidationLogicCriteria $parent | ||
Résultat | ValidationLogicCriteria |