Свойство | Тип | Описание | |
---|---|---|---|
$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} |
Метод | Описание | |
---|---|---|
__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 | ||
Результат | FormField/ValidationLogicCriteria |
public getLogicalOperator ( ) : string | ||
Результат | string |
public getMasterList ( ) : string | ||
Результат | string |
public group ( ) : ValidationLogicCriteria | ||
Результат | ValidationLogicCriteria |
protected array $criteria | ||
Результат | array |
protected string $logicalOperator | ||
Результат | string |
protected string $master | ||
Результат | string |
protected ValidationLogicCriteria $parent | ||
Результат | ValidationLogicCriteria |