Solar_Sql_Select::_join()

protected Solar_Sql_Select Solar_Sql_Select::_join ( string $type , string|Solar_Sql_Model $spec , string|array $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|array) $cond: Condiiton(s) for the ON clause.

  • (array|string) $cols: The columns to select from the joined table.

Returns

  • (Solar_Sql_Select)

Description

Support method for adding JOIN clauses.



Local