没有命名空间的类 yii yii\base yii\behaviors yii\caching yii\captcha yii\console yii\console\controllers yii\console\widgets yii\data yii\db yii\db\conditions yii\db\cubrid yii\db\cubrid\conditions yii\db\mssql yii\db\mssql\conditions yii\db\mysql yii\db\oci yii\db\oci\conditions yii\db\pgsql yii\db\sqlite yii\db\sqlite\conditions yii\di yii\filters yii\filters\auth yii\grid yii\helpers yii\i18n yii\log yii\mail yii\mutex yii\rbac yii\rest yii\test yii\validators yii\web yii\widgets

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

方法详情

__construct() 公共 方法

HashCondition constructor.

public void __construct($hash)
$hash array|null
fromArrayDefinition() 公共 静态 方法

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

getHash() 公共 方法

public array|null getHash()