Abstract Class yii\db\conditions\ConjunctionCondition
| Inheritance | yii\ |
|---|---|
| Implements | yii\ |
| Subclasses | yii\ |
| Available since version | 2.0.14 |
| Source Code | https://github.com/yiisoft/yii2/blob/master/framework/db/conditions/ConjunctionCondition.php |
Class ConjunctionCondition
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $expressions | array | yii\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | yii\ |
|
| fromArrayDefinition() | Creates object by array-definition as described in Query Builder – Operator format guide article. | yii\ |
| getExpressions() | yii\ |
|
| getOperator() | Returns the operator that is represented by this condition class, e.g. AND, OR. |
yii\ |
Property Details
Method Details
| public mixed __construct ( mixed $expressions ) | ||
| $expressions | mixed | |
public function __construct($expressions) // TODO: use variadic params when PHP>5.6
{
$this->expressions = $expressions;
}
Creates object by array-definition as described in Query Builder – Operator format guide article.
| public static static fromArrayDefinition ( mixed $operator, mixed $operands ) | ||
| $operator | mixed |
Operator in uppercase. |
| $operands | mixed |
Array of corresponding operands |
| throws | InvalidArgumentException |
if input parameters are not suitable for this condition |
|---|---|---|
public static function fromArrayDefinition($operator, $operands)
{
return new static($operands);
}
Returns the operator that is represented by this condition class, e.g. AND, OR.
| public abstract string getOperator ( ) |
abstract public function getOperator();
User Contributed Notes
Leave a comment
Join the conversation to share a note.