Previous Page
_exception()

Solar_Sql_Select
_join()

Next Page
_origAlias()

_join()

protected Solar_Sql_Select _join ( string $type, string|Solar_Sql_Model $spec, string $cond, array|string $cols )

Support method for adding JOIN clauses.

Parameters

  • (string) $type: The type of join; empty for a plain JOIN, or "LEFT", "INNER", etc.
  • (string|Solar_Sql_Model) $spec: If a Solar_Sql_Model object, the table to join to; if a string, the table name to join to.
  • (string) $cond: Join on this condition.
  • (array|string) $cols: The columns to select from the joined table.

Returns

  • (Solar_Sql_Select)

Description

Support method for adding JOIN clauses.