Yoast\WP\Lib
ORM::select_many_expr()
Adds an unquoted expression to the list of columns returned by the SELECT query.
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_expr();
Код ORM::select_many_expr() ORM::select many expr Yoast 24.0
public function select_many_expr() { $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_expr( $column, $alias ); } } return $this; }