クラス yii\db\conditions\HashCondition
継承 | yii\db\conditions\HashCondition |
---|---|
実装 | yii\db\conditions\ConditionInterface |
利用可能なバージョン | 2.0.14 |
ソースコード | https://github.com/yiisoft/yii2/blob/master/framework/db/conditions/HashCondition.php |
カラムと値のペアに基づく条件。
公開メソッド
メソッド | 説明 | 定義元 |
---|---|---|
__construct() | HashCondition コンストラクタ。 | yii\db\conditions\HashCondition |
fromArrayDefinition() | クエリビルダー – 演算子形式 ガイド記事で説明されている配列定義によってオブジェクトを作成します。 | yii\db\conditions\HashCondition |
getHash() | yii\db\conditions\HashCondition |
メソッドの詳細
HashCondition コンストラクタ。
public void __construct ( $hash ) | ||
$hash | 配列|null |
public function __construct($hash)
{
$this->hash = $hash;
}
クエリビルダー – 演算子形式 ガイド記事で説明されている配列定義によってオブジェクトを作成します。
public static $this fromArrayDefinition ( $operator, $operands ) | ||
$operator | string |
大文字の演算子。 |
$operands | 配列 |
対応するオペランドの配列 |
throws | yii\base\InvalidParamException |
入力パラメータがこの条件に適さない場合 |
---|
public static function fromArrayDefinition($operator, $operands)
{
return new static($operands);
}
コメントするにはサインアップまたはログインしてください。