Yoast\WP\Lib
ORM::select_expr() public Yoast 1.0
Adds an unquoted expression to the list of columns returned by the SELECT query.
{} Это метод класса: ORM{}
Хуков нет.
Возвращает
ORM
. Null. Ничего.
Использование
$ORM = new ORM(); $ORM->select_expr( $expr, $alias );
- $expr(строка) (обязательный)
- The expression.
- $alias(null/строка)
- The alias to return the column as.
По умолчанию: null
Код ORM::select_expr() ORM::select expr Yoast 16.1.1
public function select_expr( $expr, $alias = null ) {
return $this->add_result_column( $expr, $alias );
}