Previous Page
__toString()

Solar_Sql_Select
_addSource()

Next Page
_buildFrom()

_addSource()

protected void _addSource ( string $type, string $name, string $orig, string $join, string $cond, array $cols )

Adds a row source (from table, from select, or join) to the sources array.

Parameters

  • (string) $type: The source type: 'from', 'join', or 'select'.
  • (string) $name: The alias name.
  • (string) $orig: The source origin, either a table name or a sub-select statement.
  • (string) $join: If $type is 'join', the type of join ('left', 'inner', or null for a regular join).
  • (string) $cond: If $type is 'join', the join conditions.
  • (array) $cols: The columns to select from the source.

Returns

  • (void)

Description

Adds a row source (from table, from select, or join) to the sources array.