Yoast\WP\Lib
ORM::select_many()
Adds columns to the list of columns returned by the SELECT query.
This defaults to '*'. Many columns can be supplied as either an array or as a list of parameters to the method. Note that the alias must not be numeric - if you want a numeric alias then prepend it with some alpha chars. eg. a1.
Метод класса: ORM{}
Хуков нет.
Возвращает
ORM
.
Использование
$ORM = new ORM(); $ORM->select_many();
Код ORM::select_many() ORM::select many Yoast 24.0
public function select_many() { $columns = \func_get_args(); if ( ! empty( $columns ) ) { $columns = $this->normalise_select_many_columns( $columns ); foreach ( $columns as $alias => $column ) { if ( \is_numeric( $alias ) ) { $alias = null; } $this->select( $column, $alias ); } } return $this; }