Yoast\WP\Lib
ORM::where()
Add a WHERE column = value clause to your query. Each time this is called in the chain, an additional WHERE will be added, and these will be ANDed together when the final query is built.
If you use an array in $column_name, a new clause will be added for each element. In this case, $value is ignored.
Метод класса: ORM{}
Хуков нет.
Возвращает
ORM
.
Использование
$ORM = new ORM(); $ORM->where( $column_name, $value );
- $column_name(строка|массив) (обязательный)
- The table column.
- $value(разное|null)
- The value.
По умолчанию: null
Код ORM::where() ORM::where Yoast 24.0
public function where( $column_name, $value = null ) { return $this->where_equal( $column_name, $value ); }