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\ |
Method Details
Creates object by array-definition as described in Query Builder – Operator format guide article.
| public abstract static static fromArrayDefinition ( string $operator, array $operands ) | ||
| $operator | string |
Operator in uppercase. |
| $operands | array |
Array of corresponding operands |
| throws | InvalidArgumentException |
if input parameters are not suitable for this condition |
|---|---|---|
public static function fromArrayDefinition($operator, $operands);
User Contributed Notes
Leave a comment
Join the conversation to share a note.