OrdersTableDataStore::generate_select_and_join_clauses()privateWC 1.0

Helper method to generate join and select clauses.

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

Хуков нет.


Массив. Select and join queries.


// private - только в коде основоного (родительского) класса
$result = $this->generate_select_and_join_clauses( $order_table_alias, $table, $table_alias, $column_props_map );
$order_table_alias(строка) (обязательный)
Alias for order table.
$table(строка) (обязательный)
Table to join.
$table_alias(строка) (обязательный)
Alias for table to join.
$column_props_map(array[]) (обязательный)
Column to prop map for table to join.

Код OrdersTableDataStore::generate_select_and_join_clauses() WC 9.1.2

private function generate_select_and_join_clauses( $order_table_alias, $table, $table_alias, $column_props_map ) {
	// Add aliases to column names so they will be unique when fetching.
	$select_clause = $this->generate_select_clause_for_props( $table_alias, $column_props_map );
	$join_clause   = "$table $table_alias ON $table_alias.order_id = $";

	return array(
		'select' => $select_clause,
		'join'   => $join_clause,