0 フォロワー

クラス 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

メソッドの詳細

継承されたメソッドを隠す

__construct() public method

HashCondition コンストラクタ。

public void __construct ( $hash )
$hash 配列|null

                public function __construct($hash)
{
    $this->hash = $hash;
}

            
fromArrayDefinition() public static method

クエリビルダー – 演算子形式 ガイド記事で説明されている配列定義によってオブジェクトを作成します。

public static $this fromArrayDefinition ( $operator, $operands )
$operator string

大文字の演算子。

$operands 配列

対応するオペランドの配列

throws yii\base\InvalidParamException

入力パラメータがこの条件に適さない場合

                public static function fromArrayDefinition($operator, $operands)
{
    return new static($operands);
}

            
getHash() public method

public 配列|null getHash ( )

                public function getHash()
{
    return $this->hash;
}