Class yii\db\conditions\HashCondition
继承 | yii\db\conditions\HashCondition |
---|---|
实现 | yii\db\conditions\ConditionInterface |
可用版本自 | 2.0.14 |
源码 | https://github.com/yiichina/yii2/blob/api/framework/db/conditions/HashCondition.php |
Condition based on column-value pairs.
公共方法
方法 | 描述 | 被定义在 |
---|---|---|
__construct() | HashCondition constructor. | yii\db\conditions\HashCondition |
fromArrayDefinition() | Creates object by array-definition as described in Query Builder – Operator format guide article. | yii\db\conditions\HashCondition |
getHash() | yii\db\conditions\HashCondition |
方法详情
HashCondition constructor.
public void __construct($hash) | ||
$hash | array|null |
Creates object by array-definition as described in Query Builder – Operator format guide article.
public 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 array|null getHash() |