Yoast\WP\Lib
ORM::build_select_start
Builds the start of the SELECT statement.
Метод класса: ORM{}
Хуков нет.
Возвращает
string.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->build_select_start();
Код ORM::build_select_start() ORM::build select start Yoast 28.4
protected function build_select_start() {
$fragment = 'SELECT ';
$result_columns = \implode( ', ', $this->result_columns );
if ( $this->distinct ) {
$result_columns = 'DISTINCT ' . $result_columns;
}
$fragment .= "{$result_columns} FROM " . $this->quote_identifier( $this->table_name );
if ( $this->table_alias !== null ) {
$fragment .= ' ' . $this->quote_identifier( $this->table_alias );
}
return $fragment;
}