Yoast\WP\Lib

ORM::select_expr()publicYoast 1.0

Adds an unquoted expression to the list of columns returned by the SELECT query.

Метод класса: ORM{}

Хуков нет.

Возвращает

ORM.

Использование

$ORM = new ORM();
$ORM->select_expr( $expr, $alias );
$expr(строка) (обязательный)
The expression.
$alias(строка|null)
The alias to return the column as.
По умолчанию: null

Код ORM::select_expr() Yoast 22.4

public function select_expr( $expr, $alias = null ) {
	return $this->add_result_column( $expr, $alias );
}