Interface yii\db\conditions\ConditionInterface
Interface ConditionInterface should be implemented by classes that represent a condition in DBAL of framework.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| fromArrayDefinition() | Creates object by array-definition as described in Query Builder – Operator format guide article. | yii\db\conditions\ConditionInterface |
Method Details
Creates object by array-definition as described in Query Builder – Operator format guide article.
| public abstract static $this fromArrayDefinition ( $operator, $operands ) | ||
| $operator | string |
Operator in uppercase. |
| $operands | array |
Array of corresponding operands |
| throws | yii\base\InvalidParamException |
if input parameters are not suitable for this condition |
|---|---|---|
public static function fromArrayDefinition($operator, $operands);